[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XPATH: Can not convert #STRING to a NodeList!
| You can't use a variable as a select expression: | <xsl:value-of select="$b_level_total/CNT"/> | is illegal, as are the other uses of $b_level_total in your example. The problem is not that it is a *variable*, but that it is a variable whose value is not of type node-set. So, if $foo contains a string, boolean, number, or result-tree-fragment, doing select="$foo/bar" is an error. However, if $foo contains a node-set, then select="$foo/bar" is fine. In the original authors example, we'd have to see what he was passing to the "b_level_total" parameter in his <xsl:with-param> in the calling template to see the culprit, but if he's passing a string-valued parameter, this $b_level_total/FOO will generate the error he's seeing. ______________________________________________________________ Steve Muench, Lead XML Evangelist & Consulting Product Manager BC4J & XSQL Servlet Development Teams, Oracle Rep to XSL WG Author "Building Oracle XML Applications", O'Reilly http://www.oreilly.com/catalog/orxmlapp/ 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
|