|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








