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

RE: Loading an external file of index

Subject: RE: Loading an external file of index
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 26 Jun 2000 10:09:48 +0100
RE: Loading an external file of index
> > If you make several calls on document() with the same URI, 
> the processor is obliged to return the same document each time: in other 
> words, it won't reload it.
> 
>  Is this really so?
>  I'm using as URI calls to a dynamic page
>   ("http://localhost:8081/get?uri=myuri").
> 
>  Even if the URI (an URL, in fact) is ever the same, the document is
>  reloaded every time (Cocoon 1.7.4).

XSLT section 12.1 states explicitly (in response to a comment from me, I
might add), Two documents are treated as the same document if they are
identified by the same URI. It explains that this means
generate-id(document("foo.xml"))=generate-id(document("foo-xml")).

In my original comment I suggested the clarification
count(document("foo.xml") | document("foo.xml"))=1

which I think is even clearer. If you call document() twice with the same
URI, you should get the same tree back each time.

Mike Kay


 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.