Subject: Re: [xsl] update value of variable in for-each loop From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 08 Apr 2014 21:51:49 +0100 |
sorry Michael, David I was little bustling! hope this below is more clear now. The varable value should be updated
<xsl:variable name="foo"/>
<xsl:for-each select=bpartiotion/files/file[@name=bxxb or name=bxyb or name=basdb or b&b&b&.. b> <xsl:variable name="foo"> <xsl:for-each select="data"> <xsl:choose> <xsl:when test="contains(elements/elementA '1234) or contains(elements/package/id '55) or contains(elements/category/id, '67)" or contains(b&b&b&b&.">
<xsl:value-of select="1"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="0"/> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:variable>
<xsl:choose> <xsl:when test="$foo = 1">
//doSomething </xsl:when> <xsl:otherwise> //doNothing </xsl:otherwise> </xsl:choose> </xsl:for-each
-- google plus: https:/profiles.google.com/d.p.carlisle
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] update value of variable , davep | Thread | Re: [xsl] update value of variable, David Carlisle |
Re: [xsl] update value of variable, henry human | Date | Re: [xsl] update value of variable, David Carlisle |
Month |