Hi I have a requirement, I need to add a repetition record which looks like this
<ns5:Conditions>
<xsl:for-each select=”Query/QueryExpression/Sequence1/Criteria/Conditions/Condition”>
<ns5:Condition>
<xsl:element name=”AttributeName”>
<xsl:text>code</xsl:text>
</xsl:element>
<xsl:element name=”Operator”>
<xsl:text>Equal</xsl:text>
</xsl:element>
<ns5:Values>
<xsl:element name=”Value”>
<xsl:text>Active</xsl:text>
</xsl:element>
</ns5:Values>
</ns5:Condition>
<ns5:Condition>
<xsl:element name=”AttributeName”>
<xsl:text>id</xsl:text>
</xsl:element>
<xsl:element name=”Operator”>
<xsl:text>Equal</xsl:text>
</xsl:element>
<ns5:Values>
<xsl:element name=”Value”>
<xsl:value-of select=”$param1″ />
</xsl:element>
</ns5:Values>
</ns5:Condition>
</xsl:for-each>
</ns5:Conditions>
If you see the above XSLT code I am trying to implement the code in my destination schema here <Condition> repeats twice and it has <Value> element in it, my requirement is I need to map only the <Value> element from my source in the second repetition of the <condition> other elements values are to se default, How do I implement this using Scripting functoid, I know that it should be done in XSLT but I am not sure to implement in ‘Inline XSLT’ or ‘XSLT Template’, if so what code should i write?
Thanks in Advance