| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<title>Caninical XML node set</title> |
| 5 |
<style type="text/css"> |
| 6 |
<!-- |
| 7 |
.INCLUDED { |
| 8 |
color: #000000; |
| 9 |
background-color: |
| 10 |
#FFFFFF; |
| 11 |
font-weight: bold; } |
| 12 |
.EXCLUDED { |
| 13 |
color: #666666; |
| 14 |
background-color: |
| 15 |
#999999; } |
| 16 |
.INCLUDEDINCLUSIVENAMESPACE { |
| 17 |
color: #0000FF; |
| 18 |
background-color: #FFFFFF; |
| 19 |
font-weight: bold; |
| 20 |
font-style: italic; } |
| 21 |
.EXCLUDEDINCLUSIVENAMESPACE { |
| 22 |
color: #0000FF; |
| 23 |
background-color: #999999; |
| 24 |
font-style: italic; } |
| 25 |
--> |
| 26 |
</style> |
| 27 |
</head> |
| 28 |
<body bgcolor="#999999"> |
| 29 |
<h1>Explanation of the output</h1> |
| 30 |
<p>The following text contains the nodeset of the given Reference before it is canonicalized. There exist four different styles to indicate how a given node is treated.</p> |
| 31 |
<ul> |
| 32 |
<li class="INCLUDED">A node which is in the node set is labeled using the INCLUDED style.</li> |
| 33 |
<li class="EXCLUDED">A node which is <em>NOT</em> in the node set is labeled EXCLUDED style.</li> |
| 34 |
<li class="INCLUDEDINCLUSIVENAMESPACE">A namespace which is in the node set AND in the InclusiveNamespaces PrefixList is labeled using the INCLUDEDINCLUSIVENAMESPACE style.</li> |
| 35 |
<li class="EXCLUDEDINCLUSIVENAMESPACE">A namespace which is in NOT the node set AND in the InclusiveNamespaces PrefixList is labeled using the INCLUDEDINCLUSIVENAMESPACE style.</li> |
| 36 |
</ul> |
| 37 |
<h1>Output</h1> |
| 38 |
<pre> |
| 39 |
<span class="EXCLUDED"><!-- XPath="self::default:Parent or (parent::default:Parent and not(self::default:Child)) or self::ns1:GrandChild or parent::ns1:GrandChild or self::default:GrandChild or parent::default:GrandChild" --> |
| 40 |
</span><span class="EXCLUDED"><!-- additionalNSPrefixes="default http://example.org/default ns1 http://example.org/ns1" --> |
| 41 |
</span><span class="EXCLUDED"><!-- Result C14N: |
| 42 |
<Parent xmlns="http://example.org/default"> |
| 43 |
<ns1:GrandChild xmlns:ns1="http://example.org/ns1"></ns1:GrandChild><ns1:GrandChild xmlns="http://bar.com/default" xmlns:ns1="http://example.org/ns1" Gender="male"></ns1:GrandChild><GrandChild xmlns:ns1="http://example.org/ns1"></GrandChild><GrandChild xmlns:ns1="http://example.org/ns1" ns1:Gender="male"></GrandChild> |
| 44 |
</Parent> |
| 45 |
--> |
| 46 |
</span><span class="EXCLUDED"><!-- Annotation C14N: |
| 47 |
1. The default namespace node is rendered for Parent, since it is |
| 48 |
inherited from GrandParent. |
| 49 |
2. The ns1 namespace node is rendered for the first GrandChild, since |
| 50 |
it is inherited from Child. |
| 51 |
3. The default namespace node is not rendered for the first GrandChild, |
| 52 |
since the output parent of GrandChild (Parent) has the same namespace |
| 53 |
node with the same value, which is in the node set. |
| 54 |
4. The ns1 namespace node is rendered for the second GrandChild (same as 2). |
| 55 |
5. The default namespace node is rendered for the second GrandChild, |
| 56 |
since it is explicitly declared, and has a different value than that of |
| 57 |
Parent. |
| 58 |
6. The ns1 namespace node is rendered for the third GrandChild (same as 2). |
| 59 |
7. The default namespace node is not rendered for the third GrandChild |
| 60 |
(same as 3). |
| 61 |
8. The ns1 namespace node is rendered for the fourth GrandChild (same as 2). |
| 62 |
9. The default namespace node is not rendered fourth the third GrandChild |
| 63 |
(same as 3). |
| 64 |
--> |
| 65 |
</span><span class="EXCLUDED"><!-- Result EC14N: |
| 66 |
<Parent xmlns="http://example.org/default"> |
| 67 |
<ns1:GrandChild xmlns:ns1="http://example.org/ns1"></ns1:GrandChild><ns1:GrandChild xmlns:ns1="http://example.org/ns1" Gender="male"></ns1:GrandChild><GrandChild></GrandChild><GrandChild xmlns:ns1="http://example.org/ns1" ns1:Gender="male"></GrandChild> |
| 68 |
</Parent> |
| 69 |
--> |
| 70 |
</span><span class="EXCLUDED"><!-- Annotation EC14N: |
| 71 |
1. The default namespace node is rendered for Parent, since it is visibly |
| 72 |
utilized by Parent. |
| 73 |
2. The ns1 namespace attribute is rendered for the first GrandChild, since it |
| 74 |
is visibly utilized by GrandChild. |
| 75 |
3. The default namespace node is not rendered for the first GrandChild, since |
| 76 |
it is not visibly utilized. |
| 77 |
4. The ns1 namespace attribute is rendered for the second GrandChild, since it |
| 78 |
is visibly utilized by GrandChild. |
| 79 |
5. The default namespace node is not rendered for the second GrandChild, since |
| 80 |
it is not visibly utilized by GrandChild. The Gender attribute is in no |
| 81 |
namespace. |
| 82 |
6. The ns1 namespace node is not rendered for the third GrandChild, since it |
| 83 |
is not visibly utilized. |
| 84 |
7. The default namespace node is not rendered for the third GrandChild. It is |
| 85 |
visibly utilized, but the same namespace node with the same value has already |
| 86 |
been rendered in Parent (an output parent of GrandChild). |
| 87 |
8. The default namespace node is not rendered for the fourth GrandChild, since |
| 88 |
it is not visibly utilized. |
| 89 |
9. The ns1 namespace node is rendered for the fourth GrandChild, since it is |
| 90 |
visibly utilized by the ns1:Gender attribute of GrandChild. |
| 91 |
--> |
| 92 |
</span><span class="EXCLUDED"><GrandParent</span><span class="EXCLUDED"> xmlns="http://example.org/default"</span><span class="EXCLUDED">></span><span class="EXCLUDED"> |
| 93 |
</span><span class="INCLUDED"><Parent</span><span class="INCLUDED"> xmlns="http://example.org/default"</span><span class="INCLUDED">></span><span class="INCLUDED"> |
| 94 |
</span><span class="EXCLUDED"><Child</span><span class="EXCLUDED"> xmlns="http://example.org/default"</span><span class="EXCLUDED"> xmlns:ns1="http://example.org/ns1"</span><span class="EXCLUDED">></span><span class="EXCLUDED"> |
| 95 |
</span><span class="INCLUDED"><ns1:GrandChild</span><span class="INCLUDED"> xmlns="http://example.org/default"</span><span class="INCLUDED"> xmlns:ns1="http://example.org/ns1"</span><span class="INCLUDED">></span><span class="INCLUDED"></ns1:GrandChild></span><span class="EXCLUDED"> |
| 96 |
</span><span class="INCLUDED"><ns1:GrandChild</span><span class="INCLUDED"> xmlns="http://bar.com/default"</span><span class="INCLUDED"> xmlns:ns1="http://example.org/ns1"</span><span class="INCLUDED"> Gender="male"</span><span class="INCLUDED">></span><span class="INCLUDED"></ns1:GrandChild></span><span class="EXCLUDED"> |
| 97 |
</span><span class="INCLUDED"><GrandChild</span><span class="INCLUDED"> xmlns="http://example.org/default"</span><span class="INCLUDED"> xmlns:ns1="http://example.org/ns1"</span><span class="INCLUDED">></span><span class="INCLUDED"></GrandChild></span><span class="EXCLUDED"> |
| 98 |
</span><span class="INCLUDED"><GrandChild</span><span class="INCLUDED"> xmlns="http://example.org/default"</span><span class="INCLUDED"> xmlns:ns1="http://example.org/ns1"</span><span class="INCLUDED"> ns1:Gender="male"</span><span class="INCLUDED">></span><span class="INCLUDED"></GrandChild></span><span class="EXCLUDED"> |
| 99 |
</span><span class="EXCLUDED"></Child></span><span class="INCLUDED"> |
| 100 |
</span><span class="INCLUDED"></Parent></span><span class="EXCLUDED"> |
| 101 |
</span><span class="EXCLUDED"></GrandParent></span></pre></body></html> |