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

RE: RE: Incremental transformations with Xalan and pe

Subject: RE: RE: Incremental transformations with Xalan and performance issues?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 5 Dec 2004 00:19:58 -0000
RE:  RE: Incremental transformations with Xalan and  pe
> Do you happen to know if anyone has tried to build an XSLT 
> engine that does incremental 
> transformations on incoming SAX events, without requiring the 
> building of a tree?  

There's been academic work on doing this with XPath, which is a precondition
to solving it at the XSLT level. This generally takes the traditional
academic form of ignoring the parts of the problem that are too difficult,
like positional predicates on reverse axes. In general I think it's safe to
say that it's not possible, and the best that you can achieve is to identify
some subset of XSLT that can be processed in this way. I think the people
doing STX took the right approach: in a serial transformation, you only get
the chance to look at each node once, and that means you need to remember
information from that node until it's needed, which means you need a
stateful language rather than a purely functional one.

> 
> I'm using Xalan (inside Cocoon), and for this task have not 
> yet figured out a way to use 
> Saxon due to some extensions I'm using.  More specifically, I 
> need to get/put stuff into 
> the session and using something like this (in Xalan):
> 
In general extension functions do make a stylesheet non-portable. However,
there's usually a way of getting round this. People do use Saxon with
Coccoon, but it's not something I can advise you on. Perhaps someone else
can help?

Michael Kay
http://www.saxonica.com/ 

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.