source: trunk/QA/xmlconf/xmltest/canonxml.html @ 450

Last change on this file since 450 was 450, checked in by cameron, 9 years ago

Include xmlconf

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1<HTML>
2<TITLE>Canonical XML</TITLE>
3<BODY>
4<H1>Canonical XML</H1>
5<P>
6This document defines a subset of XML called canonical XML.
7The intended use of canonical XML is in testing XML processors,
8as a representation of the result of parsing an XML document.
9<P>
10Every well-formed XML document has a unique structurally equivalent
11canonical XML document.  Two structurally equivalent XML
12documents have a byte-for-byte identical canonical XML document.
13Canonicalizing an XML document requires only information that an XML
14processor is required to make available to an application.
15<P>
16A canonical XML document conforms to the following grammar:
17<PRE>
18CanonXML    ::= Pi* element Pi*
19element     ::= Stag (Datachar | Pi | element)* Etag
20Stag        ::= '&lt;'  Name Atts '&gt;'
21Etag        ::= '&lt;/' Name '&gt;'
22Pi          ::= '&lt;?' Name ' ' (((Char - S) Char*)? - (Char* '?&gt;' Char*)) '?&gt;'
23Atts        ::= (' ' Name '=' '"' Datachar* '"')*
24Datachar    ::= '&amp;amp;' | '&amp;lt;' | '&amp;gt;' | '&amp;quot;'
25                 | '&amp;#9;'| '&amp;#10;'| '&amp;#13;'
26                 | (Char - ('&amp;' | '&lt;' | '&gt;' | '"' | #x9 | #xA | #xD))
27Name        ::= (see XML spec)
28Char        ::= (see XML spec)
29S           ::= (see XML spec)
30</PRE>
31<P>
32Attributes are in lexicographical order (in Unicode bit order).
33<P>
34A canonical XML document is encoded in UTF-8.
35<P>
36Ignorable white space is considered significant and is treated equivalently
37to data.
38<P>
39<ADDRESS>
40<A HREF="mailto:jjc@jclark.com">James Clark</A>
41</ADDRESS>
42
43</BODY>
44</HTML>
Note: See TracBrowser for help on using the repository browser.