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

RE: in memory tree representation SAXON

Subject: RE: in memory tree representation SAXON
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Sat, 7 Jun 2003 17:41:27 +0100
memory tree
If you supply the input to the Saxon transformation as a StreamSource or
SAXSource, then the result tree will be built from scratch each time.
You can arrange to reuse the same tree by building the tree yourself:

XPathEvaluator xp = new XPathEvaluator();
DocumentInfo doc = xp.setSource(new StreamSource(...))

transformer.transform(doc, ...)

(this is Saxon 7.x, it's a bit more cumbersome in 6.x., but you can
still achieve it)

If you do two transformations on the same document tree using the same
compiled stylesheet, then Saxon will reuse the indexes defined using
xsl:key.

Michael Kay


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Philippe Dubreuil
> Sent: 06 June 2003 12:00
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  in memory tree representation SAXON
> 
> 
> Hi,
> I 'd like to know, if the in-memory tree representation in saxon is 
> removed or not after each transformation.
> Is it  possible to deduce the in-memory  result tree 
> representation from 
> the first one. i'd like to transform the first one to get the 
> result tree.
> 
> I'm trying to find a way to conserve the indexation through a 
> transformations composition.
> 
> thanks
> 
> phil. Dubreuil
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.