> Hello

> here is a sample which recreates an TransformerConfigurationException :

>  File xslsource = new File("c:\\temp\\a�iou.xsl");
>  StreamSource asource = new StreamSource(xslsource);
>  this.fTransformer = transformerfactory.newTransformer(asource);
>
> with message : Path contains invalid character: �
>
> I would like to find a solution to do this work. But first, it is this
> Exception normal?
>
> I tried by giving a FileStream instead of a file to the Streamsource :
> StreamSource asource = new StreamSource(new FileInputStream(xslsource));
> there's errors because others files declared by this file were not found.
I
> create then an URIResolver that fix it
> but i still have problems on transform : no errors, but the result isn't
the
> same if the path as no accent characters.......
>
> An other way, maybe by giving directly the absolute path as url? But how
to
> do?
> I tried something like this :
>
> String xslsourcestring =
> "file:///"+URLEncoder.encode(xslsource.getAbsoluthPath()));
>  StreamSource asource = new StreamSource(xslsourcestring);
> But i think that the string given is not "well-formed"...
>
> Thanks if you find some solution.
> What surprised me is that i found no bug in Bugzilla talking about this...
>
> Nelson
>
>

Reply via email to