<classes>

<classes> 標明所記錄的元素或元素集所屬或是附屬的所有元素集。 22.4.4 Element Specifications 22.4.6 Element Classes
組件tagdocs — 22 Documentation Elements
屬性
modespecifies the effect of this declaration on its parent module.
狀態 非必備的
合法的值是:
change
this declaration changes the declaration of the same name in the current definition
replace
this declaration replaces the declaration of the same name in the current definition [預設值]
屬於
可包含
tagdocs: memberOf
宣告

<rng:element name="classes">
<rng:ref name="att.global.attributes"/>
<rng:optional>
 <rng:attribute name="modea:defaultValue="replace">
  <rng:choice>
   <rng:value>change</rng:value>
   <rng:value>replace</rng:value>
  </rng:choice>
 </rng:attribute>
</rng:optional>
<rng:choice>
 <rng:zeroOrMore>
  <rng:ref name="memberOf"/>
 </rng:zeroOrMore>
</rng:choice>
</rng:element>
element classes
{
   att.global.attributes,
   attribute mode { "change" | "replace" }?,
   ( memberOf* )
}
例子
<classes>
 <memberOf key="model.qLike"/>
 <memberOf key="att.declarable"/>
</classes>

This classes element indicates that the element documented (which may be an element or a class) is a member of two distinct classes: model.qLike and att.declarable.