Subject: Re: expression must evaluate to a nodeset / shortcuts !
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 5 Nov 2002 03:27:36 -0700 (MST)
|
"Braumüller, Hans" wrote:
> Why i can use
>
> <xsl:value-of select="/root/body/filter/df[@name='gspkennung']/@title"/>
>
> but not if i declare a variable:
>
> <xsl:variable name="path" select=" '/root/body/filter/df/@name' "/>
>
> then use
>
> <xsl:value-of select="$path='gspkennung'/@title"/>
>
> Is there a workaround for this?
<xsl:variable name="path" select="/root/body/filter/df/@name"/>
<xsl:value-of select="$path[.='gspkennung'/../@title]"/>
- Mike
____________________________________________________________________________
mike j. brown | xml/xslt: http://skew.org/xml/
denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|