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:[EMAIL PROTECTED]] > Sent: Thursday, June 27, 2002 11:29 AM > To: [EMAIL PROTECTED] > 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 > > > > >
