Lists Home |
Date Index |
- To: Michael Kay <firstname.lastname@example.org>
- Subject: Re: [xml-dev] XSLT with DOM or SAX ?
- From: Robert Koberg <email@example.com>
- Date: Mon, 28 Mar 2005 11:36:13 -0800
- Cc: "'Kurt Riede'" <firstname.lastname@example.org>, email@example.com
- In-reply-to: <200503281924.j2SJOUf09739@server1.livestoryboard.com>
- References: <200503281924.j2SJOUf09739@server1.livestoryboard.com>
- User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)
Michael Kay wrote:
>>You could stick it into the XSL stylesheet itself (using XInclude
>>perhaps an entity). Then you can cache the Templates object.
> That might work with some processors. With Saxon, it won't. Saxon never
> pre-evaluates the document() function at compile time. There could be a
> run-time URIResolver that redirects the URI (even "") to somewhere else.
OK - I was guessing :)
If no resolver for "", wouldn't the the transformation work on an
already parsed tree (cached in the Templates object??) for the
particular processor? Does document('') load the XSL from the source again?
I wonder how other processors deal with it??
> Also, I think the originator wanted to transform the same source document
> using different stylesheets.
> Michael Kay
>>you transform, you could access the included XML with something like:
>><?xml version="1.0" encoding="UTF-8"?>
>> <my:something boo="foo"/>
>> <xsl:template match="/">