Re: How to achieve in xslt equivalent to xs:any in xerces
Michael Glavassevich <[email protected]> Mon, 30 Nov 2009 11:37:45 -0500
| Newsgroups | gmane.text.xml.xalan.java.user |
|---|---|
| Message-ID | <OFD2A8E69A.0104BB88-ON8525767E.005AFAFC-8525767E.005B5908@ca.ibm.com> |
[email protected] wrote on 11/30/2009 11:28:36 AM: > > As we have xs:any in xerces for any namespace usage , how do I > > achieve in xslt ? I could not find any construct in xsl as we have > > in schema language. > > XSLT 1.0 and XPath 1.0 are not schema-aware. (That was added in the > 2.0 version of these, which Xalan does not yet support.) > > If you want to match names without looking at the namespace, you can > use wildcard QNames such as *:foo, or match on a wildcard and then > qualify that with a predicate. I believe that form [1] has only been supported since XPath 2.0. Pretty sure XPath 1.0 [1] only allows foo:* wildcards (but not *:foo). Thanks. [1] http://www.w3.org/TR/xpath20/#prod-xpath-NameTest [2] http://www.w3.org/TR/xpath#NT-NameTest Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [email protected] E-mail: [email protected]