RE: [docbook-apps] suppressing everything but the content of <body> in xhtml output

From
Mauritz Jeanson <>
Date
2007-06-26T14:43:27+00:00
ID
001201c7b800$5059ed50$71ea1a51@D7MZ171J
Thread
RE: [docbook-apps] suppressing everything but the content of <body> in xhtml output
> -----Original Message-----
> From: Brett Leber 
> 
> Your XSL works, but I get the following at the top of the file, which 
> I'd also like to suppress:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE div PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\
> 
> How can I do that?


You can't do that using XSLT. The DOCTYPE declaration comes from
<xsl:output> in xhtml/docbook.xsl. There is no way of completely suppressing
it in a customization layer. You can do this:

 <xsl:output omit-xml-declaration="yes" doctype-public=""
doctype-system=""/>

But that will still leave

 <!DOCTYPE div PUBLIC "" "">

in the output. 

/MJ