This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]