You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/08/01 22:27:57 UTC
DO NOT REPLY [Bug 11380] -
Xalan-J accepts a string as the second argument of the document() function.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11380>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11380
Xalan-J accepts a string as the second argument of the document() function.
------- Additional Comments From keshlam@us.ibm.com 2002-08-01 20:27 -------
That appears to be correct. When two arguments are provided, "the base URI (see
[3.2 Base URI]) of the node in the second argument node-set that is first in
document order is used as the base URI for resolving the relative URI into an
absolute URI."
The equivalent wording in the XSLT 2.0 working draft -- more specifically, in
the Functions and Operators document shared with the XQuery WD -- currently says
"It is a dynamic error if $srcval2 is the empty sequence, or a sequence whose
first item is not a node, unless all the URIs in $srcval1 are absolute URIs. If
$srcval2 is a sequence of more than one node, the effect is as if only the first
node in the sequence were supplied."
So, yes, the second argument should be a sequence of one or more nodes, not a
literal string. Subtle. Good catch.