This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Matching nodes in the default namespace
- To: xsl-list at mulberrytech dot com
- Subject: RE: Matching nodes in the default namespace
- From: "John E. Simpson" <simpson at polaris dot net>
- Date: Thu, 28 Sep 2000 19:11:20 -0400
- References: <4.3.2.7.2.20000928141312.00bc8c60@nexus.polaris.net>
- Reply-To: xsl-list at mulberrytech dot com
At 02:18 PM 09/28/2000 -0700, Evan Lenz wrote:
>[...snip...]
>
>If your stylesheet doesn't include a namespace declaration for a namespace
>that's in the source document, there is no way you'll be able to explicitly
>match nodes in that namespace (apart from using a wildcard, such as *).
>Remember, whether the source document uses prefixes or not is completely
>immaterial in XSLT. Forget about prefixes and think only about fully
>qualified names which consist of a local name and a namespace URI. How that
>fully-qualified name is represented, whether by a default namespace or a
>namespace prefix, is immaterial.
Marvelously clear explanation, Evan. Thanks very much.
Btw, it was interesting that the corrected stylesheet you provided differed
from the one David C. offered, in that yours did not include an
exclude-result-prefixes declaration....
==========================================================
John E. Simpson | "If you were going to
http://www.flixml.org | shoot a mime, would you use
XML Q&A: http://www.xml.com | a silencer?" (Steven Wright)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list