Linking to a document    ld 1


>   When you insert a link in document it must be relative.

An absolute link (like http://www.domainname) depends explicitly on a domain name and it should be avoided since it is not stable over the years.

In the URLib system there are two implementations for a relative link.

1. The link is pointing to a file in another repository in the same local collection (see page sid 2) as the document that contains the link.

For example, a link in the file doc/myfile is pointing to the file doc/BFF in the repository dpi.inpe.br/banon/1995/08.25.00.00.

In this case, the link should be written:

../../../../../dpi.inpe.br/banon/1995/08.25.00.00/doc/BFF

or

../../../../../../col/dpi.inpe.br/banon/1995/08.25.00.00/doc/BFF.

We recommend the second expression since it is recognized by the URlib service as referenced repositories (see page cd 2).

The number of ../ depends on the number of directory between the doc directory and the file containing the link.

In the above example, myfile is in the doc directory itself and the number of ../ must be 5 in the first expression and 6 in the second one.

If myfile were in doc/dir/myfile, the number of ../ would be incremented by 1, being 6 in the first expression and 7 in the second one.


Home | Next


dpi.inpe.br/banon/1997/08.14.12.32