Hypertext links

Many electronic documents contain hypertext links. These are links from references to the objects they reference, which users may follow if they desire. The popular Web browsers have been built around this concept from the start. But for a link to work, the destination object must have a unique identifier of some kind. In some cases, the source document will already have a unique identifier, identified as such within a DTD:

<!DOCTYPE book [ ...
<!ELEMENT chapter (para+)>
<!ATTLIST chapter ident ID #REQUIRED>
... ]>
<book>
  <chapter ident="ch1">
  ...
  </chapter>
  <chapter>
    <para>Link to chapter
      <linkto idref="ch1">one</linkto>.
    </para>
  </chapter>
</book>

No special effort is needed to convert such a document using XSLT, because the ...

Get XSL companion, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.