Re: How to achieve in xslt equivalent to xs:any in xerces

[email protected] Mon, 30 Nov 2009 11:46:31 -0500
Newsgroups gmane.text.xml.xalan.java.user
Message-ID <OFA90E49B1.27A00A6C-ON8525767E.005B8DB6-8525767E.005BE716@lotus.com>
> Pretty sure XPath 1.0 [1] only allows foo:* wildcards (but not *:foo).

... Right. Sorry; too much time working on 2.0 recently.

The 1.0 equivalent would indeed be 
        *[localname()="foo"]

And, of course, if you want to ignore the name entirely, just matching on 
* will do that.

NOTE: Since the namespace is part of the semantics (meaning) of the 
document, ignoring it is usually an indicator of bad design (unless you're 
working in 2.0 and manipulating schema types rather than names). Think 
long and hard about what you're really trying to do and whether this is 
the best way to do it.