← Prev in month ← Prev in thread

output doctype using saxon

From
Tim Arnold <>
Date
2012-06-23T15:48:08+00:00
ID
CA+O6OTD+Y=fzKmVXAi68wx6Y=b3HoQrOEVF-XuRfTvYv==+
Thread
output doctype using saxon
hi,
I am trying to get the doctype output in my html; I'm using saxon655.
I'm outputting cp1252 encoding with this command:

java -cp /saxon655/saxon.jar:/docbook/xsl-1.76.1/extensions/saxon65.jar \
      -Dencoding.windows-1252=com.nwalsh.saxon.Windows1252
com.icl.saxon.StyleSheet \
         myfile.xml main.xsl  saxon.character.representation=native

My customization looks like this (appended below), but no doctype is
output. fwiw, I also tried adding the saxon namespace and using this
element: <xsl:output method="saxon"xhtml" />, but that had no effect
either (I put it just after my imports, before the includes)

thanks for any suggestions!
--Tim

------------------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:d="http://docbook.org/ns/docbook"
                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
                xmlns:exsl="http://exslt.org/common"
                xmlns:set="http://exslt.org/sets"
                version="1.0"
                exclude-result-prefixes="doc exsl set d">

  <xsl:import href="../../xsl-1.76.1/html/docbook.xsl" />
  <xsl:import href="../mylocalparams.xsl" />
  <xsl:import href="../../xsl-1.76.1/html/chunk-common.xsl" />
  <xsl:include href="../../xsl-1.76.1/html/chunk-code.xsl" />
  <xsl:output method="xml"
 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
 doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="yes"/>
------------------
← Prev in month ← Prev in thread