Subject: RE: elements in a namespace From: Mike Brown <mbrown@xxxxxxxxxxxxx> Date: Mon, 7 Jun 1999 10:56:34 -0600 |
> In the stylesheet, "Expression evaluation occurs with respect to a > context, which consists of: [...] the set of namespace declarations in > scope for the expression" but "the default namespace (as declared by > xmlns) is not part of this set"(see > http://www.w3.org/TR/1999/WD-xslt-19990421#expressions): in > other words, > the spec says XSLT expressions can use namespace prefixes in > the normal way but not namespace defaults. Yes, and one's understanding of what happens with namespace declarations can be further muddled by the misnomer of "result-ns". The stylesheet is defining the structure of the result tree, the elements of which may be associated with any number of namespaces. The default namespace, as declared by the xmlns attribute, is just for the assignment of a namespace to result tree elements that aren't expressed in the stylesheet with qualifiers (prefixes). And the result-ns is just a hint to the processor as to what kind of externalization of the result tree is desired. The gist is: namespace declarations in the stylesheet have nothing to do with elements in the source tree. <sigh/> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: elements in a namespace, Francis Norton | Thread | Re: elements in a namespace, David Carlisle |
RE: Unicode and XSL (was substring(, Kay Michael | Date | xsl:if : getting dcxjp to parse exp, Jason Classon |
Month |