Next in thread → Next in month →

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

From
Brett Leber <>
Date
2007-06-26T14:57:59+00:00
ID
Thread
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
> 
>
Next in thread → Next in month →