blob: d2f4d50c826004f95146e31648f5135e51ad7c20 [file] [log] [blame]
<!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">&lt;!-- XPath="self::Parent or (parent::Parent and not(self::default:Child)) or self::GrandChild or parent::GrandChild" --&gt;
</span><span class="EXCLUDED">&lt;!-- additionalNSPrefixes="default http://example.org" --&gt;
</span><span class="EXCLUDED">&lt;!-- Result C14N:
<Parent>
<GrandChild></GrandChild>
</Parent>
--&gt;
</span><span class="EXCLUDED">&lt;!-- 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.
--&gt;
</span><span class="EXCLUDED">&lt;!-- Result EC14N:
<Parent>
<GrandChild></GrandChild>
</Parent>
--&gt;
</span><span class="EXCLUDED">&lt;!-- Annotation EC14N:
See Annotation C14N.
--&gt;
</span><span class="EXCLUDED">&lt;GrandParent</span><span class="EXCLUDED"> xmlns=""</span><span class="EXCLUDED">&gt;</span><span class="EXCLUDED">
</span><span class="INCLUDED">&lt;Parent</span><span class="INCLUDED"> xmlns=""</span><span class="INCLUDED">&gt;</span><span class="INCLUDED">
</span><span class="EXCLUDED">&lt;Child</span><span class="EXCLUDED"> xmlns="http://example.org"</span><span class="EXCLUDED">&gt;</span><span class="EXCLUDED">
</span><span class="INCLUDED">&lt;GrandChild</span><span class="INCLUDED"> xmlns=""</span><span class="INCLUDED">&gt;</span><span class="INCLUDED">&lt;/GrandChild&gt;</span><span class="EXCLUDED">
</span><span class="EXCLUDED">&lt;/Child&gt;</span><span class="INCLUDED">
</span><span class="INCLUDED">&lt;/Parent&gt;</span><span class="EXCLUDED">
</span><span class="EXCLUDED">&lt;/GrandParent&gt;</span></pre></body></html>