Sha256: aab09b2893a18a7d2a9748a6457c47dfa12cc18dd9b1576888ae9570bb943418

Contents?: true

Size: 1.81 KB

Versions: 4

Compression:

Stored size: 1.81 KB

Contents

<?xml version="1.0" encoding="utf-8"?>
<!--  $Id: styles.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">

<!-- This template is based on something in a Docbook XSL file. -->
  <xsl:template match="pre|source-code-listing">
    <fo:block wrap-option="no-wrap"
      font-family="monospace"
      text-align="start"
      white-space-collapse="false"
      linefeed-treatment="preserve">
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="b">
    <fo:inline font-weight="bold">
      <xsl:apply-templates/>
    </fo:inline>
  </xsl:template>

  <xsl:template match="em">
    <fo:inline font-weight="bold">
      <xsl:apply-templates/>
    </fo:inline>
  </xsl:template>

  <xsl:template match="path|dtm-created|dtm-modified|
                       file/@name|required-file/@name
                       |tt">
    <fo:inline font-family="monospace">
      <xsl:value-of select="."/>
    </fo:inline>
  </xsl:template>

  <xsl:template match="h1">
    <fo:block font-family="Helvetica" font-size="18pt" 
      space-before="12pt" space-after="6pt">
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="h2">
    <fo:block font-family="Helvetica" font-size="14pt" 
      space-before="6pt" space-after="4pt">
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template name="hr">
    <fo:block>
      <fo:inline>
        <fo:leader leader-length="6.5in" leader-pattern="rule"
          leader-pattern-width="1pt"/>
      </fo:inline>
    </fo:block>
  </xsl:template>

  <xsl:template match="p">
    <fo:block space-after="12pt">
      <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/styles.xsl
sqlpostgres-1.2.6 tools/rdoc/contrib/xslfo/styles.xsl
sqlpostgres-1.2.5 tools/rdoc/contrib/xslfo/styles.xsl
sqlpostgres-1.2.4 tools/rdoc/contrib/xslfo/styles.xsl