> Hi Raul,
>
> here's an attempt to help you further:
>
> from the spec:
> Namespace Nodes- A namespace node N is ignored if the nearest ancestor
> element of the node's parent element that is in the node-set has a
> namespace node in the node-set with the same local name and value as N.
> Otherwise, process the namespace node N in the same way as an attribute
> node, except assign the local name xmlns to the default namespace node
> if it exists (in XPath, the default namespace node has an empty URI and
> local name).
>
> Now, if I apply that to the xmlns:bar="http://example.org/bar";
> namespace node (N) belonging to the element in the third line:
>
Thanks a lot Karel, yesterday night I realize it, but thank you very much.
The problem is that when you c14n a tree it "seems" you donīt have to take
this on account(Can anyone comfirm this?). And as i unifiying the handling
of attributes in a (sub)tree c14n & xpath I found this problem.
Other question when a xmlns attribute is selected with the xpath but the
parent isnīt(i.e you just output xmlns:X="") & a child needs to render the
same xmlns. It is taken at renderedi.e.
<!-- only the attribute is selected -->
<A xmlns:d="ddd">
  <!-- everything is seleceted -->
  <b xmlns:d="ddd">
  </b>
</A>

the output is:

xmlns:d="ddd"
<b xmlns:d="ddd"></b>

or:

xmlns:d="ddd"
<b></b>



regards,


Reply via email to