| Microsoft's vision for XML | Table of contents | Indexes | What isn't a document? | |||
Hypertext Linking with HTML, SGML and XML - technologies and techniques |
|
Neil Bradley |
| Senior Consultant |
8 Beacon House Burrells Wharf Square Isle of Dogs London England E14 3TJ Email: neil@bradley.co.uk Web: www.bradley.co.uk |
Biographical notice: |
Neil Bradley |
ABSTRACT: |
HTML, Hypertext Markup Language ![]() Hytime SGML ![]() URL ![]() XLL ![]() XML ![]() hypertext ![]() |
One of the most powerful features of electronic document publishing is its ability to include interactive features that allow readers to navigate to other documents, or to other parts of the same document, directly from references in the text. This is termed a 'hypertext' linking feature. SGML (Standard Generalized Markup Language) incorporates a primitive intra-document scheme. HTML (HyperText Markup Language) uses the URL standard to provide simple, single-directional inter-document linking. XML (eXtensible Markup Language) , in conjunction with the adjunct XLL (XML Linking Language) standard, offers much more powerful capabilities, such as bi-directional links, and links into and out of read-only documents, or other documents that have no unique element identifiers. Finally, the HyTime standard contains very advanced facilities for multi-media based systems, including links to coordinates in an image, or time-slice within a movie clip. |
SGML |
|
<!ELEMENT chapter (...)> <!ATTLIST chapter target ID #REQUIRED> <chapter target="chap1">...</chapter> <chapter target="chap2">...</chapter> |
<!ELEMENT link (...)> <!ATTLIST link ref IDREF #REQUIRED> <chapter target="chap1">...</chapter> ... ... for details see <link ref="chap1">Chapter 1</link>. |
An SGML parser can detect these attributes and check that the value held corresponds to the value of an attribute of type ID elsewhere in the document. |
HTML |
|
<H2><A name="chap2">Chapter Two</A></H2> ... ... and see <A href="#chap2">Chapter Two</A> for details... |
However, in HTML 4.0, almost all elements have been given attributes called Id, which may also hold unique identifier values. Using these makes HTML documents look much more like SGML documents. |
<H2 id="chap2">Chapter Two</H2> ... ... and see <A href="#chap2">Chapter Two</A> for details... |
XML |
|
XLL |
|
... see <goto xml-link="simple" href="otherdoc#part9"> part nine of the other document </goto>. |
<!ELEMENT goto (#PCDATA)> <!ATTLIST goto xml-link #FIXED "simple" href CDATA #REQUIRED> ... see <goto href="otherdoc#part9"> part nine of the other document</goto>. |
<extend inline="false"> <locator href="..." title="Summary"> <locator href="..." title="Details"> <locator href="..." title="In context"> <locator href="..." title="Other opinions"> </extend> |
HyTime |
|
<nameloc id="MyLogo" nametype="entity"> <nmlist>MyLogo</nmlist> </nameloc> ... See my company <clink linkend="MyLogo">logo</clink>. |
select ( DOMTREE And ( Eq(Proploc(CAND GI) "TITLE") He(Dataloc(CAND 1 -1) "summary") ) ) |
Managing Links |
|
Unique identifiers may be assigned to objects as they are created in a number of different ways. Which method to choose depends largely on the capabilities of the working environment. |
Links within a single, small document, typically reflect the name of a title or heading of the section concerned. Link values such as ‘introduction’, ‘summary’ and ‘requirements’ are sufficient. |
| Microsoft's vision for XML | Table of contents | Indexes | What isn't a document? | |||