Sha256: 95f70465a01070f85c11d088bbb747984157667de41f7ebcf1020034b5b9c083

Contents?: true

Size: 1.64 KB

Versions: 4

Compression:

Stored size: 1.64 KB

Contents

<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: fcm.xsl,v 1.1 2003/10/10 08:00:05 wconrad Exp $ -->
<!-- $Author: wconrad $ -->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:fo="http://www.w3.org/1999/XSL/Format"
  version="1.0">

  <!-- Handling for file, Class, or Module, from their
       respective lists -->

  <xsl:template match="file-list/file|Class|Module">
    <fo:block space-after="24pt">
      <xsl:attribute name="id">
        <xsl:value-of select="@id"/>
      </xsl:attribute>
      <xsl:call-template name="hr"/>
      <fo:inline font-family="monospace" font-weight="bold">
        <xsl:value-of select="@name"/>
      </fo:inline>
      <fo:block start-indent="6pt">
        <xsl:apply-templates select="*[name() != 'description']"/>
        <xsl:apply-templates select="*[name() = 'description']"/>
      </fo:block>
    </fo:block>
  </xsl:template>

  <xsl:template match="description">
    <fo:block space-before="12pt" space-after="6pt" font-weight="bold"
      start-indent="0pt">
      <xsl:call-template name="labeled-list">
        <xsl:with-param name="label">Description</xsl:with-param>
        <xsl:with-param name="style">normal</xsl:with-param>
      </xsl:call-template>
    </fo:block>
    <fo:block margin-right="36pt" font-size="9pt"
      text-align="justify">
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="file/contents">
    <fo:block start-indent="0pt">
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="Class/contents|Module/contents">
    <fo:block>
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

</xsl:stylesheet>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sqlpostgres-1.3.0 tools/rdoc/contrib/xslfo/fcm.xsl
sqlpostgres-1.2.6 tools/rdoc/contrib/xslfo/fcm.xsl
sqlpostgres-1.2.5 tools/rdoc/contrib/xslfo/fcm.xsl
sqlpostgres-1.2.4 tools/rdoc/contrib/xslfo/fcm.xsl