> Hello, > My file XML is : > <?xml version="1.0" encoding="ISO-8859-1"?> > <etudiant> > <sexe>F�minin</sexe> > <adresse>Montr�al > </etudiant> > > > My file XSL is : > <?xml version="1.0" encoding='ISO-8859-1' ?> > <xsl:stylesheet version='1.0' > xmlns:xsl='" target="l">http://www.w3.org/1999/XSL/Transform'> > <xsl:output method='html' indent='yes' encoding='ISO-8859-1' > doctype-public= '-//W3C//DTD HTMl 4.1 Final //EN'/> > ... > <OPTION selected=""><xsl:value-of select="//sexe/node()"/> > </OPTION> > <OPTION >F�minin</OPTION> > <OPTION>Masculin</OPTION> > </SELECT> > <INPUT TYPE="text"> > <xsl:attribute name="VALUE"><xsl:value-of select=" > </xsl:attribute> > </INPUT> > The output html is > F�minin > Montrél > > I dont know why the sexe is ok and adresse not. Maybe the cause is > the > type (<option> for sexe , <input type="text" for adresse>) Or if > the > problem is XSL enconding or Transform XSLT encoding with Xalan : > > The java source code is : > response.setContentType("text/html; charset=ISO-8859-1"); > OutputStream out = response.getOutputStream(); > Writer w = new OutputStreamWriter(out,"ISO-8859-1"); > try > { > TransformerFactory tFactory = TransformerFactory.newInstance(); > Transformer transformer =tFactory.newTransformer(new StreamSource > (Xsl)); > transformer.transform(new StreamSource(pathXml),new StreamResult(w)); > } > catch (Exception e) > { > w.write(e.getMessage()); > e.printStackTrace(); > } > w.close(); > out.close(); > } > > Note : I have not this problem under windows only under unix > > Thank you very much > Jean-Baptiste
