<param>
<param> provides a parameter for a model behaviour by supplying its name and an XPath expression identifying the location of its content. [22.5.5.5 Behaviours and their parameters] | |||||||||||||||
Module | tagdocs — Documentation Elements | ||||||||||||||
Attributs | 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))
| ||||||||||||||
Contenu dans | tagdocs: model | ||||||||||||||
Peut contenir | Elément vide | ||||||||||||||
Exemple | In this example, which will be processed for a choice element which has both sic and corr child elements, the default parameter will provide the value of the child corr element, and the alternate parameter will provide that of the child sic elements. If neither param element was supplied, both elements would still be available to an application, but the application would need to distinguish them for itself. <elementSpec ident="choice"> <model predicate="sic and corr" behaviour="alternate"> <param name="default" value="corr"/> <param name="alternate" value="sic"/> </model> </elementSpec> | ||||||||||||||
Exemple | <elementSpec ident="graphic" mode="change"> <model behaviour="graphic"> <param name="url" value="@url"/> <param name="width" value="@width"/> <param name="width" value="@height"/> </model> </elementSpec> | ||||||||||||||
Modèle de contenu | <content/> | ||||||||||||||
Schéma Declaration | <rng:element name="param"> element param { 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 name { "alternate" | "default" | "height" | "id" | "label" | "level" | "link" | "place" | "type" | "url" | "width" | teidata.xpath }, attribute value { teidata.xpath }, empty } |