Subject: Re: [xsl] combining two variables to generate XPATH From: Jeff Kenton <jkenton@xxxxxxxxxxxxx> Date: Tue, 17 Dec 2002 17:10:23 -0500 |
bix xslt wrote:
What is different about a path with a single variable, and a path with two variables? Why can't I specify a second variable:
<xsl:template name="foo"> <xsl:param name="node"/> <xsl:param name="branch" select="'someBranch'"/> <xsl:for-each select="$node/$branch/leaf"> <xsl:value-of select="@id" /> </xsl:for-each> </xsl:template>
This is not legal. The only place a variable reference can appear in a Path Expression is at the beginning. $node is OK here, but $branch is not.
-- -------------------------- Jeff Kenton DataPower Technology, Inc.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] combining two variables t, Jeff Kenton | Thread | RE: [xsl] combining two variables t, Michael Kay |
RE: [xsl] output method html doesnt, Michael Kay | Date | RE: [xsl] [XSL] extracting a verse, Passin, Tom |
Month |