<content>
<content> (模型宣告) 包含所記錄之模型的宣告文字。 [22.5 Element Specifications] | |||||||||
組件 | tagdocs — Documentation Elements | ||||||||
屬性 | 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))
| ||||||||
可包含在於 | tagdocs: dataSpec elementSpec macroSpec moduleRef | ||||||||
可包含 | |||||||||
註 | 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. Alternatively, a content model may be expressed using the TEI valList element. | ||||||||
例子 | <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> | ||||||||
Schematron | Use a child <empty> element to indicate that the element being specified is not allowed to have content. <sch:assert test="*">The use of the <content> element without any child elements is deprecated, and will be considered invalid after 2019-08-25. Use a child <empty> element to indicate that the element being specified is not allowed to have content.</sch:assert> | ||||||||
Content model | <content> | ||||||||
宣告 | <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+ ) } |