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

Re: xml:base and rdf:parseType="Literal"

From: Brian McBride <bwm@hplb.hpl.hp.com>
Date: Mon, 08 Apr 2002 12:54:04 +0100
Message-Id: <5.1.0.14.0.20020408125014.00aacfd0@0-mail-1.hpl.hp.com>
To: Dave Beckett <dave.beckett@bristol.ac.uk>
Cc: RDF Core <w3c-rdfcore-wg@w3.org>
At 11:40 08/04/2002 +0100, Dave Beckett wrote:
> >>>Brian McBride said:
> > Jeremy,
>
>Well, you addressed this to the group

Yup.  Was thinking of Jeremy doing test cases for this, but I'm grateful 
for all input.


> > I came across this in some RDF Stuart has written:
> >
> > <rdf:Description rdf:about="http://example.org/"
> >                   xml:base="http://example/org/base/">
> >    <rdf:value rdf:parseType="Literal">
> >      <a href="foo">link</a>
> >    </rdf:value>
> > </rdf:Description>
> >
> > I wasn't sure whether the xml:base had any effect on the href.
>
>No.
>
>Since
>
>1) xml:base applies only to fields that contain URIs that XML
>    applications (RDF/XML here) know about.  RDF/XML doesn't do that
>    inside parsetype literal content.

Just so and RDF can't expect to about all those namespaces.  But it 
occurred to me we could put an xml:base attribute on outer elements in the 
literal, the way we are doing with namespaces.  I'm not suggesting this; 
just asking for my own education.


>2) the <a> has no namespace.
>    RDF/XML doesn't apply to non-namespaced elements anywhere
>
>3) X/HTML don't use xml:base so even if it was an X/HTML fragment
>    and element, it wouldn't apply.

And I wasn't sure about that.  I believe HTML has a base attribute; I 
wasn't sure if they had endorsed xml:base.

Thanks Dave.

Brian
Received on Monday, 8 April 2002 07:56:26 EDT

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