docbook-apps

  • 1.  Re: JAXP and docbook-xsl Stylesheets

    Posted 09-13-2006 20:46

    Simon,

    A HUGE thank you! Yes, after spending hours
    trying to figure this out, all I needed to
    do was change this:

    transformer.setOutputProperty(OutputKeys.ENCODING,"UTF-8");

    to this:

    transformer.setOutputProperty(OutputKeys.ENCODING,"ISO-8859-1");

    --
    Don


    > This sounds like an encoding problem. When your xml
    > file has latin1 encoding (iso-8859-1), non-breaking
    > space is a single character of value A0. When your xml
    > file has utf-8 encoding, non-breaking space consist of
    > two bytes. If you mix both, that is, when the xml file
    > declares utf-8 encoding but non-breaking space is written
    > in the latin-1 manner as a single byte A0, your XML file
    > is not valid.





  • 2.  Re: [docbook-apps] Re: JAXP and docbook-xsl Stylesheets

    Posted 09-14-2006 09:10
    Don Adams wrote:

    > A HUGE thank you! Yes, after spending hours
    > trying to figure this out, all I needed to
    > do was change this:
    >
    > transformer.setOutputProperty(OutputKeys.ENCODING,"UTF-8");
    >
    > to this:
    >
    > transformer.setOutputProperty(OutputKeys.ENCODING,"ISO-8859-1");

    I think that the best is to omit this command completely. Then
    transformer will use encoding specified in stylesheet by <xsl:output
    encoding="..."/> and you can be sure that there will not be encoding
    mismatch.

    --
    ------------------------------------------------------------------
    Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz
    ------------------------------------------------------------------
    Profesionální školení a poradenství v oblasti technologií XML.
    Podívejte se na náš nove spuštený web http://DocBook.cz
    Podrobný prehled školení http://xmlguru.cz/skoleni/
    ------------------------------------------------------------------
    Nejbližší termíny školení:
    ** XSLT 23.-26.10.2006 ** XML schémata 13.-15.11.2006 **
    ** DocBook 11.-13.12.2006 ** XSL-FO 11.-12.12.2006 **
    ------------------------------------------------------------------
    http://xmlguru.cz Blog mostly about XML for English readers
    ------------------------------------------------------------------