[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Required item type of first operand of '/' is node(); supplied value has item type xs:string


Subject: RE: [xsl] 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

> 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.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


Current Thread