Re: [xml] redicting parts of trees
- From: Kasimier Buchcik <kbuchcik 4commerce de>
- To: Rob Richards <rrichards ctindustries net>, Martijn Faassen <faassen infrae com>, Daniel Veillard <veillard redhat com>
- Cc: "xml gnome org" <xml gnome org>
- Subject: Re: [xml] redicting parts of trees
- Date: Fri, 20 May 2005 13:24:45 +0200
On Thu, 2005-05-19 at 18:52 -0400, Rob Richards wrote:
Rob
I noticed that xmlReconciliateNs will break ns-wellformedness
in the following case:
<a1>
<a2 xmlns:foo="urn:test:mine">
<foo:a3/>
</a2>
</a>
if attached to:
<p xmlns:bar="urn:test:mine"/>
we get:
<p xmlns:bar="urn:test:mine">
<a1>
<a2 xmlns:bar="urn:test:OTHER">
<bar:a3/>
</a2>
</a>
</p>
The prefix "bar" is shadowed by a2, so it will be bound
to "urn:test:OTHER" if serialized. This is due to:
n = xmlNewReconciliedNs(doc, tree, node->ns);
which is called in xmlReconciliateNs and resolves to
ns-decls in @tree and ancestores only.
Regards,
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]