Re: [xsl] XPATH: Can not convert #STRING to a NodeList!

Subject: Re: [xsl] XPATH: Can not convert #STRING to a NodeList!
From: "Steve Muench" <Steve.Muench@xxxxxxxxxx>
Date: Thu, 21 Dec 2000 15:30:58 -0800
| 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


Current Thread