Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   JAXP entity problem (http://www.velocityreviews.com/forums/t168538-jaxp-entity-problem.html)

Bloody Viking 01-06-2005 10:33 PM

JAXP entity problem
 
I'm using a variation on Donald Leslie's
JAXPTransletMultipleTransformations.java
(http://www.cs.helsinki.fi/group/xmlt...rmations.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:output method="html" indent="no" version="4.0"
encoding="ISO-8859-1"/>



All times are GMT. The time now is 12:08 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.