JAXP entity problem

B

Bloody Viking

I'm using a variation on Donald Leslie's
JAXPTransletMultipleTransformations.java
(http://www.cs.helsinki.fi/group/xml...lets/JAXPTransletMultipleTransformations.java),
and it seems to work just fine. But then I copied it, the xml and the
xslt over to another machine (both SPARC boxes) and got a strange
result: character entities are getting translated strangely. For
instance, ê is translated to \352, and â to \342. Any idea
what might cause this?

When I process the same XML with the same XSLT from the command-line
with
java org.apache.xalan.xslt.Process
it works correctly (on either machine).

Why?

The first few lines of my XSLT follows. I tried changing the encoding
to "UTF-8" or "UTF-16". That didn't change the results.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:str="http://xsltsl.org/string" version="1.0">
<xsl:import href="string.xsl"/>
<xsl:eek:utput method="html" indent="no" version="4.0"
encoding="ISO-8859-1"/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top