W3C home > Mailing lists > Public > www-xml-linking-comments@w3.org > July to September 2000

Relative URI's in xml:base

From: Curt Arnold <carnold@houston.rr.com>
Date: Fri, 14 Jul 2000 12:58:45 -0500
Message-ID: <004b01bfedbd$27ce5a20$6444a018@houston.rr.com>
To: <www-xml-linking-comments@w3.org>
There are no discussions or examples in the XML Base document on the use of
relative URI's as values for XML Base.  For example, would something like
this be legal:

<TESTSUITE>
<TESTCASES xml:base="xmlconf/">
    ...   test cases where URI's are relative to document's base URI +
xmlconf/
</TESTCASES>
</TESTSUITE>


In regards to the problem with entity boundaries, you could ensure that you
get the same behavior regardless of whether the DOM strips EntityReference's
by explictly specifying the base URI of the entity in the containing
element.  If the processor maintains the EntityReference reference, then the
xml:base is out of scope and ignored.  If the DOM processor drops the entity
reference, then xml:base is incorrectly applied but it has the same result.

<!DOCTYPE ...[
<!ENTITY xmlconf SYSTEM 'xmlconf/xmlconf.xml'>
]>
<TESTSUITE>
<TESTCASES xml:base="xmlconf/">
    &xmlconf;
</TESTCASES>
</TESTSUITE>
Received on Friday, 14 July 2000 13:58:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:39:40 GMT