[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: SAX mode, DOM mode and caching

Subject: Re: SAX mode, DOM mode and caching
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: Thu, 09 Nov 2000 09:17:55 +0100
sax objects
Hi Tangy,

Tangi Vass wrote:
> 
> I've been thinking of a cachable queue of SAX events. I would like to have
> the opinion of you, folks, about this idea before trying to implement it.
> 

We'd discussed it before and I have just implemented a simple one very
recently (I plan to publish this as soon as I have found enough time to
document it).

I have a simple class for each of the SAX events (a StartElement class,
a Characters class, a EndElement class, ...).

Objects from these classes have constructors with the same parameters
than SAX events and can emit the corresponding event. Lists of such SAX
objects can be manipulated and cached.

I am currently using these classes for 2 purposes on XMLfr (and 4xt).

The first one is to paginate a XSLT RTF to split XML documents into WML
pages (I am developping a WAP access to XMLfr). The split is done using
a splitable derived class of the SAX objects list.

The second one is to cache my input document (I have developped a SAX
filter doing so transparently) and you're right, I get a huge (50%)
performance boost when transforming cached documents even though I
haven't really tried to optimize the whole thing.

Eric
-- 
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
http://xmlfr.org         http://4xt.org              http://ducotede.com
------------------------------------------------------------------------


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.