|
anboss
|
 |
« 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', "")"> <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', "")"> <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.
|