Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Comparing a variable's value in xsl choose Comparing a variable's value in xsl chooseTo: NULL Date: 11/21/2008 11:08:00 AM Hi every one,
I have a simple variable comparison to be done in loop <xsl:for-each
and i have to compare a value from an xml document from a previous
value. I.e the xml tags might contain duplicates so i am comparing the
previous value from the current value to be converted into a pdf
document. I have two problems how do keep track of previous value
using a variable or other wise and how to use xsl choose i am doing
some thing like this.
<xsl:variable name="PRGPIDP" select="'jk'"/>
<xsl:for-each select="itemMovementListsReport/
ItemMovementListsReportGroupEntry">
<xsl:when test="$PRGPIDP eq PRGPID">
<fo:table-cell text-align="right"><fo:block><xsl:value-
of select="$PRGPIDP"/></fo:block></fo:table-cell>
</xsl:when>
<xsl:otherwise>
<fo:table-cell text-align="right"><fo:block><xsl:value-
of select="PRGPID"/></fo:block></fo:table-cell>
</xsl:otherwise>
</xsl:choose>
<xsl:variable name="PRGPIDP" select="PRGPID"></xsl:variable>
</xsl:for-each>
The variable i am using is also not being reset, can any one please
let me know any other ideas?
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
