Subject: Re: [xsl] I need to make sure that all namespace declarations get output to a particular element, not the document element From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 22 Mar 2007 13:59:17 GMT |
> Not sure if the processor is allowed to, I think it is, to cleanup the > namespaces the way it likes and instead put the namespace decl. to > 'test:other-ns-now' element. That wouldn't be allowed, The XSLT1 output serialisation is allowed to move declarations up the tree, meaning a namespace is in scope earlier than one might expect, but it can never move a namespace declaration down the tree. If an element node in the result has a namespace node (even if that namespace is not used in any element or attribute) the namespace declaration must be serialised on the element or an ancestor. The XSLT2 rules are rather different (as namesdpace fixup is part of tree construction, not part of serialisation) but come to the same result as far as this point goes. David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] I need to make sure that , Abel Braaksma | Thread | Re: [xsl] I need to make sure that , Abel Braaksma |
Re: [xsl] I need to make sure that , Abel Braaksma | Date | Re: [xsl] I need to make sure that , bryan rasmussen |
Month |