Hi, Dick --

Are you sure that your resolver is getting called?  Also, are you sure it's
passing back a StreamSource?  The behavior you're describing is consistent
with the resolver not getting called or passing back a null return value.
In any event, I'll check the Xalan code and let you know if I see a problem
there.

Gary

> -----Original Message-----
> From: Dick Deneer [mailto:dick.den...@donkeydevelopment.com]
> Sent: Thursday, January 28, 2010 8:13 AM
> To: xalan-j-users@xml.apache.org
> Subject: document('')
> 
> 
> I am using the document('') function in my xml editor.
> In a new xslt document I do not have a filename as systemId. I am giving
> the
> xslt stylesheet as a StreamSource to the Transformer and I am using a
> URIResolver. The resolver is getting called to resolve the document('')
> reference. It is getting called with both the baseURI and the SystemId set
> to null. I am giving back my original stylesheet again in a StreamSource.
> But Xalan does not run the transformation well giving the  errors:
> SystemId Unknown; Line #386; Column #137; Can not make URL from: null
> SystemId Unknown; Line #386; Column #137; Can not load requested doc: null
> 
> Using Saxon this works well.
> How can I solve this issue in Xalan without using a temporary file for the
> xslt stylesheet?
> 
> Thanks
> Dick Deneer
> --
> View this message in context: http://old.nabble.com/document%28%27%27%29-
> tp27358470p27358470.html
> Sent from the Xalan - J - Users mailing list archive at Nabble.com.


Reply via email to