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.

           Summary: Xalan-J accepts a string as the second argument of the
                    document() function.
           Product: XalanJ2
           Version: 2.3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Xalan-CmdLine
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When using the document() function to retrieve an external document during a 
transformation, I used this string ("../XML/") as the second parameter. I 
intended it to function as a file system path relative to the directory from 
which I was excecuting the command line version of Xalan-J. It worked.

Those far wiser than me on the Mulberry Tech XSLT list pointed out that it is 
incorrect for the document() function to accept a string as the second 
parameter, that the correct type for the second parameter is a node set, and 
went on to point out the relevant part of the spec, further urging me to report 
this convenient, if non-conformant behavior to you.

This, I have done.

Reply via email to