Hi ...

I'm trying to use xslt service but I got the following exception .....
I noticed that the problem is with '�' ( if I replace it by just 'e' it works fine)

What am I doing wrong?

Horrible Exception: java.io.CharConversionException: 
file:///F:/cvs/upsight/templates/app/xsl/test.xsl:5: illegal utf8 encoding at 0xea 
0x0d 0x0a
        at com.caucho.xml.readers.Utf8Reader.error(Utf8Reader.java:175)
        at com.caucho.xml.readers.Utf8Reader.readSecond(Utf8Reader.java:127)
        at com.caucho.xml.readers.Utf8Reader.read(Utf8Reader.java:105)
        at com.caucho.xml.readers.MacroReader.read(MacroReader.java:185)
        at com.caucho.xml.XmlParser.parseNode(XmlParser.java:308)
        at com.caucho.xml.XmlParser.parseInt(XmlParser.java:246)
        at com.caucho.xml.AbstractParser.parse(AbstractParser.java:690)
        at com.caucho.xml.AbstractParser.parseDocument(AbstractParser.java:860)
        at com.caucho.xml.AbstractParser.parseDocument(AbstractParser.java:833)
        at com.caucho.xsl.Xsl.parseXSL(Xsl.java:104)
        at 
com.caucho.xsl.AbstractStylesheetFactory.newTemplates(AbstractStylesheetFactory.java:579)
        at 
org.apache.turbine.services.xslt.TurbineXSLTService.compileTemplates(TurbineXSLTService.java:186)
        at 
org.apache.turbine.services.xslt.TurbineXSLTService.getTemplates(TurbineXSLTService.java:214)
        at 
org.apache.turbine.services.xslt.TurbineXSLTService.transform(TurbineXSLTService.java:229)
        at 
org.apache.turbine.services.xslt.TurbineXSLTService.transform(TurbineXSLTService.java:255)
        at org.apache.turbine.services.xslt.TurbineXSLT.transform(TurbineXSLT.java:86)
        at 
org.apache.turbine.modules.layouts.VelocityXslLayout.doBuild(VelocityXslLayout.java:147)
        at org.apache.turbine.modules.Layout.build(Layout.java:91)
        at org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:138)
        at org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:187)
        at org.apache.turbine.modules.Page.build(Page.java:91)
        at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:136)
        at org.apache.turbine.Turbine.doGet(Turbine.java:796)
        at org.apache.turbine.Turbine.doPost(Turbine.java:891)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
        at com.caucho.server.http.Invocation.service(Invocation.java:315)
        at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
        at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
        at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
        at java.lang.Thread.run(Thread.java:534)



This is my test.xsl

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:template match="/">
  <html>
  <body>
        �
  </body>
  </html>
</xsl:template>
</xsl:stylesheet>


This is my test.vm

<?xml version="1.0" encoding="ISO-8859-1"?>
<test>foo</test>


Thanks 
Diogo

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to