393 |
a public identifier (<dfn id=var-pid><var>pid</var></dfn>)</dfn>, the |
a public identifier (<dfn id=var-pid><var>pid</var></dfn>)</dfn>, the |
394 |
following algorithm <em class=rfc2119>MUST</em> be used:</p> |
following algorithm <em class=rfc2119>MUST</em> be used:</p> |
395 |
<ol> |
<ol> |
396 |
<li>If <var>pid</var> is <code>null</code>, abort these steps.</li> |
<li>If <var>pid</var> is <code>null</code>, abort these steps.</li> |
397 |
<li>If <var>pid</var> contains any character |
<li>If <var>pid</var> contains a character that is <em>not</em> in the |
398 |
that is outside of the range of <code>#x20 | #xD | #xA | |
character class <a href="#class-PubidChar"><code>PubidChar</code></a>, then |
399 |
[a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%]</code><!-- @@ TODO: formal def -->, |
raise an |
400 |
then it is an |
<a href="#xml-well-formedness-error" id=wfe-pubid-char><code>xml-well-formedness-error</code></a>.</li> |
|
<a href="#xml-well-formedness-error" id=wfe-pubid-char><code>xml-well-formedness-error</code></a>.</li> |
|
401 |
<li>If <var>pid</var> contains one of <code class=char>U+0009</code> |
<li>If <var>pid</var> contains one of <code class=char>U+0009</code> |
402 |
<code class=charname>CHARACTER TABULATION</code>, |
<code class=charname>CHARACTER TABULATION</code>, |
403 |
<code class=char>U+000A</code> <code class=charname>CARRIAGE RETURN</code>, |
<code class=char>U+000A</code> <code class=charname>CARRIAGE RETURN</code>, |
413 |
<span class=ed>Is this really a roundtripness problem? XML spec |
<span class=ed>Is this really a roundtripness problem? XML spec |
414 |
does only define the way to match public identifiers in fact, no |
does only define the way to match public identifiers in fact, no |
415 |
canonical form.</span></li> |
canonical form.</span></li> |
|
<li class=ed>@@ Should we check formal-public-identifierness?</li> |
|
416 |
</ol> |
</ol> |
417 |
|
|
418 |
<p>To |
<p>To |
994 |
contains the following characters:</p> |
contains the following characters:</p> |
995 |
<ul class=ed> |
<ul class=ed> |
996 |
</ul> |
</ul> |
997 |
|
<div class="note memo"> |
998 |
|
<p>This character class contains all characters allowed as the first character |
999 |
|
of a string matching to the production rule |
1000 |
|
<a href="http://www.w3.org/TR/2006/REC-xml-20060816/#NT-Name"><code>Name</code></a> |
1001 |
|
of <abbr>XML</abbr> 1.0 |
1002 |
|
<cite class="bibref normative">[<a href="#ref-XML10">XML10</a>]</cite>.</p> |
1003 |
|
</div> |
1004 |
|
|
1005 |
<p>The character class <dfn id=class-NameChar10><code>NameChar10</code></dfn> |
<p>The character class <dfn id=class-NameChar10><code>NameChar10</code></dfn> |
1006 |
contains the following characters:</p> |
contains the following characters:</p> |
1009 |
<a href="#class-NameStartChar10">NameStartChar10</a>.</li> |
<a href="#class-NameStartChar10">NameStartChar10</a>.</li> |
1010 |
<li class=ed></li> |
<li class=ed></li> |
1011 |
</ul> |
</ul> |
1012 |
|
<div class="note memo"> |
1013 |
|
<p>This character class contains all characters allowed as the second |
1014 |
|
character of a string matching to the production rule |
1015 |
|
<a href="http://www.w3.org/TR/2006/REC-xml-20060816/#NT-Name"><code>Name</code></a> |
1016 |
|
of <abbr>XML</abbr> 1.0 |
1017 |
|
<cite class="bibref normative">[<a href="#ref-XML10">XML10</a>]</cite>.</p> |
1018 |
|
</div> |
1019 |
|
|
1020 |
|
<p>The character class <dfn id=class-PubidChar><code>PubidChar</code></dfn> |
1021 |
|
contains the following characters:</p> |
1022 |
|
<ul> |
1023 |
|
<li><code class=char>U+0009</code> <code class=charname>CHARACTER |
1024 |
|
TABULATION</code></li> |
1025 |
|
<li><code class=char>U+000A</code> <code class=charname>LINE FEED</code></li> |
1026 |
|
<li><code class=char>U+000D</code> <code class=charname>CARRIAGE |
1027 |
|
RETURN</code></li> |
1028 |
|
<li><code class=char>U+0020</code> <code class=charname>SPACE</code></li> |
1029 |
|
<li><code class=char>U+0021</code> <code class=charname>EXCLAMATION MARK</code> |
1030 |
|
(<code class=char>!</code>)</li> |
1031 |
|
<li><code class=char>U+0023</code> <code class=charname>DOLLAR SIGN</code> |
1032 |
|
(<code class=char>$</code>)</li> |
1033 |
|
<li><code class=char>U+0024</code> <code class=charname>NUMBER SIGN</code> |
1034 |
|
(<code class=char>#</code>)</li> |
1035 |
|
<li><code class=char>U+0025</code> <code class=charname>PERCENT SIGN</code> |
1036 |
|
(<code class=char>%</code>)</li> |
1037 |
|
<li><code class=char>U+0027</code> <code class=charname>APOSTROPHE</code> |
1038 |
|
(<code class=char>'</code>)</li> |
1039 |
|
<li><code class=char>U+0028</code> <code class=charname>LEFT PARENTHESIS</code> |
1040 |
|
(<code class=char>(</code>)</li> |
1041 |
|
<li><code class=char>U+0029</code> <code class=charname>RIGHT |
1042 |
|
PARENTHESIS</code> (<code class=char>)</code>)</li> |
1043 |
|
<li><code class=char>U+002A</code> <code class=charname>ASTERISK</code> |
1044 |
|
(<code class=char>*</code>)</li> |
1045 |
|
<li><code class=char>U+002B</code> <code class=charname>PLUS SIGN</code> |
1046 |
|
(<code class=char>+</code>)</li> |
1047 |
|
<li><code class=char>U+002C</code> <code class=charname>COMMA</code> |
1048 |
|
(<code class=char>,</code>)</li> |
1049 |
|
<li><code class=char>U+002D</code> <code class=charname>HYPHEN-MINUS</code> |
1050 |
|
(<code class=char>-</code>)</li> |
1051 |
|
<li><code class=char>U+002E</code> <code class=charname>FULL STOP</code> |
1052 |
|
(<code class=char>.</code>)</li> |
1053 |
|
<li><code class=char>U+002F</code> <code class=charname>SOLIDUS</code> |
1054 |
|
(<code class=char>/</code>)</li> |
1055 |
|
<li><code class=char>U+003A</code> <code class=charname>COLON</code> |
1056 |
|
(<code class=char>:</code>)</li> |
1057 |
|
<li><code class=char>U+003B</code> <code class=charname>SEMICOLON</code> |
1058 |
|
(<code class=char>;</code>)</li> |
1059 |
|
<li><code class=char>U+003D</code> <code class=charname>EQUAL SIGN</code> |
1060 |
|
(<code class=char>=</code>)</li> |
1061 |
|
<li><code class=char>U+003F</code> <code class=charname>QUESTION MARK</code> |
1062 |
|
(<code class=char>?</code>)</li> |
1063 |
|
<li><code class=char>U+0040</code> <code class=charname>COMMERCIAL AT</code> |
1064 |
|
(<code class=char>@</code>)</li> |
1065 |
|
<li><code class=char>U+005F</code> <code class=charname>LOW LINE</code> |
1066 |
|
(<code class=char>_</code>)</li> |
1067 |
|
</ul> |
1068 |
|
<div class="note memo"> |
1069 |
|
<p>This character class contains all characters allowed in the production rule |
1070 |
|
<a href="http://www.w3.org/TR/2006/REC-xml-20060816/#NT-PubidChar"><code>PubidChar</code></a> |
1071 |
|
of <abbr>XML</abbr> 1.0 |
1072 |
|
<cite class="bibref normative">[<a href="#ref-XML10">XML10</a>]</cite>.</p> |
1073 |
|
</div> |
1074 |
|
|
1075 |
</div> |
</div> |
1076 |
|
|