[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Required item type of first operand of '/' is node

Subject: RE: Required item type of first operand of '/' is node(); supplied value has item type xs:string
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 23 Apr 2010 14:58:59 +0100
RE:  Required item type of first operand of '/' is node
> If I may ask Michael, why the warning on namespaces? It's 
> probably a bit nutty, but I'm currently using them as a way 
> to highlight my XML!
> >
> > select="//x/*[local-name() = $name]/description"

Because if $name is in the form "prefix:local" then this won't match
anything. In principle you need to do separate tests on the local-name and
the namespace URI.


Michael Kay

Current Thread


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.
First Name
Last Name
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.