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

Re: document-uri gives empty sequence

Subject: Re: document-uri gives empty sequence
From: Manfred Staudinger <manfred.staudinger@xxxxxxxxx>
Date: Mon, 7 Nov 2005 14:37:31 -0800
the uri is empty
> I suspect that the base-uri() function might be good enough for your needs.
Yes, its working now, thank you.

Only problem is, I'm totally confused now when to use base-uri and in what
cases document-uri is the better choice. Also your example on p.333 seems
to indicate a preference for document-uri in connection with the usage of the
collection() function.

Regards, Manfred

On 07/11/05, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> > I've troubles to get document-uri function working in Saxon 8.6,
> > even though I had it working in Saxon 8.5.1.
>
> The implementation of document-uri() in 8.5.1 wasn't conformant, in that it
> didn't guarantee that
>
> doc(document-uri($x)) is $x
>
> would always be true. The spec says that for documents where no such URI is
> known, you should return an empty sequence, so that's what Saxon now does.
I
> agree it would be more helpful to try an assign a document URI that
> satisfies the above condition. In the meantime, though, I suspect that the
> base-uri() function might be good enough for your needs.
>
> Michael Kay
> http://www.saxonica.com/

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.