This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Re: Working with XInclude / xml:base / libxml v2.4.24 andabove
- From: Elliotte Rusty Harold <elharo at metalab dot unc dot edu>
- To: Norman Walsh <ndw at nwalsh dot com>
- Cc: veillard at redhat dot com, docbook at lists dot oasis-open dot org
- Date: Wed, 12 Mar 2003 08:52:54 -0500
- Subject: Re: DOCBOOK: Re: Working with XInclude / xml:base / libxml v2.4.24 andabove
- References: <F555D7916F890E40AFE69F41E89861A2C7D9E5@NLDNC004PEX1.ubsgs.ubsgroup.net><20030212140216.O29764@redhat.com> <p04330103ba9141c74b87@[192.168.254.4]><87adg0d9y9.fsf@nwalsh.com>
At 7:51 AM -0500 3/12/03, Norman Walsh wrote:
No. The base URI in both cases is: http://www.example.com/docs/
The base URI is not the same as the "document URI".
I agree that would be nicer, and it makes more sense; but it's not my
reading of either the XML Infoset or the XML Base specification. In
particular, section 4.1 of the XML Base spec
<http://www.w3.org/TR/xmlbase/#rfc2396> states,
RFC 2396 [IETF RFC 2396] provides for base URI information to be
embedded within a document. The rules for determining the base URI
can be summarized as follows (highest priority to lowest):
1. The base URI is embedded in the document's content.
2. The base URI is that of the encapsulating entity (message,
document, or none).
3. The base URI is the URI used to retrieve the entity.
4. The base URI is defined by the context of the application.
Assuminng there's no xml:base attribute in scope, then either 2 or 3
applies. Both use the base URI of the document itself, not the
directory where the document is found. RFC 2396 seems to say the
same thing. What am I missing?
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab dot unc dot edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| Processing XML with Java (Addison-Wesley, 2002) |
| http://www.cafeconleche.org/books/xmljava |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+