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

Subject: RE: [xsl] RE: URI Resolution for document('') Reference Is Broken?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 6 Jan 2010 22:28:01 -0000
> 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 

Current Thread