|
Subject: [xsl] exit <xsl:for-each> or change <xsl:variable> From: Matts Isuls <matts.isuls@xxxxxxxxxxx> Date: Thu, 28 Mar 2002 16:42:32 +0200 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] using substring-functions, McNally, David | Thread | Re: [xsl] exit <xsl:for-each> or ch, Jeni Tennison |
| RE: [xsl] using substring-functions, Mario Michlits | Date | RE: [xsl] problem with transforming, Uslu, Cihan Y (MED) |
| Month |