xsl-list
[Top] [All Lists]

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

2010-04-23 08:59:21

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 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--