Sha256: f539e1003b38da497a61374baeff9c62e1f4fdbd4dfd0957342c860e8758ff29

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

<?xml version="1.0" encoding="UTF-8"?>

<!-- XPath="self::Parent or (parent::Parent and not(self::Child)) or self::GrandChild or parent::GrandChild" -->

<!-- Result C14N:
<Parent xml:foo="bar" xml:fool="barbar" xml:lang="en" xml:space="default">
    <GrandChild xml:foo="barbarossa" xml:fool="barbar" xml:lang="ge" xml:space="preserve"></GrandChild>
  </Parent>
-->

<!-- Annotation C14N:
1. Parent inherts xml:lang and xml:space since it is an orphan node.
2. Parent has explicitly declared attributes xml:foo and xml:fool.
3. GrandChild inherts xml:foo from its Child ancestor.
4. GrandChild inherits xml:fool from its Parent ancestor.
5. GrandChild inherits xml:lang from its Child ancestor.
6. GrandChild has explicitly declared attribute xml:space.
-->

<!-- Result EC14N:
<Parent xml:foo="bar" xml:fool="barbar">
    <GrandChild xm:space="preserve"></GrandChild>
  </Parent>
-->

<!-- Annotation EC14N:
1. Only those attributes in the xml namespace are rendered, which are
   explicitely declared in the attribute axis of an element.
-->

<GrandParent xml:lang="en" xml:space="default">
  <Parent xml:foo="bar" xml:fool="barbar">
    <Child xml:foo="barbarossa" xml:lang="ge">
      <GrandChild xml:space="preserve"/>
    </Child>
  </Parent>
</GrandParent>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
java2ruby-xmldsig-0.2 lib/xml-security-1_4_5/data/interop/c14n/Y3/iaikTests.example1.xml