xsl-list
[Top] [All Lists]

RE: [xsl] RE: URI Resolution for document('') Reference Is Broken?

2010-01-06 16:28:31
 

Thanks for the prompt response. Here is the servlet code that 
sets up and invokes the transformation:

      Source xslSource = new StreamSource(xslInputStream);


Just as I guessed, you are not setting the systemID on the Source object. So
its base URI is unknown. document('') retrieves the resource whose URI is
the base URI of the element containing the call to document(''), which in
this case is unknown.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 



--~------------------------------------------------------------------
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>
--~--