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

RE: XPath predicate in with-param's select

Subject: RE: XPath predicate in with-param's select
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 17 Dec 2007 14:48:55 -0000
RE:  XPath predicate in with-param's select
> I also tried SaxonB for Java, but I don't get the current 
> version of my stylesheet (without the predicate) to run on my 
> XML document. It fails with an OutOfMemoryError, also when 
> upping the VM's maximum by -Xmx512000000. 

I can't really follow the logic of what you are doing, but it's failed
creating temporary trees that don't need to be created. Using XSLT 2.0
constructs (sequences and functions rather than trees and templates) is a
lot more efficient for this kind of thing. This would also allow you to
declare the types of your parameters and results which would make the code
much easier to understand.

I'm confused as to why you're passing a $node parameter to the template
part_a when the parameter isn't used by that template...

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.