/[suikacvs]/markup/xml/xmlcc/xmlcc-work.en.html
Suika

Diff of /markup/xml/xmlcc/xmlcc-work.en.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by wakaba, Sat Dec 1 14:32:30 2007 UTC revision 1.19 by wakaba, Sat Dec 1 14:51:45 2007 UTC
# Line 314  is that of the <code>Document</code> nod Line 314  is that of the <code>Document</code> nod
314    
315    
316  <div class=section id=checking-components>  <div class=section id=checking-components>
317  <h3>Checking Components</h3>  <h3>Conformance Checking Algorithms for Components</h3>
318    
319  <p>The algorithm  <p>To
320  <dfn id=algorithm-to-validate-an-xml-character-data title-"to validate an XML character data">to  <dfn id=algorithm-to-validate-an-xml-character-data title="validate an XML string">to
321  validate an <abbr>XML</abbr> character data  validate an <abbr>XML</abbr> string (<dfn id=var-s><var>s</var></dfn>)</dfn>,
322  (<dfn id=var-s><var>s</var></dfn>)</dfn> is defined as following:</p>  the following algorithm <em class=rfc2119>MUST</em> be used:</p>
323  <ol>  <ol>
324  <li>If <var>s</var> contains a character that is <em>not</em> in  <li>If <var>s</var> contains a character that is <em>not</em> in
325  the character class <a href="#class-Char10"><code>Char10</code></a>,  the character class <a href="#class-Char10"><code>Char10</code></a>,
# Line 344  U+000D will be serialized as &#x000D; (s Line 344  U+000D will be serialized as &#x000D; (s
344  will be raised).</span></li>  will be raised).</span></li>
345  </ol>  </ol>
346    
347  <p>The algorithm  <p>To
348  <dfn id=algorithm-to-validate-a-name title="to validate a Name">to validate a  <dfn id=algorithm-to-validate-a-name title="validate a Name">validate a
349  <code>Name</code> (<dfn id=var-name-s><var>s</var></dfn>)</dfn> is defined  <code>Name</code> (<dfn id=var-name-s><var>s</var></dfn>)</dfn>, the following
350  as following:</p>  algorithm <em class=rfc2119>MUST</em> be used:</p>
351  <ol>  <ol>
352    <li>If <var>s</var> is an empty string, then raise an
353    <a href="#xml-well-formedness-error" id=wfe-name-empty><code>xml-well-formedness-error</code></a>.
354    Abort these steps.</li>
355    <li><a href="#algorithm-to-validate-an-xml-character-data" title="validate an XML string">Validate
356    <var>s</var> as an <abbr>XML</abbr> string</a>.</li>
357    <li>If the first character in <var>s</var> is a character that is
358    <em>not</em> in the character class
359    <a href="#class-NameStartChar10"><code>NameStartChar10</code></a>, then raise
360    an
361    <a href="#xml-well-formedness-error" id=wfe-name-startchar><code>xml-well-formedness-error</code></a>.</li>
362    <li>If a character other than the first character in <var>s</var> is a
363    character that is <em>not</em> in the character class
364    <a href="#class-NameChar10"><code>NameChar10</code></a>, then raise an
365    <a href="#xml-well-formedness-error" id=wfe-name-char><code>xml-well-formedness-error</code></a>.</li>
366  <li>If <var>s</var> begins with the string <code>xml</code> (in any  <li>If <var>s</var> begins with the string <code>xml</code> (in any
367  case combination), then raise an  case combination), then raise an
368  <a href="#xml-misc-warning" id=xmw-reserved-name><code>xml-misc-warning</code></a>.  <a href="#xml-misc-warning" id=xmw-reserved-name><code>xml-misc-warning</code></a>.
# Line 357  case combination), then raise an Line 371  case combination), then raise an
371  <code>xmlns</code>, <code>xmlns:<var>*</var></code>,  <code>xmlns</code>, <code>xmlns:<var>*</var></code>,
372  pi name <code>xml-stylesheet</code>.</span><!--  pi name <code>xml-stylesheet</code>.</span><!--
373  "names beginning with a match to (('X'|'x')('M'|'m')('L'|'l')) are reserved for standardization in this or future versions of this specification.":  "names beginning with a match to (('X'|'x')('M'|'m')('L'|'l')) are reserved for standardization in this or future versions of this specification.":
374  xml:base and xml:id specifications violate to this sentense!  xmlns, xml-stylesheet, xml:base and xml:id specifications violate to this sentense!
375  --></li>  --></li>
376  <!-- COLON in Name is a lowercase "should not" in a Note of [XML10],  <!-- COLON in Name is a lowercase "should not" in a Note of [XML10],
377  [XML11]. -->  [XML11]. -->
378  <li class=ed>@@</li>  <li class=ed>@@ XML 1.1 support</li>
379  </ol>  </ol>
380    
381  <p>The algorithm  <p>To
382  <dfn id=algorithm-to-validate-an-ncname title="to validate an NCName">to  <dfn id=algorithm-to-validate-an-ncname title="validate an NCName">validate
383  validate an <code>NCName</code> (<dfn id=var-name><var>name</var></dfn>)</dfn>  an <code>NCName</code> (<dfn id=var-ncname-s><var>s</var></dfn>)</dfn>, the
384  is defined as following:</p>  following algorithm <em class=rfc2119>MUST</em> be used:</p>
385  <ol>  <ol>
386    <li><a href="#algorithm-to-validate-a-name" title="validate a Name">Validate
387    <var>s</var> as a <code>Name</code></a>.</li>
388  <li class=ed>@@</li>  <li class=ed>@@</li>
389  </ol>  </ol>
390    
# Line 407  a system identifier (<dfn id=var-sid><va Line 423  a system identifier (<dfn id=var-sid><va
423  following algorithm <em class=rfc2119>MUST</em> be used:</p>  following algorithm <em class=rfc2119>MUST</em> be used:</p>
424  <ol>  <ol>
425    <li>If <var>sid</var> is <code>null</code>, abort these steps.</li>    <li>If <var>sid</var> is <code>null</code>, abort these steps.</li>
426    <li><a href="#algorithm-to-validate-an-xml-character-data" title="validate an XML string">Validate
427    <var>sid</var> as an <abbr>XML</abbr> string</a>.</li>
428    <li>If <var>sid</var> contains both <code class=char>U+0022</code>    <li>If <var>sid</var> contains both <code class=char>U+0022</code>
429    <code class=charname>QUOTATION MARK</code> (<code class=char>"</code>) and    <code class=charname>QUOTATION MARK</code> (<code class=char>"</code>) and
430    <code class=char>U+0027</code> <code class=charname>APOSTROPHE</code>    <code class=char>U+0027</code> <code class=charname>APOSTROPHE</code>
# Line 573  following:</p> Line 591  following:</p>
591  <dt>If <var>n</var> is a <code>CDATASection</code> node</dt>  <dt>If <var>n</var> is a <code>CDATASection</code> node</dt>
592    <dd>    <dd>
593      <ol>      <ol>
594      <li><a href="#algorithm-to-validate-an-xml-character-data">Validate the      <li><a href="#algorithm-to-validate-an-xml-character-data" title="validate an XML string">Validate the
595      <code>data</code> attribute value as an <abbr>XML</abbr> character      <code>data</code> attribute value as an <abbr>XML</abbr> character
596      data</a>.</li>      data</a>.</li>
597      <li>If the <code>data</code> attribute value contains      <li>If the <code>data</code> attribute value contains
# Line 589  following:</p> Line 607  following:</p>
607      <ol>      <ol>
608      <li>Raise an      <li>Raise an
609      <a href="#round-trip-warning" id=rtw-comment><code>round-trip-warning</code></a>.</li>      <a href="#round-trip-warning" id=rtw-comment><code>round-trip-warning</code></a>.</li>
610      <li><a href="#algorithm-to-validate-an-xml-character-data">Validate the      <li><a href="#algorithm-to-validate-an-xml-character-data" title="validate an XML string">Validate the
611      <code>data</code> attribute value as an <abbr>XML</abbr> character      <code>data</code> attribute value as an <abbr>XML</abbr> character
612      data</a>.</li>      data</a>.</li>
613      <li>If the <code>data</code> attribute value contains      <li>If the <code>data</code> attribute value contains
# Line 869  parsed entity)</dt> Line 887  parsed entity)</dt>
887      <li>Otherwise, <a href="#algorithm-to-validate-an-ncname">validate the      <li>Otherwise, <a href="#algorithm-to-validate-an-ncname">validate the
888      <code>target</code> attribute value as an <code>NCName</code></a>.</li>      <code>target</code> attribute value as an <code>NCName</code></a>.</li>
889      <li>Then,      <li>Then,
890      <a href="#algorithm-to-validate-an-xml-character-data" title="validate an XML character data">validate      <a href="#algorithm-to-validate-an-xml-character-data" title="validate an XML string">validate
891      the <code>data</code> attribute value as an <abbr>XML</abbr> character      the <code>data</code> attribute value as an <abbr>XML</abbr> character
892      data</a>.</li>      data</a>.</li>
893      <li>If the <code>data</code> attribute value contains a string      <li>If the <code>data</code> attribute value contains a string
# Line 890  parsed entity)</dt> Line 908  parsed entity)</dt>
908  <dt>If <var>n</var> is a <code>Text</code> node</dt>  <dt>If <var>n</var> is a <code>Text</code> node</dt>
909    <dd>    <dd>
910      <ol>      <ol>
911      <li><a href="#algorithm-to-validate-an-xml-character-data">Validate the      <li><a href="#algorithm-to-validate-an-xml-character-data" title="validate an XML string">Validate the
912      <code>data</code> attribute value as an <abbr>XML</abbr> character      <code>data</code> attribute value as an <abbr>XML</abbr> character
913      data</a>.</li>      data</a>.</li>
914      <li>If the <code>childNodes</code> list of <var>n</var> contains      <li>If the <code>childNodes</code> list of <var>n</var> contains
# Line 974  as amended by Line 992  as amended by
992  <a href="http://www.w3.org/XML/xml-V10-4e-errata#E02">errata</a>.</p>  <a href="http://www.w3.org/XML/xml-V10-4e-errata#E02">errata</a>.</p>
993  </div>  </div>
994    
995    <p>The character class <dfn id=class-NameStartChar10><code>NameStartChar10</code></dfn>
996    contains the following characters:</p>
997    <ul class=ed>
998    </ul>
999    
1000    <p>The character class <dfn id=class-NameChar10><code>NameChar10</code></dfn>
1001    contains the following characters:</p>
1002    <ul>
1003    <li>The characters in the character class
1004    <a href="#class-NameStartChar10">NameStartChar10</a>.</li>
1005    <li class=ed></li>
1006    </ul>
1007    
1008  </div>  </div>
1009    
1010  <div id="references" class="section reference">  <div id="references" class="section reference">

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24