Lists Home |
Date Index |
- To: "'Kurt Riede'" <firstname.lastname@example.org>
- Subject: Re: [xml-dev] XSLT with DOM or SAX ?
- From: Robert Koberg <email@example.com>
- Date: Mon, 28 Mar 2005 10:13:18 -0800
- Cc: firstname.lastname@example.org
- In-reply-to: <200503281759.j2SHx1f09006@server1.livestoryboard.com>
- References: <200503281759.j2SHx1f09006@server1.livestoryboard.com>
- User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)
Michael Kay wrote:
>>Concerning your discussion about performance of
>>transformation, I have a related question:
>>Suppose we have a big XML document (>10MB) that rarely
>>changes. Now we want to transform it very often (>100 per
>>minute) in different ways, to extract and transform different
>>parts of the XML to distinct targets.
>>What is the best practise?
>>Is there a way to make the transformer to cache the internal
>>optimized representation of the XML?
You could stick it into the XSL stylesheet itself (using XInclude
perhaps an entity). Then you can cache the Templates object. Then when
you transform, you could access the included XML with something like:
<?xml version="1.0" encoding="UTF-8"?>