<content>
<content> (dichiarazione dello schema) contiene il testo di una dichiarazione dello schema utilizzato [22.5 Element Specifications] | |||||||||
Modulo | tagdocs — Documentation Elements | ||||||||
Attributi | att.global (@xml:id, @n, @xml:lang, @xml:base, @xml:space) (att.global.rendition (@rend, @style, @rendition)) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change)) (att.global.responsibility (@cert, @resp)) (att.global.source (@source))
| ||||||||
Contenuto in | tagdocs: dataSpec elementSpec macroSpec moduleRef | ||||||||
Può contenere | |||||||||
Nota | As the example shows, content models may be expressed using the RELAX NG syntax directly. To avoid ambiguity when schemas using elements from different namespaces are created, the name supplied for an element in a content model will be automatically prefixed by a short string, as specified by the prefix attribute on schemaSpec. The autoPrefix attribute may be used to reverse this behaviour. The macro macro.schemaPattern defines which elements may be used to define content models. Alternatively, a content model may be expressed using the TEI valList element. | ||||||||
Esempio | This content element indicates that the element being specified has no content: | ||||||||
Esempio | This content element defines a content model allowing either a sequence of paragraphs or a series of msItem elements optionally preceded by a summary: <content> <alternate> <classRef key="model.pLike" maxOccurs="unbounded"/> <sequence> <elementRef key="summary" minOccurs="0" maxOccurs="1"/> <elementRef key="msItem" maxOccurs="unbounded"/> </sequence> </alternate> </content> | ||||||||
Esempio | This content model defines a content model allowing either a sequence of paragraphs or a series of msItem elements optionally preceded by a summary: <content> <rng:choice> <rng:oneOrMore> <rng:ref name="model.pLike"/> </rng:oneOrMore> <rng:group> <rng:optional> <rng:ref name="summary"/> </rng:optional> <rng:oneOrMore> <rng:ref name="msItem"/> </rng:oneOrMore> </rng:group> </rng:choice> </content> | ||||||||
Content model | <content> | ||||||||
Dichiarazione | <rng:element name="content"> element content { att.global.attributes, att.global.rendition.attributes, att.global.linking.attributes, att.global.analytic.attributes, att.global.facs.attributes, att.global.change.attributes, att.global.responsibility.attributes, att.global.source.attributes, attribute autoPrefix { "true" | "false" }?, ( model.contentPart* | anyElement-content+ ) } |