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:arent or (parent:arent 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:arent or (parent:arent 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:arent or (parent:arent 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>
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:arent or (parent:arent 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:arent or (parent:arent 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:arent or (parent:arent 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>