xml:base testcase draft: base and embedded hyperlink interactions

Below, a writeup of the interaction I mentioned concern about on the telecon, ie.
that the applicability of surrounding xml:base declarations to embedded
chunks of parseType="Literal" hypertext may be unclear. I don't
distinguish here between the different XML namespaces (XHTML, SVG, MathML
etc) that might appear as literal markup within the RDF. The intention is
that the test case embed XML markup that does acknowledge xml:base.

(I expect this case can be folded into our answer for the more general
question: what do we do w.r.t. namespaces declared outside the embedded
XML fragments.)

Dan


<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/11-rdf-syntax-ns#"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:foaf="http://xmlns.com/foaf/0.1/"
	>

<!-- some RDF written using XML base for conciseness -->

<foaf:Person 	foaf:name="Dan Brickley"
		xml:base="http://rdfweb.org/people/danbri/">

  <foaf:wrote>
    <foaf:Document rdf:about="index.html" dc:title="Dan&apos;s home page"/>
  </foaf:wrote>
  <foaf:wrote>
    <foaf:Document rdf:about="biblio.html" dc:title="Dan&apos;s bibliography"/>
  </foaf:wrote>

 <!-- within scope of the xml:base we have some literal xhtml data -->
  <foaf:wrote>
    <foaf:Document>
      <foaf:excerpt rdf:parseType="Literal">
        <h:html xmlns:h="http://www.w3.org/1999/xhtml">
          <h:head>
            <h:title>Some other doc</h:title>
          </h:head>
          <h:body>
            <h1>Some HTML markup</h1>
              <h:p>An experimental <h:a h:href="../../example.html">hyperlink</h:a></h:p>
              <!-- does the xml:base affect this hyperlink? -->
          </h:body>
        </h:html>
      </foaf:excerpt>
   </foaf:Document>
  </foaf:wrote>

</foaf:Person>

</rdf:RDF>

Received on Friday, 18 January 2002 11:07:38 UTC