<relation>
<relation> (relation) décrit tout type de relation ou de lien à l'intérieur d'un groupe donné de participants. [14.3.2.3 Personal Relationships]<a href="https://translate.tei-c.org/translate.html?edit=relation.xml"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" aria-label="Translation out of date." viewBox="0 0 16 16" style="position:absolute; top:2px; right:2px; color:red"><title>Translation out of date.</title> <path d="M6.146 7.146a.5.5 0 0 1 .708 0L8 8.293l1.146-1.147a.5.5 0 1 1 .708.708L8.707 9l1.147 1.146a.5.5 0 0 1-.708.708L8 9.707l-1.146 1.147a.5.5 0 0 1-.708-.708L7.293 9 6.146 7.854a.5.5 0 0 1 0-.708z"></path> <path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"></path></svg></a> | |||||||||||||||||||||||||
Module | namesdates — Names, Dates, People, and Places | ||||||||||||||||||||||||
Attributs |
|
||||||||||||||||||||||||
Contenu dans |
core: listBibl
namesdates: event listEvent listNym listObject listOrg listPerson listPlace listRelation
|
||||||||||||||||||||||||
Peut contenir |
core: desc
|
||||||||||||||||||||||||
Note |
Un seul des attributs active et mutual peut être fourni ; l'attribut passive ne peut être utilisé que si l'attribut active est fourni. Tous les langages de schéma ne sont pas capables d'exprimer la totalité de ces contraintes. |
||||||||||||||||||||||||
Exemple |
<relation type="social" name="supervisor"
active="#fr_p1" passive="#p2 #p3 #p4"/> Cela indique que la personne avec l'identifiant p1 est le superviseur des personnes p2, p3 et p4. |
||||||||||||||||||||||||
Exemple |
<relation type="personal" name="friends"
mutual="#fr_p2 #fr_p3 #fr_p4"/> Cela indique que p2, p3 et p4 sont tous amis. |
||||||||||||||||||||||||
Schematron |
<sch:rule context="tei:relation"> <sch:assert test="@ref or @key or @name">One of the attributes @name, @ref or @key must be supplied</sch:assert> </sch:rule> |
||||||||||||||||||||||||
Schematron |
<sch:rule context="tei:relation"> <sch:report test="@active and @mutual">Only one of the attributes @active and @mutual may be supplied</sch:report> </sch:rule> |
||||||||||||||||||||||||
Schematron |
<sch:rule context="tei:relation"> <sch:report test="@passive and not(@active)">the attribute @passive may be supplied only if the attribute @active is supplied</sch:report> </sch:rule> |
||||||||||||||||||||||||
Modèle de contenu |
<content> |
||||||||||||||||||||||||
Schéma Declaration |
<rng:element name="relation"> element relation { att.global.attributes, att.global.analytic.attributes, att.global.change.attributes, att.global.facs.attributes, att.global.linking.attributes, att.global.rendition.attributes, att.global.responsibility.attributes, att.global.source.attributes, att.canonical.attributes, att.datable.attributes, att.datable.custom.attributes, att.datable.iso.attributes, att.datable.w3c.attributes, att.editLike.attributes, att.sortable.attributes, att.typed.attributes, attribute name { teidata.enumerated }?, ( attribute active { list { teidata.pointer+ } }? | attribute mutual { list { teidata.pointer+ } }? ), attribute passive { list { teidata.pointer+ } }?, desc? } |