„Dokumentumtípus-definíció” változatai közötti eltérés

[nem ellenőrzött változat][nem ellenőrzött változat]
Tartalom törölve Tartalom hozzáadva
Tiplity (vitalap | szerkesztései)
Nincs szerkesztési összefoglaló
Tiplity (vitalap | szerkesztései)
136. sor:
==== Attribútumok lehetséges típusai ====
 
; <tt>CDATA</tt>: ''karakteresKarakteres adatot'' tartalmatótartalmazó típus, benne bármilyen szöveges tartalom lehet. Az elemzőprogram ezt az adattípust nem dolgozza fel, változatlanul átengedi.;
; <tt>ID</tt>: Egyedi azonosító, amely az aktuális elemre mutató horgonyt definiál.
; <tt>ID</tt>: the effective value of the attribute must be a valid identifier, and it is used to define and anchor to the current element the target of references using this defined identifier (including as document fragment identifiers that may be specified at end of an URI after a "#" sign); it is an error if distinct elements in the same document are defining the same identifier; the uniqueness constraint also implies that the identifier itself carries no other semantics and that identifiers must be treated as opaque in applications; note that XML also predefines the standard pseudo-attribute "<tt>xml:id</tt>" with this type, without needing any declaration in the DTD, so the uniqueness constraint also applies to these defined identifiers when they are specified anywhere in a XML document.
; <tt>IDREF</tt> vagy <tt>IDREFS</tt>: Referencia egy ID-re, amelynek deklarációja a DTD-ben máshol szerepel. Attribútum állhat egyetlen <tt>ID</tt>-ből, vagy több <tt>ID</tt> szóközökkel elválasztott listájából - ezt a választást jelöljük a kulcsszó kétféle alakjával.
; <tt>IDREF</tt> or <tt>IDREFS</tt>: the effective value of the attribute can only be a valid identifier (or a space-separated list of such identifiers) and must be referencing the unique element defined in the document with an attribute declared with the type <tt>ID</tt> in the DTD (or the unique element defined in an XML document with a pseudo-attribute "<tt>xml:id</tt>") and whose effective value is the same identifier;
; <tt>NMTOKEN</tt> vagy <tt>NMTOKENS</tt>: Az attribútum értéke szó vagy lexikális elem (ún. token). Lehet egyelemű, vagy szóközökkel elválasztott lista, mint az előbb.
; <tt>NMTOKEN</tt> or <tt>NMTOKENS</tt>: the effective value of the attribute can only be a valid name token (or a spaced-separated list of such name tokens), but it is not restricted to be a unique identifier within the document; this name may carry supplementary and application-dependent semantics and may require additional naming constraints, but this is out of scope of the DTD;
; <tt>ENTITY</tt> orvagy <tt>ENTITIES</tt>: theAz effectiveattribútum valueértéke ofegy theentitás attributeneve, canamelyet onlya beDTD theegy namemás ofpontján andeklaráltunk. unparsedA externalHTML-elemzők entity (orezt a space-separatedtípust listnem of such names)támogatják, which must also be declared in the document type declaration; this type is not supported in HTML parsers, but is valid inviszont SGML-ben andés XML 1.0-ban orvagy 1.1-ben (includingígy XHTML and-ben, SVG-ben); érvényes.
; <tt>NOTATION</tt>: Értéke egy - a DTD-n belül másutt definiált - notation típusú adat.
; <tt>(''value1''|...)</tt>: the effective value of the attribute can only be one of the enumerated list (specified between parentheses and separated by a "<tt>|</tt>" pipe character) of textual values, where each value in the enumeration is possibly specified between <tt>'</tt>single<tt>'</tt> or <tt>"</tt>double<tt>"</tt> quotation marks if it's not a simple name token;
; Felsorolás: Lehetséges értékek listája (zárójelet között, csővonal karakterrel elválasztva). A konkrét érték a a lista valamelyik eleme.
; <tt>NOTATION (''notation1''|...)</tt>: the effective value of the attribute can only be any one of the enumerated list (specified between parentheses and separated by a "<tt>|</tt>" pipe character) of notation names, where each notation name in the enumeration must also be declared in the document type declaration; this type is not supported in HTML parsers, but is valid in SGML and XML 1.0 or 1.1 (including XHTML and SVG).
 
==== Attribútumok lehetséges alapértelmezett értékei ====