/[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.40 by wakaba, Sat Aug 30 05:32:51 2008 UTC revision 1.42 by wakaba, Sun Aug 31 13:28:12 2008 UTC
# Line 256  Line 256 
256    <d:message xml:lang="en">Attribute value must be quoted by <code>"</code>    <d:message xml:lang="en">Attribute value must be quoted by <code>"</code>
257    or <code>'</code> if it contains a <code>"</code>, <code>'</code>, or    or <code>'</code> if it contains a <code>"</code>, <code>'</code>, or
258    <code>=</code> character.</d:message>    <code>=</code> character.</d:message>
259      <d:desc xml:lang="en">
260        <p>In an unquoted attribute value, a character <code>"</code>
261        (<code>U+0022</code> <code class="charname">QUOTATION MARK</code>),
262        <code>'</code> (<code>U+0026</code>
263        <code class="charname">APOSTROPHE</code>), or <code>=</code>
264        (<code>U+003D</code> <code class="charname">EQUAL SIGN</code>)
265        is contained.  These characters are not allowed in unquoted attribute
266        values, since they are used to quote attribute values or to separate
267        attribute name and value.</p>
268    
269        <p>This error is also raised if one try to use empty attribute
270        value like <code class="html bad example">&lt;foo bar= baz=></code>;
271        in this example, <code class="html bad example">baz=</code> is
272        treated as an invalid attribute value for the attribute
273        <code class="html bad example">bar</code>, not as another attribute.</p>
274      </d:desc>
275  </d:item>  </d:item>
276    
277  <d:item name="bare ero"  <d:item name="bare ero"
# Line 503  Line 519 
519  <d:item name="end tag attribute"  <d:item name="end tag attribute"
520      modules="HTML::Parser">      modules="HTML::Parser">
521    <d:message xml:lang="en">End tag cannot have attributes.</d:message>    <d:message xml:lang="en">End tag cannot have attributes.</d:message>
522      <d:message xml:lang="ja">終了タグに属性が指定されています。</d:message>
523    </d:item>
524    
525    <d:item name="empty unquoted attribute value"
526        modules="HTML::Parser">
527      <d:message xml:lang="en">Attribute value is not specified.</d:message>
528      <d:message xml:lang="ja">属性値が指定されていません。</d:message>
529      <d:desc xml:lang="en">
530        <p>The attribute value is not specified after the <code>=</code>
531        (<code>U+003C</code> <code class="charname">EQUAL SIGN</code>)
532        character.</p>
533    
534        <p>When an attribute value is empty, the <code>=</code> character after
535        the attribute name must be specified as:</p>
536    
537        <p><code class="html example">&lt;foo bar></code></p>
538    
539        <p>Instead, quotation marks can be used to explicitly represent that
540        the attribute value is empty, as:</p>
541    
542        <p><code class="html example">&lt;foo bar=""></code></p>
543    
544        <p>... or like:</p>
545    
546        <p><code class="html example">&lt;foo bar=''></code></p>
547      </d:desc>
548  </d:item>  </d:item>
549    
550  <d:item name="invalid character reference"  <d:item name="invalid character reference"
# Line 718  p { Line 760  p {
760  <section id="html5-parse-errors">  <section id="html5-parse-errors">
761  <h2>HTML5 Parse Errors in Tree Construction Stage</h2>  <h2>HTML5 Parse Errors in Tree Construction Stage</h2>
762    
763    <d:item name="after after frameset"
764        modules="HTML::Parser">
765      <d:message xml:lang="en">There is a start tag
766      <code>&lt;<var>{text}</var>></code> is after the <code>html</code> element
767      is closed.</d:message>
768      <d:message xml:lang="ja"><code>html</code> 要素が閉じられた後に開始タグ
769      <code>&lt;<var>{text}</var>></code> があります。</d:message>
770    </d:item>
771    
772    <d:item name="after after frameset:/"
773        modules="HTML::Parser">
774      <d:message xml:lang="en">There is an end tag
775      <code>&lt;/<var>{text}</var>></code> is after the <code>html</code> element
776      is closed.</d:message>
777      <d:message xml:lang="ja"><code>html</code> 要素が閉じられた後に終了タグ
778      <code>&lt;/<var>{text}</var>></code> があります。</d:message>
779    </d:item>
780    
781  <d:item name="after body"  <d:item name="after body"
782      modules="HTML::Parser">      modules="HTML::Parser">
783    <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 1410  p { Line 1470  p {
1470    
1471  <d:item name="element not allowed:meta charset"  <d:item name="element not allowed:meta charset"
1472      modules="ContentChecker::HTML">      modules="ContentChecker::HTML">
1473    <d:message xml:lang="en">The character encoding declaration must be the    <d:message xml:lang="en">The character encoding declaration is not the
1474    first element in the <code>head</code> element.</d:message>    first child element in the <code>head</code> element.</d:message>
1475      <d:message xml:lang="ja">文字符号化宣言が <code>head</code>
1476      要素の最初の子要素ではありません。</d:message>
1477      <d:desc xml:lang="en">
1478        <p>The character encoding declaration
1479        (<code class="html example">&lt;meta charset="<var>...</var>"></code> or
1480        <code class="html example">&lt;meta http-equiv=Content-Type content="text/html; charset=<var>...</var>"></code>
1481        must be the first child element in the <code>head</code> element.</p>
1482    
1483        <p>The character encoding declaration have to occur near the beginning
1484        of the document to ensure that Web browsers can be determine the
1485        character encoding of the document.</p>
1486    
1487        <p>The <code>title</code> element and other metadata elements must
1488        appear after any character encoding declaration is processed.</p>
1489      </d:desc>
1490  </d:item>  </d:item>
1491    
1492  <d:item name="element not allowed:metadata"  <d:item name="element not allowed:metadata"
# Line 1495  p { Line 1570  p {
1570  <d:item name="element not defined"  <d:item name="element not defined"
1571      modules="ContentChecker">      modules="ContentChecker">
1572    <d:message xml:lang="en">This element is not defined.</d:message>    <d:message xml:lang="en">This element is not defined.</d:message>
1573      <d:message xml:lang="ja">この要素は定義されていません。</d:message>
1574      <d:desc xml:lang="en">
1575        <p>The element is not one of elements allowed
1576        in the latest version of relevant specifications.</p>
1577    
1578        <p>The element cannot be used.</p>
1579    
1580        <dl class="switch">
1581        <dt><code>event-source</code> element</dt>
1582            <dd>The element was renamed as <em><code>eventsource</code>
1583            element</em> (no hyphen).</dd>
1584        <dt><code>m</code> element</dt>
1585            <dd>The element was renamed as <em><code>mark</code>
1586            element</em>.</dd>
1587        </dl>
1588      </d:desc>
1589  </d:item>  </d:item>
1590    
1591  <d:item name="no significant content"  <d:item name="no significant content"
# Line 1619  p { Line 1710  p {
1710  <d:item name="attribute not defined"  <d:item name="attribute not defined"
1711      modules="ContentChecker">      modules="ContentChecker">
1712    <d:message xml:lang="en">This attribute is not defined.</d:message>    <d:message xml:lang="en">This attribute is not defined.</d:message>
1713      <d:message xml:lang="ja">この属性は定義されていません。</d:message>
1714      <d:desc xml:lang="en">
1715        <p>The attribute is not one of attributes allowed for the element
1716        in the latest version of relevant specifications.</p>
1717    
1718        <p>The attribute cannot be used.</p>
1719    
1720        <dl class="switch">
1721        <dt><code>align</code> attribute (various HTML elements)</dt>
1722        <dt><code>border</code> attribute (various HTML elements)</dt>
1723          <dd>These attributes are no longer part of HTML.  You can use CSS
1724          properties to control the presentation of the element.</dd>
1725        <dt><code>autosubmit</code> attribute (<code>menu</code> element)</dt>
1726          <dd>The attribute was part of HTML5 draft but then dropped.
1727          Similar functionality can be implemented by scripts.</dd>
1728        <dt><code>language</code> attribute (<code>script</code> element)</dt>
1729          <dd>The attribute is no longer the standard way to specify the
1730          scripting language.  If you are using JavaScript, then no explicit
1731          specification of the scripting language is necessary, so you can
1732          write the element like:
1733            <p><code class="html example code">&lt;script><br/><!--
1734            --> /* JavaScript code */<br/><!--
1735            -->&lt;/script></code></p>
1736          If you are using different scripting language from JavaScript, or
1737          you want to declare the scripting language explicitly, you should
1738          use the <code>type</code> attribute, as follows:
1739            <dl class="switch">
1740            <dt>JavaScript</dt>
1741              <dd>Use
1742              <code class="html example">&lt;script type="text/javascript"></code>.</dd>
1743            <dt>VBScript</dt>
1744              <dd>Use
1745              <code class="html example">&lt;script type="text/vbscript"></code>.</dd>
1746            </dl>
1747          </dd>
1748        </dl>
1749      </d:desc>
1750  </d:item>  </d:item>
1751    
1752  <d:item name="in HTML:xml:lang"  <d:item name="in HTML:xml:lang"
     class="attribute-error"  
1753      modules="ContentChecker::XML">      modules="ContentChecker::XML">
1754    <d:message xml:lang="en">The <code>xml:lang</code> attribute is not    <d:message xml:lang="en">The <code>xml:lang</code> attribute in HTML
1755    allowed in HTML document.</d:message>    document is ignored.</d:message>
1756    <d:desc xml:lang="en">    <d:desc xml:lang="en">
1757      <p>The <code>xml:lang</code> attribute is not allowed in      <p>The <code>xml:lang</code> attribute does not have an effect in
1758      HTML document.  The document is non-conforming.</p>      HTML document.</p>
1759    
1760      <p>Use of the <code>xml:lang</code> attribute is conforming      <p>The <code>xml:lang</code> attribute is only applicable to XML
1761      <em>only</em> in XML documents.</p>      documents.  In HTML document, it is only allowed to ease migration
1762        from XML.</p>
1763    
1764      <p>To specify natural language information in HTML document,      <p>To specify natural language information in HTML document,
1765      use <code>lang</code> attribute instead.</p>      use <code>lang</code> attribute instead.</p>
# Line 1663  p { Line 1791  p {
1791    </d:desc>    </d:desc>
1792  </d:item>  </d:item>
1793    
 <d:item name="in XML:lang"  
     modules="ContentChecker::HTML">  
   <d:message xml:lang="en">The <code>lang</code> attribute is not  
   allowed in XML document.</d:message>  
   <d:desc>  
     <p>The HTML <code>lang</code> attribute is not allowed in  
     XML document.  The document is non-conforming.</p>  
   
     <p>The <code>lang</code> attribute in <code>null</code>  
     namespace for HTML elements is conforming <em>only</em> in  
     HTML documents.</p>  
   
     <p>To specify natural language information in XML document,  
     use <code>xml:lang</code> attribute instead.</p>  
   </d:desc>  
 </d:item>  
   
1794  <d:item name="in XML:noscript"  <d:item name="in XML:noscript"
1795      modules="ContentChecker::HTML">      modules="ContentChecker::HTML">
1796    <d:message xml:lang="en">A <code>noscript</code> element cannot be    <d:message xml:lang="en">A <code>noscript</code> element cannot be
1797    used in XML document.</d:message>    used in XML document.</d:message>
1798  </d:item>  </d:item>
1799    
1800    <d:item name="in XML:xml:lang"
1801        modules="ContentChecker::HTML">
1802      <d:message xml:lang="en">The <code>xml:lang</code> attribute in no namespace
1803      is only allowed in HTML document.</d:message>
1804      <d:message xml:lang="ja">名前空間に属さない <code>xml:lang</code>
1805      属性が認められているのは HTML 文書中だけです。</d:message>
1806    </d:item>
1807    
1808  <d:item name="in XML:xmlns"  <d:item name="in XML:xmlns"
1809      modules="ContentChecker::HTML">      modules="ContentChecker::HTML">
1810    <d:message xml:lang="en">The <code>xmlns</code> attribute    <d:message xml:lang="en">The <code>xmlns</code> attribute
# Line 1700  p { Line 1819  p {
1819    </d:desc>    </d:desc>
1820  </d:item>  </d:item>
1821    
1822    <d:item name="xml:lang not allowed"
1823        modules="ContentChecker::HTML">
1824      <d:message xml:lang="en">The <code>xml:lang</code> attribute is only allowed
1825      when the <code>lang</code> attribute is specified.</d:message>
1826      <d:message xml:lang="ja"><code>xml:lang</code> 属性を指定できるのは
1827      <code>lang</code> 属性が指定されている時だけです。</d:message>
1828    </d:item>
1829    
1830  </section>  </section>
1831    
1832  <section id="attribute-value-errors">  <section id="attribute-value-errors">
# Line 1906  p { Line 2033  p {
2033    
2034  <d:item name="dateortime:syntax error"  <d:item name="dateortime:syntax error"
2035      modules="ContentChecker::HTML">      modules="ContentChecker::HTML">
2036    <d:message xml:lang="en">The attribute value is not a date or    <d:message xml:lang="en">The value is not a date or time.</d:message>
   time.</d:message>  
2037  </d:item>  </d:item>
2038    
2039  <d:item name="enumerated:invalid"  <d:item name="enumerated:invalid"
# Line 1985  p { Line 2111  p {
2111    
2112  <d:item name="empty attribute value"  <d:item name="empty attribute value"
2113      modules="ContentChecker::HTML">      modules="ContentChecker::HTML">
2114    <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>
2115      <d:message xml:lang="ja">属性値が空です。</d:message>
2116    </d:item>
2117    
2118    <d:item name="empty style sheet title"
2119        modules="ContentChecker::HTML">
2120      <d:message xml:lang="en">The value of the <code>title</code> attribute
2121      is empty.</d:message>
2122      <d:message xml:lang="ja"><code>title</code> 属性の値が空です。</d:message>
2123      <d:desc xml:lang="en">
2124        <p>The <code>title</code> attribute value of the <code>link</code>
2125        element that defines an alternate style sheet is an empty value.</p>
2126    
2127        <p>A <code>link</code> element whose <code>rel</code> attribute
2128        is <code>alternate stylesheet</code> defines an alternate style sheet.
2129        An alternate style sheet must be associated with a name using the
2130        <code>title</code> attribute.  The name cannot be empty.</p>
2131      </d:desc>
2132  </d:item>  </d:item>
2133    
2134  <d:item name="float:out of range"  <d:item name="float:out of range"
# Line 2246  p { Line 2389  p {
2389    1.0 <code>NCName</code>.</d:message>    1.0 <code>NCName</code>.</d:message>
2390  </d:item>  </d:item>
2391    
2392    <d:item name="xml:lang ne lang"
2393        modules="ContentChecker::XML ContentChecker::HTML">
2394      <d:message xml:lang="en">The value of the <code>xml:lang</code> attribute
2395      is different from the value of the <code>lang</code> attribute.</d:message>
2396      <d:message xml:lang="ja"><code>xml:lang</code> 属性の値が <code>lang</code>
2397      属性の値と異なります。</d:message>
2398      <d:desc xml:lang="en">
2399        <p>The value of the <code>xml:lang</code> attribute (either the
2400        <code>lang</code> attribute in the <code>xml</code> (i.e.
2401        <code>http://www.w3.org/XML/1998/namespace</code>) namespace, or
2402        the <code>xml:lang</code> attribute in no namespace) for the element has
2403        different value than that of the <code>lang</code> attribute in no
2404        namespace.</p>
2405    
2406        <p>For historical reason, there are two attributes applicable to HTML
2407        elements to specify language information of an element: <code>lang</code>
2408        and <code>xml:lang</code>.  In HTML documents, only <code>lang</code>
2409        attribute in no namespace is allowed and take effect; the
2410        <code>xml:lang</code> attribute in no namespace is ignored in HTML
2411        documents.  In XHTML documents, both <code>lang</code> and
2412        <code>xml:lang</code> attributes are allowed.</p>
2413    
2414        <p>In general, <em>only the <code>lang</code> attribute</em> need to be
2415        specified for an element.</p>
2416    
2417        <p>If both <code>lang</code> and <code>xml:lang</code> attributes are
2418        specified on the same element, their values must be the same value.</p>
2419      </d:desc>
2420      <d:desc xml:lang="ja">
2421        <p><code>xml:lang</code> 属性 (<code>xml</code> (=
2422        <code>http://www.w3.org/XML/1998/namespace</code>) 名前空間の
2423        <code>lang</code> 属性や名前空間に属さない
2424        <code>xml:lang</code> 属性) の値が同じ要素の名前空間に属さない
2425        <code>lang</code> 属性の値と異なっています。</p>
2426    
2427        <p>歴史的な理由により、 HTML 要素の言語指定のための属性は
2428        <code>lang</code> と <code>xml:lang</code> の2つがあります。 HTML
2429        文書では名前空間に属さない <code>lang</code> 属性だけが認められており、
2430        かつ効力があります。名前空間に属さない
2431        <code>xml:lang</code> 属性は HTML 文書では無視されます。 XHTML 文書では
2432        <code>lang</code> 属性も <code>xml:lang</code> 属性も認められています。</p>
2433    
2434        <p>通常、要素の言語情報は <em><code>lang</code>
2435        属性だけ</em>を使って指定すれば十分です。</p>
2436    
2437        <p><code>lang</code> 属性と <code>xml:lang</code>
2438        属性の両方を同じ要素に指定する場合、
2439        両者の値は同じでなければなりません。</p>
2440      </d:desc>
2441    </d:item>
2442    
2443  </section>  </section>
2444    
2445  <section id="table-model-errors">  <section id="table-model-errors">
# Line 2362  p { Line 2556  p {
2556      modules="IMTChecker">      modules="IMTChecker">
2557    <d:message xml:lang="en">An obsolete Internet Media Type    <d:message xml:lang="en">An obsolete Internet Media Type
2558    <code><var>{value}</var></code> is used.</d:message>    <code><var>{value}</var></code> is used.</d:message>
2559    <d:item xml:lang="en">    <d:message xml:lang="ja">廃止されたインターネット媒体型
2560      <p>The specified Internet Media Type is registered with status    <code><var>{value}</var></code> が使われています。</d:message>
2561      of <i>OBSOLETE</i>.</p>    <d:desc xml:lang="en">
2562        <p>The specified Internet Media Type is registered with its intended
2563        usage as <i>OBSOLETE</i>.</p>
2564            
2565      <dl class="swtich">      <dl class="swtich">
2566      <dt>Media type <code>text/ecmascript</code></dt>      <dt>Media type <code>text/ecmascript</code></dt>
2567        <dd>Media type <code>text/ecmascript</code> is obsoleted in        <dd>Media type <code>text/ecmascript</code> is obsoleted in
2568        favor of <code>application/ecmascript</code>.  Note that        favor of <code>application/ecmascript</code>.  Note that
2569        <code>text/javascript</code> would be better alternative        <em><code>text/javascript</code></em> would be the better alternative
2570        for many cases.</dd>        in many cases.</dd>
2571      <dt>Media type <code>text/javascript</code></dt>      <dt>Media type <code>text/javascript</code></dt>
2572        <dd>Media type <code>text/javascript</code> is obsoleted by        <dd>Media type <code>text/javascript</code> is obsoleted by
2573        <abbr>IETF</abbr> with backward incompatible alternate        <abbr>IETF</abbr> with backward incompatible alternate
2574        <code>application/javascript</code> for architectural        <code>application/javascript</code> for architectural
2575        purity.<!-- @@ ref? -->  Realist may ignore this warning.</dd>        purity.<!-- @@ ref? -->  Those who prefer reality to academic
2576          purity <em>may ignore</em> this warning.</dd>
2577      </dl>      </dl>
2578    </d:item>    </d:desc>
2579  </d:item>  </d:item>
2580    
2581  <d:item name="IMT:parameter missing"  <d:item name="IMT:parameter missing"
# Line 3679  p { Line 3876  p {
3876    <d:text xml:lang="ja">位置不明</d:text>    <d:text xml:lang="ja">位置不明</d:text>
3877  </d:cat>  </d:cat>
3878    
3879  <d:cat name="(Unknown)">  <d:cat name="(unknown)">
3880    <d:text xml:lang="en">(Unknown)</d:text>    <d:text xml:lang="en">(Unknown)</d:text>
3881    <d:text xml:lang="ja">(不明)</d:text>    <d:text xml:lang="ja">(不明)</d:text>
3882  </d:cat>  </d:cat>

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.42

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24