[jdom-interest] Base URI on Document

Elliotte Rusty Harold elharo at metalab.unc.edu
Tue Apr 16 15:55:05 PDT 2002

Would it make any sense to give the Document class some sort of URI 
property that represents the source form which the document was read? 
The Infoset expects it, and it would be very useful in any context that 
needs to resolve relative URLs including XInclude, XLinks, XHTML and more.

The flip side is that I'm not convinced that the base URL is really a 
property of the Platonic document in the same way the root element name 
is, for example. If a document moves from one base URL to another 
without otherwise changing, is it still the same document?

| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
|           The XML Bible, 2nd Edition (IDG Books, 2001)             |
|             http://www.cafeconleche.org/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
|  Read Cafe au Lait for Java News:   http://www.cafeaulait.org/     | 
|  Read Cafe con Leche for XML News:  http://www.cafeconleche.org/   |

More information about the jdom-interest mailing list