IBM WebSphere DataPower Community Forum IBM Webspere DataPower XI50
October 07, 2008, 07:40:00 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: IBM WebSphere DataPower SOA Appliance Forum - Just Launched come share your knowledge!!! These forums will be a great place to build a community. This site is not associated with IBM.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Call a xslt template - directly from contivo - is there a way?  (Read 183 times)
anboss
Newbie
*
Offline Offline

Posts: 24

an_boss
View Profile WWW Email
« on: January 28, 2008, 09:42:38 AM »

Hi When i do mapping in Contivo, based on the value of a particular field, I need to to call a template contained in another XSL. Currently i am editing the XSLT generated by contivo by adding the call-template manually. Is there any way to do this in contivo itself.

For instance:

<n5:field1>
<xsl:if test="concat('a', ctvf:trim($_root/s0:Envelope[1]/s0:Body[1]/n7:APIV001[1]/n7:Group1[1]/n5:field1[1])) = concat('a', &quot;&quot;)">
<xsl:value-of select = ""/>
</xsl:if>
</n5:field1>

This is what i am generating now. Later i would edit the XSLT and include the call-template. But I wanted the contivo to generate the XSL with the template being called. (as below)

 <n5:field1>
<xsl:if test="concat('a', ctvf:trim($_root/s0:Envelope[1]/s0:Body[1]/n7:APIV001[1]/n7:Group1[1]/n5:field1[1])) = concat('a', &quot;&quot;)">
<xsl:call-template name="FieldRequired">
<xsl:with-param name="fieldName" select="field1" />
</xsl:call-template>
</xsl:if>
</n5:field1>

 what should i do in contivo for this to happen.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  



Powered by SMF | SMF © 2006-2007, Simple Machines LLC
Seo4Smf © Webmaster's Talks
This Site is not associated with IBM