to the main page... about these slides...

Using schema default mechanisms with XLink

- many XLink properties can conveniently be specified as defaults


Example:

One may write

  <A xlink:href="..."/>
instead of
  <A xlink:type="simple" xlink:href="..." 
     xlink:show="replace" xlink:actuate="onRequest"/>
if proper defaults have been defined for the A element by the schema.


In DSD, this could be done by:
  <Default>
    <Context>
      <Element Name="A"><Attribute Name="href"/></Element>
    </Context>
    <DefaultAttribute Name="xlink:type" Value="simple"/>
    <DefaultAttribute Name="xlink:show" Value="replace"/>
    <DefaultAttribute Name="xlink:actuate" Value="onRequest"/>
  </Default>

(The DSD language is the topic of a later section.)