Next in thread →
Next in month →
Re: [docbook-apps] Re: JAXP and docbook-xsl Stylesheets
Don Adams wrote: > 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? As I said previously, there is probably problem in your JAXP code or JAXP implementation you are using. If I do: TransformerFactory trf = TransformerFactory.newInstance(); Transformer transformer = trf.newTransformer(new StreamSource(".../docbook-xsl/xhtml/docbook.xsl")); transformer.transform(new StreamSource("docbook-document.xml"), new StreamResult("output.xhtml)); I get output in proper encoding, which is same as one specified by <xsl:output/>. But this problem is not DocBook related, it's related to JAXP interface or underlying implementation of JAXP (Xalan, Saxon, ...). You can get more help on list devoted to those technologies. Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: http://www.kosek.cz ------------------------------------------------------------------ Profesionální školení a poradenství v oblasti technologií XML. Podívejte se na náš nově spuštěný web http://DocBook.cz Podrobný přehled š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 ------------------------------------------------------------------
Next in thread →
Next in month →