ZVON > Tutorials > XLink - Extended Links
Prev | Next | [Help]

7. Attribute label

Description

The attribute label provides "marks", to which the attributes from and to refer.




Legal value of the label attribute
The value of the label attribute must be an NCName. (An XML Name, minus the ":"; details see http://www.w3.org/TR/REC-xml-names/#NT-NCName ).

 <woman
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xlink:type="locator"
    xlink:href="http://www.greece.antique/database/alcmene.xml"
    xlink:role="http://www.greece.antique/woman"
    xlink:label="alcmene"
    xlink:title="Alcmene">
 </woman>


Error - illegal value of the label attribute
Neither the character ":" nor " " are allowed.

 <god
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xlink:type="locator"
    xlink:href="http://www.greece.antique/database/zeus.xml"
    xlink:role="http://www.greece.antique/god"
    xlink:label="god:zeus"
    xlink:title="Zeus">
 </god>


Error - illegal value of the label attribute
Neither the character ":" nor " " are allowed.

 <god
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xlink:type="locator"
    xlink:href="http://www.greece.antique/database/zeus.xml"
    xlink:role="http://www.greece.antique/god"
    xlink:label="god zeus"
    xlink:title="Zeus">
 </god>