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

how can we pass previously built documents into FLWOR exprs in Saxon?

  • To: xml-dev@l...
  • Subject: how can we pass previously built documents into FLWOR exprs in Saxon?
  • From: <manavaputra@y...>
  • Date: Fri, 3 Feb 2006 17:39:40 -0800 (PST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Pzv+zpxibdojundgsBaI6ku7nBAWR1q5bbjgnaan5IVymzIWWcplG2jmh7TBBXqOUKvD/259VgCnrrl38hx7pAUfLqNtRHSe8Yhk4lHfv7NAcgaJkpi42LlZiaEjvnPK2SHatjX2smMyC2brjC8QCUWKVwleJmXQilW7sdbt4uc= ;

saxon document
I am at the moment testing the SAXON Xpath/XQuery API.
Most of the time, we work with only one document, but
there are cases when we work with more than one
document. The dynamic query context in saxon allows us
to set only one context node which could be the root
node of the document. This works fine for FLWOR exprs
involving a single document and they dont even have to
use doc() function in their exprs. But if we have,
say, two documents that the FLWOR exprs are querying,
then from the API documentation, it appears as though
we will have to use doc("uri or filepath") function
calls in which case saxon loads them automatically. My
problem is that i have to load both the documents
anyway in my code using the api call to
StaticQueryContext.buildDocument(StreamSource) and i
dont want to load them again in FLWOR exprs, because
it is just a waste of memory considering that large
xml files do consume a lot of memory. Is there any way
to pass previously build document root nodes into the
FLWOR exprs.

I realize this is xquery/xpath specific question and
more so specially for saxon. If there are other lists
dedicated for this purpose, please do let me know.

Thanks
Manava

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.