Mercurial > hgbook
annotate stylesheets/zh/fo.xsl @ 792:72eab2497e12
Propagate cd595464fea9
Added a source for Solaris Mercurial binaries
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 18 Jun 2009 16:23:58 +0900 |
parents | bae6d1503482 |
children |
rev | line source |
---|---|
723
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
3 xmlns:fo="http://www.w3.org/1999/XSL/Format" |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
4 version='1.0'> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
5 |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
6 <xsl:import href="../fo.xsl"/> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
7 |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
8 <xsl:param name="l10n.gentext.language" select="'zh'"/> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
9 |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
10 <!-- Chinese font related settings --> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
11 <xsl:param name="body.font.master">12</xsl:param> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
12 |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
13 <xsl:attribute-set name="standard.para.spacing" use-attribute-sets="normal.para.spacing"> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
14 <xsl:attribute name="text-indent">24pt</xsl:attribute> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
15 </xsl:attribute-set> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
16 |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
17 <xsl:template match="abstract/para|appendix/para|chapter/para|colophon/para|legalnotice/para|preface/para|section/para|sect1/para|sect2/para"> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
18 <fo:block xsl:use-attribute-sets="standard.para.spacing"> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
19 <xsl:call-template name="anchor"/> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
20 <xsl:apply-templates/> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
21 </fo:block> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
22 </xsl:template> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
23 |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
24 <xsl:template match="section/para/*"> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
25 <fo:wrapper text-indent="0pt"> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
26 <xsl:apply-imports/> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
27 </fo:wrapper> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
28 </xsl:template> |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
29 |
3c5e1c03cc3e
Add XSL stylesheets for DocBook
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff
changeset
|
30 </xsl:stylesheet> |