xsl-list
[Top] [All Lists]

RE: document-uri gives empty sequence

2005-11-07 13:36:57
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/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>