Re: PATHs in HTML

Bert Bos ([email protected])
Wed, 12 Jan 1994 19:56:13 +0100 (MET)


Bill Perry asks:

| Now what exactly is the format of something pointed to by
|REL=Subdocument? Just a list of URLs like:
|http://cs.indiana.edu/finger
|http://cs.indiana.edu/LCD/cover.html
|...
|
| Or just a bunch of <LINK > attributes? Would the REL attributes still
|all be Subdocument? Would there be a NAME attribute?
|
|<LINK REL=Subdocument NAME="My weird path around IU">

No, the beauty of the scheme is that there is nothing in the target
document that makes it into a node of a path. The document that
contains the rel=Subdocument itself *is* the path. As an example, here
is a valid path. Note that it is a perfectly normal HTML document.

<!doctype html>
<title>My path around Mosaic</title>
<h1>My path around Mosaic</h1>
You should read the following in this order:
<ol>
<li><a rel=subdocument href=
"http://www.ncsa.uiuc.edu/demoweb/demo.html">Mosaic demo</a>
<li><a rel=subdocument href=
"http://www.ncsa.uiuc.edu/demoweb/html-primer.html">About HTML</a>
<li><a rel=subdocument href=
"http://info.cern.ch/hypertext/WWW/Addressing/Addressing.html">About URLs</a>
</ol>
OK?

This would be a document on my server, but it builds a path out of
nodes that are read-only to me. A browser that displays the above text
would note the occurrence of three Subdocuments and offer to the user
to display all three of them one after the other (the "Traverse
current path" button).

When the user decides to "traverse the path", the first subdocument
("Mosaic demo") is retrieved and displayed normally. The user can do
anything he normally does, but in addition he can now also press the
spacebar and be transported to the second document ("About HTML"). The
next press of the spacebar would retrieve the third node ("About
URLs") and the fourth would be an error.

Another way to view this is to imagine that the browser "queues" all
links that have rel=Subdocument. When the user doesn't select a link
explicitly, the next node from the queue is popped and displayed
instead.

NB1: the "spacebar" is just an example, it could be any other key or
mouse click.

NB2: the "queue" model is inaccurate, in the following way: when
you're already traversing a path, occurences of Subdocument are not
queued, but occurrences of Path are.

NB3: The above is just my interpretation. Jim McBeath or Dave Raggett
can probably do better.

Bert

-- 
                     _________________________________
                    / _   Bert Bos <[email protected]>  |
           ()       |/ \  Alfa-informatica,           |
            \       |\_/  Rijksuniversiteit Groningen |
             \_____/|     Postbus 716                 |
                    |     9700 AS GRONINGEN           |
                    |     Nederland                   |
                    \_________________________________|