RE: [xsl] XSLT 1.0, relative URIs, and xml:base

Subject: RE: [xsl] XSLT 1.0, relative URIs, and xml:base
From: "Magnus Henriksson (MO/EAB)" <magnus.henriksson@xxxxxxxxxxxx>
Date: Mon, 21 Nov 2005 12:14:19 +0100
Michael Kay wrote:

> >
> > > This part would have to be done using
> > > a choose-when expression, I think.
> >
> > or applying templates over a large, if somewhat repetitive, xml file
> >
>
> Or you generate a lookup document of the form
>
> <c x="&#x1234;" n="1234"/>
> <c x="&#x1235;" n="1235"/>
> ...
>
> and then you can get the character code for a character using key().
>
> Better still, you could generate the lookup document to
> contain the %HH
> representation of the octets making up the UTF-8 representation of the
> character.
>
> If this lookup file is generated using Java or XSLT 2.0 (a
> one-off task),
> does it still meet the requirement of being a "pure XSLT 1.0
> solution"?

That would certainly be the XSLT 1.0 solution. But the lookup document would
indeed be large!

I think this is a case where XSLT 1.0 CAN be used, but shouldn't.

(EXSLT to the rescue!)


// Magnus

Current Thread