This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
FW: [docbook-apps] Separate files for each table.
- From: "McKinstry, Scott A" <scott dot a dot mckinstry at lmco dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 06 Apr 2004 07:25:02 -0400
- Subject: FW: [docbook-apps] Separate files for each table.
The solution below gives me the ERROR:
"org.xml.sax.SAXException: Failed to create output file"
Is this because I am in effect trying to write two files at the same
time, the chapter chunk and this table file? Is there another solution?
-----Original Message-----
From: Jirka Kosek [mailto:jirka@kosek.cz]
Sent: Monday, April 05, 2004 2:30 PM
To: McKinstry, Scott A
Cc: docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] Separate files for each table.
McKinstry, Scott A wrote:
> I am trying to get the html stylesheets to produce a chapter chunk
minus the tables.
> I need each table to be output as a separate html file, extracted from
the main html file with
> links in the place of the table.
Add following to your customization layer:
<xsl:template match="table">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<a href="table-{$id}.html"><xsl:value-of select="title"/></a>
<xsl:call-template name="write.chunk">
<xsl:with-param name="filename" select="table-{$id}.html"/>
<xsl:with-param name="content">
<html>
<head>...</head>
<body>
<xsl:apply-imports/>
</body>
</html>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.