/[suikacvs]/test/html-webhacc/error-description-source.xml
Suika

Diff of /test/html-webhacc/error-description-source.xml

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

revision 1.41 by wakaba, Sat Aug 30 16:10:07 2008 UTC revision 1.43 by wakaba, Wed Sep 10 10:22:59 2008 UTC
# Line 56  Line 56 
56  <section id="character-encoding-layer">  <section id="character-encoding-layer">
57  <h2>Character Encoding Layer Errors</h2>  <h2>Character Encoding Layer Errors</h2>
58    
59  <d:item name="illegal-octets-error" class="error-category-charset" level="m">  <d:item name="fallback-char-error"
60    <d:message xml:lang="en">An illegal octet in the input stream.</d:message>      modules="Charset::DecodeHandle">
61      <d:message xml:lang="en">Octet sequence <code><var>{octets}</var></code>
62      is not an allowed representation of the character
63      <code><var>{char}</var></code> &#x2014; character reference
64      <code><var>{char:hexref}</var></code> should be used instead.</d:message>
65      <!-- HTML5 parse error -->
66    </d:item>
67    
68    <d:item name="fallback-unassigned-error"
69        modules="Charset::DecodeHandle">
70      <d:message xml:lang="en">No character is assigned to octet sequence
71      <code><var>{octets}</var></code>.</d:message>
72      <!-- HTML5 parse error -->
73    </d:item>
74    
75    <d:item name="illegal-octets-error"
76        modules="Charset::DecodeHandle">
77      <d:message xml:lang="en">Octet sequence <code><var>{octets}</var></code>
78      is illegal.</d:message>
79    </d:item>
80    
81    <d:item name="invalid-state-error"
82        modules="Charset::DecodeHandle::ISO2022JP">
83      <!-- TODO: more user-friendly error message is desired... -->
84      <d:message xml:lang="en">The input stream is broken.</d:message>
85      <d:desc xml:lang="en">
86        <p>The input stream is encoded in <code>ISO-2022-JP</code>
87        or its variant but is partially broken.</p>
88    
89        <p>Note that an <code>ISO-2022-JP</code> stream must end in the ASCII
90        state.</p>
91      </d:desc>
92    </d:item>
93    
94    <d:item name="unassigned-code-point-error"
95        modules="Charset::DecodeHandle">
96      <d:message xml:lang="en">No character is assigned to octet sequence
97      <code><var>{octets}</var></code>.</d:message>
98  </d:item>  </d:item>
99  </section>  </section>
100    
# Line 177  Line 214 
214    
215  <d:item name="chardecode:fallback"  <d:item name="chardecode:fallback"
216      modules="HTML::Parser">      modules="HTML::Parser">
217    <d:message xml:lang="en">Since no decoder for the document character    <d:message xml:lang="en">Results might be <em>wrong</em>, since the
218    encoding is found, decoder for the character encoding    conformance checker cannot find an appropriate decoder for the character
219    <code><var>{text}</var></code> is used.  Checking results might be    encoding used for the document.</d:message>
220    <em>wrong</em>.</d:message>    <d:desc xml:lang="en">
221        <p>The conformance checker cannot find an appropriate decoder for
222        the character encoding used to encode characters in the document.</p>
223    
224        <p>This error is raised if:</p>
225        <ul>
226        <li>the conformance checker cannot find any decoder for the character
227        encoding in use, but it knows that the encoding is similar to another
228        character encoding, such that it uses the decoder for that character
229        encoding, and therefore some octets might be interpreted incorrectly,
230        or,</li>
231        <li>the conformance checker find a decoder for the character encoding
232        in use, but it does not know whether the decoder is conforming to the
233        relevant specification or not, and therefore some octets might be
234        interpreted incorrectly.</li>
235        </ul>
236    
237        <p>In either case, the result shown by the conformance checker might
238        contain wrong errors caused by errorneous decoder or might not contain
239        errors that should be raised if an appropriate decoder is used.</p>
240    
241        <!-- TODO: add advise that either install relevant modules or
242             join the developmenet of the modules... -->
243      </d:desc>
244  </d:item>  </d:item>
245    
246  <d:item name="chardecode:no error"  <d:item name="chardecode:no error"
# Line 760  p { Line 820  p {
820  <section id="html5-parse-errors">  <section id="html5-parse-errors">
821  <h2>HTML5 Parse Errors in Tree Construction Stage</h2>  <h2>HTML5 Parse Errors in Tree Construction Stage</h2>
822    
823    <d:item name="after after frameset"
824        modules="HTML::Parser">
825      <d:message xml:lang="en">There is a start tag
826      <code>&lt;<var>{text}</var>></code> is after the <code>html</code> element
827      is closed.</d:message>
828      <d:message xml:lang="ja"><code>html</code> 要素が閉じられた後に開始タグ
829      <code>&lt;<var>{text}</var>></code> があります。</d:message>
830    </d:item>
831    
832    <d:item name="after after frameset:/"
833        modules="HTML::Parser">
834      <d:message xml:lang="en">There is an end tag
835      <code>&lt;/<var>{text}</var>></code> is after the <code>html</code> element
836      is closed.</d:message>
837      <d:message xml:lang="ja"><code>html</code> 要素が閉じられた後に終了タグ
838      <code>&lt;/<var>{text}</var>></code> があります。</d:message>
839    </d:item>
840    
841  <d:item name="after body"  <d:item name="after body"
842      modules="HTML::Parser">      modules="HTML::Parser">
843    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>></code> is    <d:message xml:lang="en">Start tag <code>&lt;<var>{text}</var>></code> is
# Line 1183  p { Line 1261  p {
1261    </d:desc>    </d:desc>
1262  </d:item>  </d:item>
1263    
1264    <d:item name="XSLT-compat"
1265        modules="HTML::Parser">
1266      <d:message xml:lang="en">The <code>DOCTYPE</code> legacy string is
1267      used.</d:message>
1268      <d:message xml:lang="ja"><code>DOCTYPE</code>
1269      遺物文字列が使われています。</d:message>
1270      <d:desc xml:lang="en">
1271        <p>The <code>DOCTYPE</code> with the <code>DOCTYPE</code> legacy
1272        string, i.e.
1273        <code class="html bad example">&lt;!DOCTYPE HTML PUBLIC "XSLT-compat"></code>
1274        is used.</p>
1275    
1276        <p>The <code>DOCTYPE</code> legacy string should not be used for documents
1277        generated from XSLT transformation process.  It is allowed only to enable
1278        to use XSLT style sheets with the HTML output mode, which does not
1279        support generation of the <code>DOCTYPE</code> with no <code>PUBLIC</code>
1280        identifier.  For other purposes, the <code>DOCTYPE</code> legacy
1281        string, i.e. <code class="html bad example">PUBLIC "XSLT-compat"</code>,
1282        is useless and should not be used.</p>
1283      </d:desc>
1284    </d:item>
1285    
1286  </section>  </section>
1287    
1288  <section id="element-content-model-errors">  <section id="element-content-model-errors">
# Line 1452  p { Line 1552  p {
1552    
1553  <d:item name="element not allowed:meta charset"  <d:item name="element not allowed:meta charset"
1554      modules="ContentChecker::HTML">      modules="ContentChecker::HTML">
1555    <d:message xml:lang="en">The character encoding declaration must be the    <d:message xml:lang="en">The character encoding declaration is not the
1556    first element in the <code>head</code> element.</d:message>    first child element in the <code>head</code> element.</d:message>
1557      <d:message xml:lang="ja">文字符号化宣言が <code>head</code>
1558      要素の最初の子要素ではありません。</d:message>
1559      <d:desc xml:lang="en">
1560        <p>The character encoding declaration
1561        (<code class="html example">&lt;meta charset="<var>...</var>"></code> or
1562        <code class="html example">&lt;meta http-equiv=Content-Type content="text/html; charset=<var>...</var>"></code>
1563        must be the first child element in the <code>head</code> element.</p>
1564    
1565        <p>The character encoding declaration have to occur near the beginning
1566        of the document to ensure that Web browsers can be determine the
1567        character encoding of the document.</p>
1568    
1569        <p>The <code>title</code> element and other metadata elements must
1570        appear after any character encoding declaration is processed.</p>
1571      </d:desc>
1572  </d:item>  </d:item>
1573    
1574  <d:item name="element not allowed:metadata"  <d:item name="element not allowed:metadata"
# Line 1537  p { Line 1652  p {
1652  <d:item name="element not defined"  <d:item name="element not defined"
1653      modules="ContentChecker">      modules="ContentChecker">
1654    <d:message xml:lang="en">This element is not defined.</d:message>    <d:message xml:lang="en">This element is not defined.</d:message>
1655      <d:message xml:lang="ja">この要素は定義されていません。</d:message>
1656      <d:desc xml:lang="en">
1657        <p>The element is not one of elements allowed
1658        in the latest version of relevant specifications.</p>
1659    
1660        <p>The element cannot be used.</p>
1661    
1662        <dl class="switch">
1663        <dt><code>event-source</code> element</dt>
1664            <dd>The element was renamed as <em><code>eventsource</code>
1665            element</em> (no hyphen).</dd>
1666        <dt><code>m</code> element</dt>
1667            <dd>The element was renamed as <em><code>mark</code>
1668            element</em>.</dd>
1669        </dl>
1670      </d:desc>
1671  </d:item>  </d:item>
1672    
1673  <d:item name="no significant content"  <d:item name="no significant content"
# Line 1661  p { Line 1792  p {
1792  <d:item name="attribute not defined"  <d:item name="attribute not defined"
1793      modules="ContentChecker">      modules="ContentChecker">
1794    <d:message xml:lang="en">This attribute is not defined.</d:message>    <d:message xml:lang="en">This attribute is not defined.</d:message>
1795      <d:message xml:lang="ja">この属性は定義されていません。</d:message>
1796    <d:desc xml:lang="en">    <d:desc xml:lang="en">
1797      <p>The attribute is not one of attributes allowed for the element      <p>The attribute is not one of attributes allowed for the element
1798      in the latest version of relevant specifications.</p>      in the latest version of relevant specifications.</p>
1799    
1800      <p>The attribute cannot be used.</p>      <p>The attribute cannot be used.</p>
1801    
1802      <dl>      <dl class="switch">
1803        <dt><code>align</code> attribute (various HTML elements)</dt>
1804        <dt><code>border</code> attribute (various HTML elements)</dt>
1805          <dd>These attributes are no longer part of HTML.  You can use CSS
1806          properties to control the presentation of the element.</dd>
1807      <dt><code>autosubmit</code> attribute (<code>menu</code> element)</dt>      <dt><code>autosubmit</code> attribute (<code>menu</code> element)</dt>
1808        <dd>The attribute was part of HTML5 draft but then dropped.        <dd>The attribute was part of HTML5 draft but then dropped.
1809        Similar functionality can be implemented by scripts.</dd>        Similar functionality can be implemented by scripts.</dd>
1810        <dt><code>language</code> attribute (<code>script</code> element)</dt>
1811          <dd>The attribute is no longer the standard way to specify the
1812          scripting language.  If you are using JavaScript, then no explicit
1813          specification of the scripting language is necessary, so you can
1814          write the element like:
1815            <p><code class="html example code">&lt;script><br/><!--
1816            --> /* JavaScript code */<br/><!--
1817            -->&lt;/script></code></p>
1818          If you are using different scripting language from JavaScript, or
1819          you want to declare the scripting language explicitly, you should
1820          use the <code>type</code> attribute, as follows:
1821            <dl class="switch">
1822            <dt>JavaScript</dt>
1823              <dd>Use
1824              <code class="html example">&lt;script type="text/javascript"></code>.</dd>
1825            <dt>VBScript</dt>
1826              <dd>Use
1827              <code class="html example">&lt;script type="text/vbscript"></code>.</dd>
1828            </dl>
1829          </dd>
1830      </dl>      </dl>
1831    </d:desc>    </d:desc>
1832  </d:item>  </d:item>
# Line 2037  p { Line 2193  p {
2193    
2194  <d:item name="empty attribute value"  <d:item name="empty attribute value"
2195      modules="ContentChecker::HTML">      modules="ContentChecker::HTML">
2196    <d:message xml:lang="en">The attribute value must not be empty.</d:message>    <d:message xml:lang="en">The attribute value is empty.</d:message>
2197      <d:message xml:lang="ja">属性値が空です。</d:message>
2198    </d:item>
2199    
2200    <d:item name="empty style sheet title"
2201        modules="ContentChecker::HTML">
2202      <d:message xml:lang="en">The value of the <code>title</code> attribute
2203      is empty.</d:message>
2204      <d:message xml:lang="ja"><code>title</code> 属性の値が空です。</d:message>
2205      <d:desc xml:lang="en">
2206        <p>The <code>title</code> attribute value of the <code>link</code>
2207        element that defines an alternate style sheet is an empty value.</p>
2208    
2209        <p>A <code>link</code> element whose <code>rel</code> attribute
2210        is <code>alternate stylesheet</code> defines an alternate style sheet.
2211        An alternate style sheet must be associated with a name using the
2212        <code>title</code> attribute.  The name cannot be empty.</p>
2213      </d:desc>
2214  </d:item>  </d:item>
2215    
2216  <d:item name="float:out of range"  <d:item name="float:out of range"
# Line 2465  p { Line 2638  p {
2638      modules="IMTChecker">      modules="IMTChecker">
2639    <d:message xml:lang="en">An obsolete Internet Media Type    <d:message xml:lang="en">An obsolete Internet Media Type
2640    <code><var>{value}</var></code> is used.</d:message>    <code><var>{value}</var></code> is used.</d:message>
2641    <d:item xml:lang="en">    <d:message xml:lang="ja">廃止されたインターネット媒体型
2642      <p>The specified Internet Media Type is registered with status    <code><var>{value}</var></code> が使われています。</d:message>
2643      of <i>OBSOLETE</i>.</p>    <d:desc xml:lang="en">
2644        <p>The specified Internet Media Type is registered with its intended
2645        usage as <i>OBSOLETE</i>.</p>
2646            
2647      <dl class="swtich">      <dl class="swtich">
2648      <dt>Media type <code>text/ecmascript</code></dt>      <dt>Media type <code>text/ecmascript</code></dt>
2649        <dd>Media type <code>text/ecmascript</code> is obsoleted in        <dd>Media type <code>text/ecmascript</code> is obsoleted in
2650        favor of <code>application/ecmascript</code>.  Note that        favor of <code>application/ecmascript</code>.  Note that
2651        <code>text/javascript</code> would be better alternative        <em><code>text/javascript</code></em> would be the better alternative
2652        for many cases.</dd>        in many cases.</dd>
2653      <dt>Media type <code>text/javascript</code></dt>      <dt>Media type <code>text/javascript</code></dt>
2654        <dd>Media type <code>text/javascript</code> is obsoleted by        <dd>Media type <code>text/javascript</code> is obsoleted by
2655        <abbr>IETF</abbr> with backward incompatible alternate        <abbr>IETF</abbr> with backward incompatible alternate
2656        <code>application/javascript</code> for architectural        <code>application/javascript</code> for architectural
2657        purity.<!-- @@ ref? -->  Realist may ignore this warning.</dd>        purity.<!-- @@ ref? -->  Those who prefer reality to academic
2658          purity <em>may ignore</em> this warning.</dd>
2659      </dl>      </dl>
2660    </d:item>    </d:desc>
2661  </d:item>  </d:item>
2662    
2663  <d:item name="IMT:parameter missing"  <d:item name="IMT:parameter missing"
# Line 3782  p { Line 3958  p {
3958    <d:text xml:lang="ja">位置不明</d:text>    <d:text xml:lang="ja">位置不明</d:text>
3959  </d:cat>  </d:cat>
3960    
3961  <d:cat name="(Unknown)">  <d:cat name="(unknown)">
3962    <d:text xml:lang="en">(Unknown)</d:text>    <d:text xml:lang="en">(Unknown)</d:text>
3963    <d:text xml:lang="ja">(不明)</d:text>    <d:text xml:lang="ja">(不明)</d:text>
3964  </d:cat>  </d:cat>

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.43

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24