Hi David,

David Sherman wrote:

>Hi there
>
>I hope this is the right list to post dev-questions, if not, please could someone 
>inform me otherwise.
>
>Has anyone got any info on how to use the setURIResolver and (URIResolver). I am 
>merging XSL and XML to form a HTML document and using alot of xsl:import's but it 
>cant find the import files, so I need to setup a URI resolver. Any help, code samples 
>most welcome!
>
    One common problem that may be impacting you is that if you create 
your StreamSource from a input stream e.g. a FileInputStream or from a 
reader ( a StringReader ) rather than a File or a URL then you need to 
tell the StreamSource the original location of the stylesheet by calling 
setSystemId() if it going to know where to look for imported files.

    If you look at the method exampleFromStream in 
samples/trax/Examples.java it will show you what you need to do.

        Regards,

            Padraig

>
>
>Thanks
>
>Dave Sherman
>
>
>



Reply via email to