File: iaikTests.example2.xml

package info (click to toggle)
libxml-security-java 1.4.5-1%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 14,776 kB
  • sloc: java: 42,230; xml: 26,783; sh: 242; makefile: 11
file content (37 lines) | stat: -rw-r--r-- 982 bytes parent folder | download | duplicates (24)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>

<!-- XPath="self::Parent or (parent::Parent and not(self::default:Child)) or self::GrandChild or parent::GrandChild" -->
<!-- additionalNSPrefixes="default http://example.org" -->

<!-- Result C14N:
<Parent>
    <GrandChild></GrandChild>
  </Parent>
-->

<!-- Annotation C14N:
1. The xmlns="" of Parent is not rendered, although it is explicitly declared.
   This is because Parent has no output parent with a default namespace decla-
   ration that is in the node set.
2. The xmlns="" of GrandChild is not rendered, although it is explicitly
   declared. This is because GrandChild has no output parent with a default
   namespace declaration that is in the node set.
-->

<!-- Result EC14N:
<Parent>
    <GrandChild></GrandChild>
  </Parent>
-->

<!-- Annotation EC14N:
See Annotation C14N.
-->

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