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

Re: Using Saxon 8.5 and collection() to process a dir

Subject: Re: Using Saxon 8.5 and collection() to process a directory of XML files
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 04 Aug 2005 18:22:27 +0100
Re:  Using Saxon 8.5 and collection() to process a  dir
>>>>> "Michael" == Michael Kay <mike@xxxxxxxxxxxx> writes:

    Michael> You can call saxon:discard-document() to make a document
    Michael> available for garbage collection when there are no
    Michael> outstanding references to it.

Is this truly compliant with the standard?

Last time I looked at it, it would discard the document, and if the
same document URI was later referred to again via doc() or document(),
it would be re-read into memory.

Now, if the stylesheet calls generate-id() on the document node, and
writes the generated id to the result document, then calls
saxon:discard-document(), and later on again calls document() on the same URI, 
and again calls generate-id()  on the document node, and again
writes the generated id to the result document, then the two strings
must be identical according to the standard, as I read it.

As far as I can remember, Saxon was not doing anything to enable this
to be true.
-- 
Colin Adams
Preston Lancashire

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.