W3C home > Mailing lists > Public > public-grddl-comments@w3.org > April to June 2007

base-uri and XSLT 1.0

From: Dave Beckett <dave@dajobe.org>
Date: Fri, 04 May 2007 21:30:57 -0700
Message-ID: <463C0881.9040907@dajobe.org>
To: public-grddl-comments@w3.org

Some XSLT sheets used in GRDDL examples rely on having
the document's base URI passed around in XSLT parameters
rather than any other mechanism.

I've hardcoded this fix in raptor for some time
when I start up the libxslt engine:
  /* FIXME:
   * Define 'base' and 'Base' params to allow some XSLT sheets to work:
   *   http://www.w3.org/2000/07/uri43/uri.xsl
   *   http://www.w3.org/2000/08/w3c-synd/home2rss.xsl

I was also recently looking at the example RDFa transform
by Fabien Gandon and it includes/relies on another param:
  <param name="url" select="''"/>
for the output triples.
-- http://www-sop.inria.fr/acacia/soft/RDFa2RDFXML.xsl

Without the params above, the transforms that include or use
the above sheets, such as the one behind the w3c home page
http://www.w3.org/ do not get the base URI right.

Maybe it's a bug in the above sheets.

If so, what is the change?

Received on Saturday, 5 May 2007 04:43:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:52:29 UTC