OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


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

S/MIME Cryptographic Signature



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]