annotate docs/stylesheets/article.xsl @ 2569:d139f4b0b123

Copied from coco3 bootlists
author boisy
date Sun, 03 Apr 2011 16:12:55 +0000
parents bc28c3bc3769
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1148
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1 <?xml version="1.0"?>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
2 <!--
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
3 This is an example of an xmlto stylesheet module to be use when generating PDF
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
4 you call it with xmtto pdf -m article.xsl articles.docbook
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
5 I don't think it works
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
6 -->
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
7 <xsl:stylesheet xsl:version='1.0'
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
8 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
9 xmlns:fo="http://www.w3.org/1999/XSL/Format">
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
10
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
11 <xsl:template match="articleinfo/title">
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
12 <fo:block font-family="sans-serif" color="blue"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
13 font-weight="bold" font-size="18pt"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
14 space-after="0.5em">
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
15 <xsl:number level="multiple" count="chapter"/>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
16 <xsl:text> </xsl:text>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
17 <xsl:apply-templates/>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
18 </fo:block>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
19 </xsl:template>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
20 </xsl:stylesheet>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
21