base-uri and XSLT 1.0

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?

Dave

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