W3C home > Mailing lists > Public > public-grddl-wg@w3.org > April 2007

Re: Headsup on hCard profile xml:base concerns

From: Jeremy Carroll <jjc@hpl.hp.com>
Date: Wed, 25 Apr 2007 09:52:49 +0100
Message-ID: <462F16E1.8060900@hpl.hp.com>
To: ogbujic@ccf.org
CC: GRDDL Working Group <public-grddl-wg@w3.org>

Unless there are any objections raised at the telecon, I will change the 
following code in glean-profile:


<rdf:RDF xml:base="{/html:html/html:head/html:base/@href}">


    <xsl:if test="/html:html/html:head/html:base/@href">
      <xsl:attribute name="xml:base">
        <xsl:value-of select="/html:html/html:head/html:base/@href" />

or there abouts.

The current code always add an xml:base, and relies on xml:base="" being 
a no-op. The replacement only adds an xml:base when there is an 
html:base (with an href).

I will make this change tomorrow.


Chimezie Ogbuji wrote:
> On Tue, 2007-04-24 at 16:59 +0100, Jeremy Carroll wrote:
>> ====
>> However, I can change the code to not put the xml:base="" when there is 
>> no html:base. It's just it was easier to always generate it.
> It looks like the problem here is with the parser, so I don't feel too
> strongly, but it might be a good idea (for clarity) if our deployed
> transforms didn't use xml:base="" but that we at least had a test to
> cover this scenario (I'm assuming we do).  My $0.02

Hewlett-Packard Limited
registered Office: Cain Road, Bracknell, Berks RG12 1HN
Registered No: 690597 England
Received on Wednesday, 25 April 2007 08:53:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:39:11 UTC