Re: [xslt] namespace declaration not copied
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] namespace declaration not copied
- Date: Wed, 10 Sep 2003 12:27:27 -0400
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]