[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]