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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Required item type of fir, Jacobus Reyneke | Thread | Re: [xsl] Required item type of fir, David Carlisle |
Re: [xsl] Finding nodes between oth, Nic Gibson | Date | RE: [xsl] Finding nodes between oth, Michael Kay |
Month |