/[suikacvs]/markup/html/html5/spec-ja/data/syntax.dat
Suika

Diff of /markup/html/html5/spec-ja/data/syntax.dat

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

revision 1.57 by apache, Fri Oct 24 16:07:09 2008 UTC revision 1.76 by apache, Fri Oct 24 17:01:23 2008 UTC
# Line 411  The contents of the element must be plac Line 411  The contents of the element must be plac
411    tag).    tag).
412  #ja  #ja
413  <a href=#void-elements>空隙要素</a>は内容を持つことができません  <a href=#void-elements>空隙要素</a>は内容を持つことができません
 (終了タグがないので、内容を開始タグと終了タグの間に置くことができません)。  
414    (終了タグがないので、内容を開始タグと終了タグの間に置くことができません)。
415    
416    #en
417    CDATA elements can have <a href=#syntax-text title=syntax-text>text</a>,
418      though it has <a href=#cdata-rcdata-restrictions>restrictions</a>
419      described below.
420    #ja
421    CDATA 要素は<a href=#syntax-text title=syntax-text>テキスト</a>を持つことができますが、
422    後述の<a href=#cdata-rcdata-restrictions>制約</a>があります。
423    
424    #en
425    RCDATA elements can have <a href=#syntax-text title=syntax-text>text</a>
426      and <a href=#syntax-charref title=syntax-charref>character references</a>, but
427      the text must not contain an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>.
428      There are also <a href=#cdata-rcdata-restrictions>further
429      restrictions</a> described below.
430    #ja
431    RCDATA 要素は<a href=#syntax-text title=syntax-text>テキスト</a>と<a href=#syntax-charref title=syntax-charref>文字参照</a>を持つことができますが、
432    テキストは<a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>曖昧アンド記号</a>を含んでは[[MUST NOT:なりません]]。
433    後述の<a href=#cdata-rcdata-restrictions>追加制約</a>もあります。
434    
435    #en
436    Foreign elements whose start tag is marked as self-closing can't
437      have any contents (since, again, as there's no end tag, no content
438      can be put between the start tag and the end tag). Foreign elements
439      whose start tag is <em>not</em> marked as self-closing can have
440      <a href=#syntax-text title=syntax-text>text</a>, <a href=#syntax-charref title=syntax-charref>character references</a>, <a href=#syntax-cdata title=syntax-cdata>CDATA sections</a>, other <a href=#syntax-elements title=syntax-elements>elements</a>, and <a href=#syntax-comments title=syntax-comments>comments</a>, but the text must not
441      contain the character U+003C LESS-THAN SIGN (<code>&lt;</code>) or
442      an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous
443      ampersand</a>.
444    #ja
445    開始タグが自己閉塞と印付けされた外来要素は内容を持つことができません
446    (やはり、終了タグがないため、内容を開始タグと終了タグの間に置くことができないからです)。
447    開始タグが自己閉塞と印付けされて<em>いない</em>外来要素は<a href=#syntax-text title=syntax-text>テキスト</a>、
448    <a href=#syntax-charref title=syntax-charref>文字参照</a>、
449    <a href=#syntax-cdata title=syntax-cdata>CDATA 区間</a>、
450    他の<a href=#syntax-elements title=syntax-elements>要素</a>、
451    <a href=#syntax-comments title=syntax-comments>注釈</a>を持つことができますが、
452    テキストは文字 U+003C LESS-THAN SIGN (<code>&lt;</code>)
453    や<a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>曖昧アンド記号</a>を含んでは[[MUST NOT:なりません]]。
454    
455    #en
456    Normal elements can have <a href=#syntax-text title=syntax-text>text</a>,
457      <a href=#syntax-charref title=syntax-charref>character references</a>, other
458      <a href=#syntax-elements title=syntax-elements>elements</a>, and <a href=#syntax-comments title=syntax-comments>comments</a>, but the text must not
459      contain the character U+003C LESS-THAN SIGN (<code>&lt;</code>) or
460      an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous
461      ampersand</a>. Some normal elements also have <a href=#element-restrictions>yet more restrictions</a> on what
462      content they are allowed to hold, beyond the restrictions imposed by
463      the content model and those described in this paragraph. Those
464      restrictions are described below.
465    #ja
466    通常要素は<a href=#syntax-text title=syntax-text>テキスト</a>、
467    <a href=#syntax-charref title=syntax-charref>文字参照</a>、
468    他の<a href=#syntax-elements title=syntax-elements>要素</a>、
469    <a href=#syntax-comments title=syntax-comments>注釈</a>を持つことができますが、
470    テキストは文字 U+003C LESS-THAN SIGN (<code>&lt;</code>)
471    や<a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>曖昧アンド記号</a>を含んでは[[MUST NOT:なりません]]。
472    いくつかの通常要素は、保持することが認められる内容に関して、
473    内容モデルにより課される制約やこの段落で説明した制約に加え、
474    <a href=#element-restrictions>更に追加の制約</a>をも有します。
475    その制約については後述します。
476    
477    #en
478    Tags contain a <dfn id=syntax-tag-name title=syntax-tag-name>tag name</dfn>,
479      giving the element's name. HTML elements all have names that only
480      use characters in the range U+0030 DIGIT ZERO ..  U+0039 DIGIT NINE,
481      U+0061 LATIN SMALL LETTER A .. U+007A LATIN SMALL LETTER Z, U+0041
482      LATIN CAPITAL LETTER A .. U+005A LATIN CAPITAL LETTER Z, and U+002D
483      HYPHEN-MINUS (<code>-</code>). In the HTML syntax, tag names may be
484      written with any mix of lower- and uppercase letters that, when
485      converted to all-lowercase, matches the element's tag name; tag
486      names are case-insensitive.
487    #ja
488    タグは<dfn id=syntax-tag-name title=syntax-tag-name>タグ名</dfn>を持ち、
489    これが要素の名前を与えます。
490    HTML 要素はすべて、範囲 U+0030 DIGIT ZERO ~ U+0039 DIGIT NINE、
491    U+0061 LATIN SMALL LETTER A ~ U+007A LATIN SMALL LETTER Z、U+0041
492      LATIN CAPITAL LETTER A ~ U+005A LATIN CAPITAL LETTER Z、 U+002D
493      HYPHEN-MINUS (<code>-</code>) の文字のみを使った名前を持ちます。
494    HTML 構文では、タグ名はすべて小文字に変換した時に要素のタグ名に一致するような任意の小文字と大文字の組み合わせで書いて[[MAY:構いません]]。
495    つまり、タグ名は大文字・小文字を区別しません。
496    
497    
498    #pattern
499    <span class=secno>* </span>Start tags
500    #ja
501    <span class=secno>$1 </span>開始タグ
502    
503    #en
504    <dfn id=syntax-start-tags title=syntax-start-tags>Start tags</dfn> must have the
505      following format:
506    #ja
507    <dfn id=syntax-start-tags title=syntax-start-tags>開始タグ</dfn>は次の書式でなければ[[MUST:なりません]]。
508    
509    #en
510    The first character of a start tag must be a U+003C LESS-THAN
511       SIGN (<code>&lt;</code>).
512    #ja
513    開始タグの最初の文字は U+003C LESS-THAN
514       SIGN (<code>&lt;</code>) でなければ[[MUST:なりません]]。
515    
516    #en
517    The next few characters of a start tag must be the element's
518       <a href=#syntax-tag-name title=syntax-tag-name>tag name</a>.
519    #ja
520    開始タグの次の数文字は要素の<a href=#syntax-tag-name title=syntax-tag-name>タグ名</a>でなければ[[MUST:なりません]]。
521    
522    #en
523    If there are to be any attributes in the next step, there must
524       first be one or more <a href=#space-character title="space character">space
525       characters</a>.
526    #ja
527    次の段階で属性が存在する場合には、まず1文字以上の<a href=#space-character title="space character">間隔文字</a>がなければ[[MUST:なりません]]。
528    
529    #en
530    Then, the start tag may have a number of attributes, the <a href=#syntax-attributes title=syntax-attributes>syntax for which</a> is described
531       below. Attributes may be separated from each other by one or more
532       <a href=#space-character title="space character">space characters</a>.
533    #ja
534    その後、開始タグは後述の<a href=#syntax-attributes title=syntax-attributes>構文</a>に沿った数々の属性を持って[[MAY:構いません]]。
535    属性は1つ以上の<a href=#space-character title="space character">間隔文字</a>で互いに分離して[[MAY:構いません]]。
536    
537    #en
538    After the attributes, there may be one or more <a href=#space-character title="space character">space characters</a>. (Some attributes
539       are required to be followed by a space. See the <a href=#syntax-attributes title=syntax-attributes>attributes section</a> below.)
540    #ja
541    属性の後に、1文字以上の<a href=#space-character title="space character">間隔文字</a>があって[[MAY:構いません]]。
542    (いくつかの属性の後には間隔が[[REQUIRED:必須]]です。後述の<a href=#syntax-attributes title=syntax-attributes>属性の節</a>をご覧ください。)
543    
544    #en
545    Then, if the element is one of the <a href=#void-elements>void elements</a>,
546       or if the element is a foreign element, then there may be a single
547       U+002F SOLIDUS (<code>/</code>) character. This character has no
548       effect on void elements, but on foreign elements it marks the start
549       tag as self-closing.
550    #ja
551    要素が<a href=#void-elements>空隙要素</a>の1つである場合や、
552    要素が外来要素である場合、 U+002F SOLIDUS (<code>/</code>) 文字が1つあっても[[MAY:構いません]]。
553    この文字は空隙要素にあっては何の効果もありませんが、
554    外来要素にあっては開始タグを自己閉塞と印付けします。
555    
556    #en
557    Finally, start tags must be closed by a U+003E GREATER-THAN
558       SIGN (<code>&gt;</code>) character.
559    #ja
560    最後に、開始タグは U+003E GREATER-THAN
561       SIGN (<code>&gt;</code>) もjいで閉じなければ[[MUST:なりません]]。
562    
563    #pattern
564    <span class=secno>* </span>End tags
565    #ja
566    <span class=secno>$1 </span>終了タグ
567    
568    #en
569    <dfn id=syntax-end-tags title=syntax-end-tags>End tags</dfn> must have the
570      following format:
571    #ja
572    <dfn id=syntax-end-tags title=syntax-end-tags>終了タグ</dfn>は次の書式でなければ[[MUST:なりません]]。
573    
574    #en
575    The first character of an end tag must be a U+003C LESS-THAN
576       SIGN (<code>&lt;</code>).
577    #ja
578    終了タグの最初の文字は U+003C LESS-THAN
579       SIGN (<code>&lt;</code>) でなければ[[MUST:なりません]]。
580    
581    #en
582    The second character of an end tag must be a U+002F SOLIDUS
583       (<code>/</code>).
584    #ja
585    終了タグの2番目の文字は U+002F SOLIDUS
586       (<code>/</code>) でなければ[[MUST:なりません]]。
587    
588    #en
589    The next few characters of an end tag must be the element's
590       <a href=#syntax-tag-name title=syntax-tag-name>tag name</a>.
591    #ja
592    終了タグの次の数文字は要素の<a href=#syntax-tag-name title=syntax-tag-name>タグ名</a>でなければ[[MUST:なりません]]。

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.76

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24