[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: expression must evaluate to a nodeset / shortcuts
"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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|