Subject: [xsl] 'xsl:variable' as dynamic select for 'xsl:for-each'... From: Ollie Lord <ol@xxxxxxx> Date: Mon, 17 Nov 2003 12:15:58 +0000 |
Basiacally... <xsl:variable name="selectclause" select=" some nodes "/> <xsl:for-each select="$selectclause"> ... my code... </xsl:for-each>
<xsl:choose> <xsl:when test="$clientid = ''"> <xsl:variable name="selectclause" select = "//client"/> </xsl:when> <xsl:otherwise> <xsl:variable name="selectclause" select = "//client[$clientid]"/> </xsl:otherwise> </xsl:choose>
<xsl:for-each select="$selectclause"> my code </xsl:for-each>
<xsl:variable name="selectclause"> <xsl:choose> <xsl:when test="$clientid = ''">"//client"</xsl:when> <xsl:otherwise>"//client[$clientid]"</xsl:otherwise> </xsl:choose> </xsl:variable>
<xsl:for-each select="$selectclause"> my code </xsl:for-each>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL to HTML --> XHTML?, Paul Sleigh | Thread | Re: [xsl] 'xsl:variable' as dynamic, David Carlisle |
RE: [xsl] XSL to HTML --> XHTML?, Narender S chauhan | Date | Re: [xsl] xsl:include, David Carlisle |
Month |