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

RE: Use document() function to get a reference to the

Subject: RE: Use document() function to get a reference to the input doc
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 18 Jul 2006 06:08:07 +0100
RE:  Use document() function to get a reference to the
> When I brought this issue up off-list, this is the response I 
> received:
> > > I'm getting two different generate-id() values for the same 
> > > document's root node.
> >
> >That's because they aren't the same document... they are two 
> different documents loaded from the same URL.
> >
> >That can't happen if they were both loaded using the document() 
> >function - but in this case, one was and one wasn't, so 
> there are no guarantees.

This sounds a bit as if I might have written it, so let me expand. It's
actually been quite a troublesome area, in sorting out the detailed
semantics of the document-uri() function. 

If you're interested in the subtleties you might like to follow the
discussion at


which is not yet resolved, but which I think is heading in the direction of
relaxing the requirement that

doc(document-uri(D)) is D

must always hold.

Michael Kay

Current Thread


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.
First Name
Last Name
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.