[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Re: JAXP and docbook-xsl Stylesheets
I hate to keep this going, but in the docbook stylesheets it has: <xsl:output method="xml" encoding="UTF-8" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/> Since I had to change the Transformer to ISO-8859-1 to get things to work, shouldn't the docbook-xsl stylesheets have encoding="ISO-8859-1" instead of UTF-8? -- Don ----- Original Message ----- From: "Jirka Kosek" <jirka@kosek.cz> To: "Don Adams" <dga@sgi.com> Cc: <fop-users@xmlgraphics.apache.org>; <docbook-apps@lists.oasis-open.org> Sent: Thursday, September 14, 2006 4:09 AM Subject: Re: [docbook-apps] Re: JAXP and docbook-xsl Stylesheets 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 ------------------------------------------------------------------ Profesionalnm 9kolenm a poradenstvm v oblasti technologim XML. Podmvejte se na na9 novl spu9tln} web http://DocBook.cz Podrobn} pxehled 9kolenm http://xmlguru.cz/skoleni/ ------------------------------------------------------------------ Nejbli>9m termmny 9kolenm: ** XSLT 23.-26.10.2006 ** XML schimata 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 ------------------------------------------------------------------
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]