W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > January 2002

xml:base testcase draft: base and embedded hyperlink interactions

From: Dan Brickley <danbri@w3.org>
Date: Fri, 18 Jan 2002 11:07:38 -0500 (EST)
To: <w3c-rdfcore-wg@w3.org>
Message-ID: <Pine.LNX.4.30.0201181038550.26639-100000@tux.w3.org>

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 EST

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 09:43:55 EDT