RE: Matching nodes in the default namespace

Subject: RE: Matching nodes in the default namespace
From: "John E. Simpson" <simpson@xxxxxxxxxxx>
Date: Thu, 28 Sep 2000 19:11:20 -0400
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



Current Thread