[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] suppressing everything but the content of <body>in xhtml output
MJ, Thanks very much. Brett On 6/26/2007 10:43 AM, Mauritz Jeanson wrote: >> -----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 > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]