JAXP entity problem

Discussion in 'XML' started by Bloody Viking, Jan 6, 2005.

  1. I'm using a variation on Donald Leslie's
    JAXPTransletMultipleTransformations.java
    (http://www.cs.helsinki.fi/group/xml...ets/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"/>
     
    Bloody Viking, Jan 6, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bjoern Wolter

    Problem with external DTD and JAXP

    Bjoern Wolter, Feb 11, 2004, in forum: Java
    Replies:
    0
    Views:
    413
    Bjoern Wolter
    Feb 11, 2004
  2. Samuel van Laere

    Entity Name or Entity Number?

    Samuel van Laere, Feb 24, 2007, in forum: HTML
    Replies:
    4
    Views:
    1,643
    Jukka K. Korpela
    Feb 24, 2007
  3. markla
    Replies:
    1
    Views:
    552
    Steven Cheng
    Oct 6, 2008
  4. Norm
    Replies:
    3
    Views:
    2,733
  5. ThatsIT.net.au

    Entity, problem with entity key

    ThatsIT.net.au, Sep 6, 2009, in forum: ASP .Net
    Replies:
    1
    Views:
    1,202
    ThatsIT.net.au
    Sep 7, 2009
Loading...

Share This Page