/[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.41 by wakaba, Sat Aug 30 16:10:07 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 1619  p { Line 1661  p {
1661  <d:item name="attribute not defined"  <d:item name="attribute not defined"
1662      modules="ContentChecker">      modules="ContentChecker">
1663    <d:message xml:lang="en">This attribute is not defined.</d:message>    <d:message xml:lang="en">This attribute is not defined.</d:message>
1664      <d:desc xml:lang="en">
1665        <p>The attribute is not one of attributes allowed for the element
1666        in the latest version of relevant specifications.</p>
1667    
1668        <p>The attribute cannot be used.</p>
1669    
1670        <dl>
1671        <dt><code>autosubmit</code> attribute (<code>menu</code> element)</dt>
1672          <dd>The attribute was part of HTML5 draft but then dropped.
1673          Similar functionality can be implemented by scripts.</dd>
1674        </dl>
1675      </d:desc>
1676  </d:item>  </d:item>
1677    
1678  <d:item name="in HTML:xml:lang"  <d:item name="in HTML:xml:lang"
     class="attribute-error"  
1679      modules="ContentChecker::XML">      modules="ContentChecker::XML">
1680    <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
1681    allowed in HTML document.</d:message>    document is ignored.</d:message>
1682    <d:desc xml:lang="en">    <d:desc xml:lang="en">
1683      <p>The <code>xml:lang</code> attribute is not allowed in      <p>The <code>xml:lang</code> attribute does not have an effect in
1684      HTML document.  The document is non-conforming.</p>      HTML document.</p>
1685    
1686      <p>Use of the <code>xml:lang</code> attribute is conforming      <p>The <code>xml:lang</code> attribute is only applicable to XML
1687      <em>only</em> in XML documents.</p>      documents.  In HTML document, it is only allowed to ease migration
1688        from XML.</p>
1689    
1690      <p>To specify natural language information in HTML document,      <p>To specify natural language information in HTML document,
1691      use <code>lang</code> attribute instead.</p>      use <code>lang</code> attribute instead.</p>
# Line 1663  p { Line 1717  p {
1717    </d:desc>    </d:desc>
1718  </d:item>  </d:item>
1719    
 <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>  
   
1720  <d:item name="in XML:noscript"  <d:item name="in XML:noscript"
1721      modules="ContentChecker::HTML">      modules="ContentChecker::HTML">
1722    <d:message xml:lang="en">A <code>noscript</code> element cannot be    <d:message xml:lang="en">A <code>noscript</code> element cannot be
1723    used in XML document.</d:message>    used in XML document.</d:message>
1724  </d:item>  </d:item>
1725    
1726    <d:item name="in XML:xml:lang"
1727        modules="ContentChecker::HTML">
1728      <d:message xml:lang="en">The <code>xml:lang</code> attribute in no namespace
1729      is only allowed in HTML document.</d:message>
1730      <d:message xml:lang="ja">名前空間に属さない <code>xml:lang</code>
1731      属性が認められているのは HTML 文書中だけです。</d:message>
1732    </d:item>
1733    
1734  <d:item name="in XML:xmlns"  <d:item name="in XML:xmlns"
1735      modules="ContentChecker::HTML">      modules="ContentChecker::HTML">
1736    <d:message xml:lang="en">The <code>xmlns</code> attribute    <d:message xml:lang="en">The <code>xmlns</code> attribute
# Line 1700  p { Line 1745  p {
1745    </d:desc>    </d:desc>
1746  </d:item>  </d:item>
1747    
1748    <d:item name="xml:lang not allowed"
1749        modules="ContentChecker::HTML">
1750      <d:message xml:lang="en">The <code>xml:lang</code> attribute is only allowed
1751      when the <code>lang</code> attribute is specified.</d:message>
1752      <d:message xml:lang="ja"><code>xml:lang</code> 属性を指定できるのは
1753      <code>lang</code> 属性が指定されている時だけです。</d:message>
1754    </d:item>
1755    
1756  </section>  </section>
1757    
1758  <section id="attribute-value-errors">  <section id="attribute-value-errors">
# Line 1906  p { Line 1959  p {
1959    
1960  <d:item name="dateortime:syntax error"  <d:item name="dateortime:syntax error"
1961      modules="ContentChecker::HTML">      modules="ContentChecker::HTML">
1962    <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>  
1963  </d:item>  </d:item>
1964    
1965  <d:item name="enumerated:invalid"  <d:item name="enumerated:invalid"
# Line 2246  p { Line 2298  p {
2298    1.0 <code>NCName</code>.</d:message>    1.0 <code>NCName</code>.</d:message>
2299  </d:item>  </d:item>
2300    
2301    <d:item name="xml:lang ne lang"
2302        modules="ContentChecker::XML ContentChecker::HTML">
2303      <d:message xml:lang="en">The value of the <code>xml:lang</code> attribute
2304      is different from the value of the <code>lang</code> attribute.</d:message>
2305      <d:message xml:lang="ja"><code>xml:lang</code> 属性の値が <code>lang</code>
2306      属性の値と異なります。</d:message>
2307      <d:desc xml:lang="en">
2308        <p>The value of the <code>xml:lang</code> attribute (either the
2309        <code>lang</code> attribute in the <code>xml</code> (i.e.
2310        <code>http://www.w3.org/XML/1998/namespace</code>) namespace, or
2311        the <code>xml:lang</code> attribute in no namespace) for the element has
2312        different value than that of the <code>lang</code> attribute in no
2313        namespace.</p>
2314    
2315        <p>For historical reason, there are two attributes applicable to HTML
2316        elements to specify language information of an element: <code>lang</code>
2317        and <code>xml:lang</code>.  In HTML documents, only <code>lang</code>
2318        attribute in no namespace is allowed and take effect; the
2319        <code>xml:lang</code> attribute in no namespace is ignored in HTML
2320        documents.  In XHTML documents, both <code>lang</code> and
2321        <code>xml:lang</code> attributes are allowed.</p>
2322    
2323        <p>In general, <em>only the <code>lang</code> attribute</em> need to be
2324        specified for an element.</p>
2325    
2326        <p>If both <code>lang</code> and <code>xml:lang</code> attributes are
2327        specified on the same element, their values must be the same value.</p>
2328      </d:desc>
2329      <d:desc xml:lang="ja">
2330        <p><code>xml:lang</code> 属性 (<code>xml</code> (=
2331        <code>http://www.w3.org/XML/1998/namespace</code>) 名前空間の
2332        <code>lang</code> 属性や名前空間に属さない
2333        <code>xml:lang</code> 属性) の値が同じ要素の名前空間に属さない
2334        <code>lang</code> 属性の値と異なっています。</p>
2335    
2336        <p>歴史的な理由により、 HTML 要素の言語指定のための属性は
2337        <code>lang</code> と <code>xml:lang</code> の2つがあります。 HTML
2338        文書では名前空間に属さない <code>lang</code> 属性だけが認められており、
2339        かつ効力があります。名前空間に属さない
2340        <code>xml:lang</code> 属性は HTML 文書では無視されます。 XHTML 文書では
2341        <code>lang</code> 属性も <code>xml:lang</code> 属性も認められています。</p>
2342    
2343        <p>通常、要素の言語情報は <em><code>lang</code>
2344        属性だけ</em>を使って指定すれば十分です。</p>
2345    
2346        <p><code>lang</code> 属性と <code>xml:lang</code>
2347        属性の両方を同じ要素に指定する場合、
2348        両者の値は同じでなければなりません。</p>
2349      </d:desc>
2350    </d:item>
2351    
2352  </section>  </section>
2353    
2354  <section id="table-model-errors">  <section id="table-model-errors">

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24