Exemples XLink


un lien simple:

<students xlink:href="students.xml"> The list of students.</students>

un lien étendu:

<element xmlns:xlink="http://www.w3.org/1999/xlink/namespace/"
         xlink:type="extended">
 <xlink:locator href="Source" role="role1"/>         
 <xlink:locator href="Target" role="role2"/>
 <xlink:arc from="role1" to="role2"
               show="embed" actuate="auto"/>
 <xlink:title>The link title<xlink:title/>
 <xlink:title xml:lang="fr">Description du lien<xlink:title/>
    ...
</element>

Annotations:

<xlink:extended xmlns:xlink="http://www.w3.org/1999/xlink/namespace/"
         role="xlink:external-linkset">
     <xlink:title>DV's Links</xlink:title>
     <xlink:locator href="http://rpmfind.net/veillard/linkset.xml"/>
</xlink:extended>