Exclusive canonical transformation and InclusiveNamespacePrefixLis

M

Martin

Hi
I find some mistake in class XmlDsigExcC14NTransform.
A. When I use constructor with InclusiveNamespacePrefixList
I get different result as
B. when I use construktor without parametere ans after then set properties
InclusiveNamespacePrefixList in this class.
But I think that result is bat in both samples. Is it true?

INPUT FILE:
<GrandParent>
<Parent>
<Child xmlns:ns2="http://example.org/ns2"
xmlns:ns1="http://example.org/ns1">
<ns1:GrandChild/>
</Child>
</Parent>
</GrandParent>

RESULT A.
xpath="self::parent or (parent::parent and not(self::Child)) or
self::ns1:GrandChild or parent::ns1:GrandChild"
inclusiveNameSpacePrefixList : "ns2 ns1"

<Parent>
<ns1:GrandChild></ns1:GrandChild>
</Parent>

RESULT B.
xpath="self::parent or (parent::parent and not(self::Child)) or
self::ns1:GrandChild or parent::ns1:GrandChild"
inclusiveNameSpacePrefixList : "ns2 ns1"

<Parent>
<ns1:GrandChild xmlns:ns1="http://example.org/ns1"></ns1:GrandChild>
</Parent>

CORECT RESULT :
xpath="self::parent or (parent::parent and not(self::Child)) or
self::ns1:GrandChild or parent::ns1:GrandChild"
inclusiveNameSpacePrefixList : "ns2 ns1"

<Parent>
<ns1:GrandChild xmlns:ns1="http://example.org/ns1"
xmlns:ns2="http://example.org/ns2"></ns1:GrandChild>
</Parent>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top