Subject: Re: [xsl] Test a node set based on an attribute that will match a variable From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Thu, 20 Jan 2005 21:01:17 +0100 |
I also have this same need in a few templates... But that returns an error
Variables may not be used within this expression. spec_off/offer[./@*[local-name()=-->$version<--]='true']
syntax: <xsl:template match="spec_off/offer[./@*[local-name()=$version]='true']">...</xsl:template>
Is this just illegal all around, or is there a way to have this work too?
<xsl:template match="spec_off"> <xsl:apply-templates select="*[@*[local-name()=$version]='true']"/> </xsl:template>
regards, -- Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041) Spread the wiki (http://www.wikipedia.org)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Test a node set based on , Cynthia DeLaria | Thread | Re: [xsl] Test a node set based on , David Carlisle |
Re: [xsl] error in accessing siblin, Joris Gillis | Date | RE: [xsl] Test a node set based on , Ross, Douglas |
Month |