You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "DZIEMBOWSKI,KINGA (HP-NewJersey,ex2)" <ki...@hp.com> on 2002/06/27 22:15:51 UTC

RE: [Xalan 2.1.0] TransformerConfigurationException if path conta ins accent characters

Hi,
It looks as a similar problem to mine posted few days ago as [transformation
fails for path containing ü].
I am waiting for some word on it.
Kinga 

> -----Original Message-----
> From: nelson coelho [mailto:nelsounet@free.fr]
> Sent: Thursday, June 27, 2002 11:29 AM
> To: xalan-dev@xml.apache.org
> Subject: [Xalan 2.1.0] TransformerConfigurationException if path
> contains accent characters
> 
> 
> > 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
> >
> >
>