[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!

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.