OK, found another tip from
http://www.dpawson.co.uk/docbook/styling/custom.html:
<xsl:template match="*" mode="process.root">
<xsl:call-template name="root.messages"/>
<xsl:apply-templates select="."/>
</xsl:template>
This gives me a root node of <div class="article"> in the output, BUT I
still get this before it:
<?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 supress that as well? This content is going into an existing
site built with PHP.
Thanks.
On 6/12/2007 3:05 PM, Brett Leber wrote:
Hello,
I'd like to output only the content of the xhtml document's <body> (ie,
no <html>, <head>, or <body> tags). I found an old post that seemed to
be what I needed, but the XSL customization didn't work for me (granted,
it's 5 years old):
Subject: Re: DOCBOOK-APPS: Removing <html>,<head> & <body>
* From: Gisbert Amm <[EMAIL PROTECTED]>
* To: Fredrik Svensson <[EMAIL PROTECTED]>
* Date: Wed, 04 Sep 2002 10:21:26 +0200
> Currently the HTML head stuff is output by
> this template in html/docbook.xsl:
>
> <xsl:template match="*" mode="process.root">
>
> If you only want to modify this for articles,
> you could add a template in mode "process.root"
> to your html customization layer:
> <xsl:template match="article" mode="process.root">
> <xsl:apply-templates select="."/>
> </xsl:template>
> Then it will not output the <head><body> stuff, but
> it will process everything in the document
> as html.
I'm using the DocBook 5 stylesheets, and xhtml/docbook.xsl. Any hints?
thanks,
Brett
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]