hgbook

diff xsl/zh/fo.xsl @ 624:3c5e1c03cc3e

Add XSL stylesheets for DocBook
author Dongsheng Song <dongsheng.song@gmail.com>
date Thu Mar 12 15:47:15 2009 +0800 (2009-03-12)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xsl/zh/fo.xsl	Thu Mar 12 15:47:15 2009 +0800
     1.3 @@ -0,0 +1,30 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     1.6 +                xmlns:fo="http://www.w3.org/1999/XSL/Format"
     1.7 +                version='1.0'>
     1.8 +
     1.9 +  <xsl:import href="../fo.xsl"/>
    1.10 +
    1.11 +  <xsl:param name="l10n.gentext.language" select="'zh'"/>
    1.12 +
    1.13 +  <!-- Chinese font related settings -->
    1.14 +  <xsl:param name="body.font.master">12</xsl:param>
    1.15 +
    1.16 +  <xsl:attribute-set name="standard.para.spacing" use-attribute-sets="normal.para.spacing">
    1.17 +    <xsl:attribute name="text-indent">24pt</xsl:attribute>
    1.18 +  </xsl:attribute-set>
    1.19 +
    1.20 +  <xsl:template match="abstract/para|appendix/para|chapter/para|colophon/para|legalnotice/para|preface/para|section/para|sect1/para|sect2/para">
    1.21 +    <fo:block xsl:use-attribute-sets="standard.para.spacing">
    1.22 +      <xsl:call-template name="anchor"/>
    1.23 +      <xsl:apply-templates/>
    1.24 +    </fo:block>
    1.25 +  </xsl:template>
    1.26 +
    1.27 +  <xsl:template match="section/para/*">
    1.28 +    <fo:wrapper text-indent="0pt">
    1.29 +      <xsl:apply-imports/>
    1.30 +    </fo:wrapper>
    1.31 +  </xsl:template>
    1.32 +
    1.33 +</xsl:stylesheet>