|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] exit <xsl:for-each> or change <xsl:variable>
Hi
Is it possible to change the value of a <xsl:variable> tag to something else
than it is declared to?:
<xsl:variable name="var">true</xsl:variable>
<xsl:template match="/">
<xsl:for-each select="root">
<xsl:if test="@value='new'">
<!-- change $var to false -->
</xsl:if>
<xsl:if test="$var='true'">
<!-- do something -->
</xsl:if>
</xsl:for-each>
Is it possibe to exit a <xsl:for-loop>. Like this:
<xsl:for-each select="root">
<xsl:if test="@value='new'">
<!-- exit for-each -->
</xsl:if>
<!-- do something -->
</xsl:for-each>
:matts:
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








