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

saxon:discard-document

Subject: saxon:discard-document
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 25 Nov 2005 15:13:24 +0000
saxon discard document
Here's my counter-proposal:

A User Data Element, say exslt:performance-hints:

<exslt:performance-hints>
        <only-load-once document-uri="xyz://a.b.c/a/doc" />
        <only-load-once collection-uri="xyz://a.b.c/b/collection" />
</exslt:performance-hints>

Semantics:

only-load-once gives an optimization hint to the processor that
a document will not be accessed again outside of the xslt element that
causes it to be loaded.

Since it is a performance hint, the processor is free to ignore it, if
it is doesn't believe the coder :-)
More importantly, since it's a User Data Element, the stylesheet
remains portable.

If the processor recognizes the UDE, then it proceeds as follows:

When loading such a URI, it discards the document as soon as it is
safe to do so (it only has a local scope - this may need tying down a
bit more).

If a subsequent attempt is made to load the same document, then an
non-recoverable dynamic error is raised (the user has violated the
semantics of exslt:performance-hints).
-- 
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.