I think I found a good solution. I am giving the "fake"
"urn:xslt:currentsource" as SystemId when setting the initial StreamSource
to the transformer. Now everything works fine !!

Thanks
Dick Deneer

Dick Deneer wrote:
> 
> 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-tp27358470p27358563.html
Sent from the Xalan - J - Users mailing list archive at Nabble.com.

Reply via email to