<root> (root node) represents the root node of a tree. 19.2 Trees |
組件 | nets — 19 Graphs, Networks, and Trees |
屬性 | att.global (@xml:id, @n, @xml:lang, @rend, @rendition, @xml:base, @xml:space) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change))
value | provides the value of the root, which is a feature structure or
other analytic element.狀態 | 非必備的 |
資料類型 | |
值 | A valid identifier of a feature structure or other analytic
element. |
|
children | provides a list of identifiers of the elements which are the children of
the root node.狀態 | 必備的 |
資料類型 | 1–∞ 次可出現: 以空白鍵隔開 |
值 | A list of valid identifiers. |
|
ord | (ordered) indicates whether or not the root is ordered. |
outDegree | gives the out degree of the root, the number of its children.狀態 | 非必備的 |
資料類型 | |
值 | A nonnegative integer. |
|
|
屬於 | |
可包含在於 | |
可包含 | |
宣告 | <rng:element name="root"> <rng:ref name="att.global.attributes"/> <rng:ref name="att.global.linking.attributes"/> <rng:ref name="att.global.analytic.attributes"/> <rng:ref name="att.global.facs.attributes"/> <rng:ref name="att.global.change.attributes"/> <rng:optional> <rng:attribute name="value"> <rng:ref name="data.pointer"/> </rng:attribute> </rng:optional> <rng:attribute name="children"> <rng:list> <rng:ref name="data.pointer"/> <rng:zeroOrMore> <rng:ref name="data.pointer"/> </rng:zeroOrMore> </rng:list> </rng:attribute> <rng:optional> <rng:attribute name="ord"> <rng:ref name="data.xTruthValue"/> </rng:attribute> </rng:optional> <rng:optional> <rng:attribute name="outDegree"> <rng:ref name="data.count"/> </rng:attribute> </rng:optional> <rng:optional> <rng:ref name="label"/> </rng:optional> </rng:element>
element root
{
att.global.attributes,
att.global.linking.attributes,
att.global.analytic.attributes,
att.global.facs.attributes,
att.global.change.attributes,
attribute value { data.pointer }?,
attribute children { list { data.pointer, data.pointer* } },
attribute ord { data.xTruthValue }?,
attribute outDegree { data.count }?,
label?
} |
例子 |
<root xml:id="vp1" children="#vb1 #pn1" outDegree="2"> <label>VP </label></root><leaf xml:id="vb1"/><leaf xml:id="pn1"/>
|