xsl-list
[Top] [All Lists]

Re: [xsl] I need to make sure that all namespace declarations get output to a particular element, not the document element

2007-03-22 08:16:14

unless you put that namespace to the xsl:stylesheet and/or when you 
add exclude-result-prefixes)

The two situations though are very different, if you put the namespace
declaration on xsl:stylesheet (or anywhere else) such that that
namespace is attached to an ancestor of this node in the result tree,
then the element in the result tree does have the namepsace node, but
when serialised the redundant namespace declaration is omitted.

If however the namepsace is specified in exclude-result-prefixes then 
if the namespace declaration appears on an LRE or xsl element, but is
not needed for any element or attribute name in the result tree, then
the namepsace node is not placed in the result tree (so then as a
consequence there is no namespace declaration at that point in the
serialisation).

David

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>