comparison summa/bilingual/bi.xsl @ 11:a2740f999f93

better printing?
author ht
date Thu, 05 Jun 2008 08:46:54 +0000
parents 13afc48b0e87
children a768840ee9ff
comparison
equal deleted inserted replaced
10:c102f6bf9d04 11:a2740f999f93
7 <title> 7 <title>
8 <xsl:text>Bilingual Aquinas</xsl:text> 8 <xsl:text>Bilingual Aquinas</xsl:text>
9 <xsl:value-of select="div2/div3/h3"/> 9 <xsl:value-of select="div2/div3/h3"/>
10 </title> 10 </title>
11 <style> 11 <style>
12 h2, h3, h4 {margin-bottom: 0px} 12 h2, h3, h4 {margin-bottom: 0px; clear: both}
13 @page { size: A4 portrait; margin: 1cm}
13 </style> 14 </style>
14 </head> 15 </head>
15 <body> 16 <body style="font-family: Bitstream Vera Serif">
16 <xsl:apply-templates/> 17 <xsl:apply-templates/>
17 </body> 18 </body>
18 </html> 19 </html>
19 </xsl:template> 20 </xsl:template>
20 21
21 <xsl:template match="div2|div3|div4"> 22 <xsl:template match="div2|div3|div4">
22 <div style="clear: left"> 23 <div>
23 <xsl:apply-templates select="node()|@*"/> 24 <xsl:apply-templates select="node()|@*"/>
24 </div> 25 </div>
25 </xsl:template> 26 </xsl:template>
26 27
27 <xsl:template match="div[@class='bilingual']"><div style="clear: both"> 28 <xsl:template match="div[@class='bilingual']"><div style="clear: both; margin-top: .5em">
28 <div style="width: 48%; float: left"><xsl:apply-templates select="*[1]"/></div> 29 <div style="width: 45%; float: left"><xsl:apply-templates select="*[1]"/></div>
29 <div style="width: 48%; float: left; margin-left: 2em"><xsl:apply-templates select="*[2]"/></div></div> 30 <div style="width: 45%; float: right"><xsl:apply-templates select="*[2]"/></div></div>
30 </xsl:template> 31 </xsl:template>
31 32
32 <xsl:template match="*"> 33 <xsl:template match="*">
33 <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml"> 34 <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
34 <xsl:apply-templates select="node()|@*"/> 35 <xsl:apply-templates select="node()|@*"/>