hgbook
annotate stylesheets/zh/fo.xsl @ 791:bf84d6b2281c
Minor changes and translation of code snippets for Ch.7.
author | Giulio@puck |
---|---|
date | Tue Aug 11 23:01:30 2009 +0200 (2009-08-11) |
parents | 3c5e1c03cc3e |
children | 8a2b0994ccd9 |
rev | line source |
---|---|
dongsheng@624 | 1 <?xml version="1.0"?> |
dongsheng@624 | 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
dongsheng@624 | 3 xmlns:fo="http://www.w3.org/1999/XSL/Format" |
dongsheng@624 | 4 version='1.0'> |
dongsheng@624 | 5 |
dongsheng@624 | 6 <xsl:import href="../fo.xsl"/> |
dongsheng@624 | 7 |
dongsheng@624 | 8 <xsl:param name="l10n.gentext.language" select="'zh'"/> |
dongsheng@624 | 9 |
dongsheng@624 | 10 <!-- Chinese font related settings --> |
dongsheng@624 | 11 <xsl:param name="body.font.master">12</xsl:param> |
dongsheng@624 | 12 |
dongsheng@624 | 13 <xsl:attribute-set name="standard.para.spacing" use-attribute-sets="normal.para.spacing"> |
dongsheng@624 | 14 <xsl:attribute name="text-indent">24pt</xsl:attribute> |
dongsheng@624 | 15 </xsl:attribute-set> |
dongsheng@624 | 16 |
dongsheng@624 | 17 <xsl:template match="abstract/para|appendix/para|chapter/para|colophon/para|legalnotice/para|preface/para|section/para|sect1/para|sect2/para"> |
dongsheng@624 | 18 <fo:block xsl:use-attribute-sets="standard.para.spacing"> |
dongsheng@624 | 19 <xsl:call-template name="anchor"/> |
dongsheng@624 | 20 <xsl:apply-templates/> |
dongsheng@624 | 21 </fo:block> |
dongsheng@624 | 22 </xsl:template> |
dongsheng@624 | 23 |
dongsheng@624 | 24 <xsl:template match="section/para/*"> |
dongsheng@624 | 25 <fo:wrapper text-indent="0pt"> |
dongsheng@624 | 26 <xsl:apply-imports/> |
dongsheng@624 | 27 </fo:wrapper> |
dongsheng@624 | 28 </xsl:template> |
dongsheng@624 | 29 |
dongsheng@624 | 30 </xsl:stylesheet> |