Re: [xslt] namespace declaration not copied



On Wed, Sep 10, 2003 at 06:02:19PM +0200, Luca Padovani wrote:
> How come the innermost <a> element doesn't have the namespace
> declaration? Isn't this in contrast with the XSLT spec (sec. 7.1.1)?

  You're confusing the notion of namespace node in the XPath
data model and declaration of namespace. A namespace node in
the XPath data model just indicate that the given namespace binding
is in effect on that node, this does not mean that when that
node is serialized a namespace declaration must be emitted.
   http://www.w3.org/TR/xpath#namespace-nodes

 The only requirement for a serializer is that the sets of namespace
nodes found when rebuilding an XPath data model from the serialization
is a superset of the original one.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]