xsl-list
[Top] [All Lists]

Re: expression must evaluate to a nodeset / shortcuts !

2002-11-05 03:27:36
"Braumüller, Hans" wrote:
Why i can use

<xsl:value-of select="/root/body/filter/df[(_at_)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



<Prev in Thread] Current Thread [Next in Thread>