| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html> |
| <head> |
| <title>Caninical XML node set</title> |
| <style type="text/css"> |
| <!-- |
| .INCLUDED { |
| color: #000000; |
| background-color: |
| #FFFFFF; |
| font-weight: bold; } |
| .EXCLUDED { |
| color: #666666; |
| background-color: |
| #999999; } |
| .INCLUDEDINCLUSIVENAMESPACE { |
| color: #0000FF; |
| background-color: #FFFFFF; |
| font-weight: bold; |
| font-style: italic; } |
| .EXCLUDEDINCLUSIVENAMESPACE { |
| color: #0000FF; |
| background-color: #999999; |
| font-style: italic; } |
| --> |
| </style> |
| </head> |
| <body bgcolor="#999999"> |
| <h1>Explanation of the output</h1> |
| <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> |
| <ul> |
| <li class="INCLUDED">A node which is in the node set is labeled using the INCLUDED style.</li> |
| <li class="EXCLUDED">A node which is <em>NOT</em> in the node set is labeled EXCLUDED style.</li> |
| <li class="INCLUDEDINCLUSIVENAMESPACE">A namespace which is in the node set AND in the InclusiveNamespaces PrefixList is labeled using the INCLUDEDINCLUSIVENAMESPACE style.</li> |
| <li class="EXCLUDEDINCLUSIVENAMESPACE">A namespace which is in NOT the node set AND in the InclusiveNamespaces PrefixList is labeled using the INCLUDEDINCLUSIVENAMESPACE style.</li> |
| </ul> |
| <h1>Output</h1> |
| <pre> |
| <span class="EXCLUDED"><!-- XPath="self::Parent or (parent::Parent and not(self::default:Child)) or self::GrandChild or parent::GrandChild" --> |
| </span><span class="EXCLUDED"><!-- additionalNSPrefixes="default http://example.org" --> |
| </span><span class="EXCLUDED"><!-- Result C14N: |
| <Parent> |
| <GrandChild></GrandChild> |
| </Parent> |
| --> |
| </span><span class="EXCLUDED"><!-- 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. |
| --> |
| </span><span class="EXCLUDED"><!-- Result EC14N: |
| <Parent> |
| <GrandChild></GrandChild> |
| </Parent> |
| --> |
| </span><span class="EXCLUDED"><!-- Annotation EC14N: |
| See Annotation C14N. |
| --> |
| </span><span class="EXCLUDED"><GrandParent</span><span class="EXCLUDED"> xmlns=""</span><span class="EXCLUDED">></span><span class="EXCLUDED"> |
| </span><span class="INCLUDED"><Parent</span><span class="INCLUDED"> xmlns=""</span><span class="INCLUDED">></span><span class="INCLUDED"> |
| </span><span class="EXCLUDED"><Child</span><span class="EXCLUDED"> xmlns="http://example.org"</span><span class="EXCLUDED">></span><span class="EXCLUDED"> |
| </span><span class="INCLUDED"><GrandChild</span><span class="INCLUDED"> xmlns=""</span><span class="INCLUDED">></span><span class="INCLUDED"></GrandChild></span><span class="EXCLUDED"> |
| </span><span class="EXCLUDED"></Child></span><span class="INCLUDED"> |
| </span><span class="INCLUDED"></Parent></span><span class="EXCLUDED"> |
| </span><span class="EXCLUDED"></GrandParent></span></pre></body></html> |