I'm needing to filter which data is returned in my transform. Read my sample code and you will be able to see what I am trying to do here. I appreciate the help. Thanks.
<xsl:variable select="Records/Record[@level = '12345']/Field[@g = 'A67890']" name="Var1"/>
<xsl:variable select="Records/Record[@level = '12345']/Field[@g = 'B67890]" name="Var2"/>
<xsl:variable select="Records/Record[@level = '12345']/Field[@g= 'C67890']" name="Var3"/>
<xsl:variable select="Records/Record/Record[@level = 'ABC']/Field[@g = 'D123']" name="Var4"/>
<xsl:variable select="Records/Record/Record[@level = 'ABC']/Field[@g = 'C123']" name="Var5"/>
<xsl:if test="(contains($Var1= 'And') and ($Var2 = $Var4) and ($Var3 = $Var5) or contains($Var3= 'Or')">
----------**Code that is ran after if test**
</xsl:if>
No comments:
Post a Comment