- From: David Carlisle <davidc@nag.co.uk>
- Date: Mon, 14 Jan 2002 13:27:47 GMT
- To: www-xml-query-comments@w3.org, xsl-editors@w3.org
According to XSLT 1, every node had a base URI, and in particular could be used as the second argument to document() to provide the base against which relative URI references are resolved. XSLT 2's description of document() refers to the data model for the base-uri of the node supplied in the second argument. The data model specifies that the base uri for certain node types (comment attributes, namespaces, text) is (). This appears to mean that document('',@foo) no longer refers to the document containing the foo attribute but is (presumably) an error of some kind. This incompatibility doesn't appear to be listed in appendix J. Possible fixes would be to extend the data model to let any node have a base uri, or to define document() so that if the second argument evaluates to a node that has no base uri, the base uri of that nodes parent is taken (if that node has a parent....) David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service.
Received on Monday, 14 January 2002 08:28:15 UTC