Re: [xslt] key() in match pattern of xsl:key



On Tue, 13 Dec 2005, Vincent Lefevre wrote:

> Unless there's a way, through an extension, to access the RTF in
> another way, e.g. with document().

You're referring to exslt:document, right?

> Not necessarily, but this depends on the XSLT processor. There are
> several solutions. First, accessing an ID may be fast; does libxml2
> hash the IDs? But a problem is that the processor doesn't necessarily
> recognize the IDs (without the xml:id solution, one needs a DTD,
> but how to associate a DTD with a RTF? Do libxml2 or libxslt have
> another solution?).

I know little about exslt:document and IDs.  Reading the spec for 
exslt:document at http://www.exslt.org, its relationship with keys and IDs 
doesn't seem very well defined.  Your idea seems like a good one where 
supported, but, even if I can figure it out for libxslt, I worry about 
portability.  At least with keys referencing keys I can be sure I'll be 
fine with XSLT 2.0 processors... and apparently even a few 1.0 processors 
(still need to explore that more).

Thanks.

Joel


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]