<relation>

<relation> (人際關係) 描述在特定團體中,參與者彼此之間的關係或關聯。 15.2.2 The Participant Description
組件namesdates — 13 Names, Dates, People, and Places
屬性 att.datable (att.datable.w3c (@period, @when, @notBefore, @notAfter, @from, @to)) (att.datable.iso (@when-iso, @notBefore-iso, @notAfter-iso, @from-iso, @to-iso)) att.editLike (@cert, @resp, @evidence, @source) (att.dimensions (@unit, @quantity, @extent, @atLeast, @atMost, @min, @max, @precision, @scope)) att.naming (@nymRef) (att.canonical (@key, @ref))
type將人際關係分類,例如社交、私交、或其他等。
狀態 非必備的
資料類型

<rng:ref name="data.enumerated"/>
data.enumerated
被推薦的值包含:
social
社交生活上的關係
personal
私人生活上的關係,例如親屬、婚姻關係等 [預設值]
other
其他關係
name提供該關係的確切名稱。
狀態 必備的
資料類型

<rng:ref name="data.enumerated"/>
data.enumerated
an open list of application-dependent keywords
activeidentifies the ‘active’ participants in a non-mutual relationship, or all the participants in a mutual one.
狀態 非必備的
資料類型 1–∞ occurrences of

<rng:ref name="data.pointer"/>
data.pointer
以空白鍵隔開
a list of identifier values for participant or participant groups
mutualsupplies a list of participants amongst all of whom the relationship holds equally.
狀態 可應用時必備的
資料類型 1–∞ occurrences of

<rng:ref name="data.pointer"/>
data.pointer
以空白鍵隔開
a list of identifier values for participant or participant groups
passive指出非對等關係中的‘被動’關係人。
狀態 非必備的
資料類型 1–∞ occurrences of

<rng:ref name="data.pointer"/>
data.pointer
以空白鍵隔開
a list of identifier values for participant or participant groups
屬於
可包含
core: desc
宣告

<rng:element name="relation">
<rng:ref name="att.global.attributes"/>
<rng:ref name="att.datable.w3c.attributes"/>
<rng:ref name="att.datable.iso.attributes"/>
<rng:ref name="att.editLike.attributes"/>
<rng:ref name="att.dimensions.attributes"/>
<rng:ref name="att.naming.attributes"/>
<rng:ref name="att.canonical.attributes"/>
<rng:optional>
 <rng:attribute name="typea:defaultValue="personal">
  <rng:choice>
   <rng:value>social</rng:value>
   <rng:value>personal</rng:value>
   <rng:value>other</rng:value>
   <rng:data type="Name"/>
  </rng:choice>
 </rng:attribute>
</rng:optional>
<rng:attribute name="name">
 <rng:ref name="data.enumerated"/>
</rng:attribute>
<rng:choice>
 <rng:optional>
  <rng:attribute name="active">
   <rng:list>
    <rng:oneOrMore>
     <rng:ref name="data.pointer"/>
    </rng:oneOrMore>
   </rng:list>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="mutual">
   <rng:list>
    <rng:oneOrMore>
     <rng:ref name="data.pointer"/>
    </rng:oneOrMore>
   </rng:list>
  </rng:attribute>
 </rng:optional>
</rng:choice>
<rng:optional>
 <rng:attribute name="passive">
  <rng:list>
   <rng:oneOrMore>
    <rng:ref name="data.pointer"/>
   </rng:oneOrMore>
  </rng:list>
 </rng:attribute>
</rng:optional>
<rng:optional>
 <rng:ref name="desc"/>
</rng:optional>
</rng:element>
element relation
{
   att.global.attributes,
   att.datable.w3c.attributes,
   att.datable.iso.attributes,
   att.editLike.attributes,
   att.dimensions.attributes,
   att.naming.attributes,
   att.canonical.attributes,
   attribute type { "social" | "personal" | "other" | xsd:Name }?,
   attribute name { data.enumerated },
   (
      attribute active { list { data.pointer+ } }?
    | attribute mutual { list { data.pointer+ } }?
   ),
   attribute passive { list { data.pointer+ } }?,
   desc?
}
例子
<relation
  type="social"
  name="supervisor"
  active="#zh-tw_p1"
  passive="#p2 #p3 #p4"/>
例子
<relation
  type="personal"
  name="friends"
  mutual="#zh-tw_p2 #zh-tw_p3 #zh-tw_p4"/>