|
1
|
1 <?xml version='1.0'?>
|
|
45
|
2 <!DOCTYPE xsl:stylesheet SYSTEM "../../../../lib/xml/xsl.dtd" >
|
|
1
|
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/1999/xhtml">
|
|
|
4 <xsl:template match="/">
|
|
|
5 <html>
|
|
|
6 <head>
|
|
|
7 <title>
|
|
|
8 <xsl:text>Bilingual Aquinas</xsl:text>
|
|
|
9 <xsl:value-of select="div2/div3/h3"/>
|
|
|
10 </title>
|
|
7
|
11 <style>
|
|
11
|
12 h2, h3, h4 {margin-bottom: 0px; clear: both}
|
|
|
13 @page { size: A4 portrait; margin: 1cm}
|
|
7
|
14 </style>
|
|
1
|
15 </head>
|
|
11
|
16 <body style="font-family: Bitstream Vera Serif">
|
|
1
|
17 <xsl:apply-templates/>
|
|
|
18 </body>
|
|
|
19 </html>
|
|
|
20 </xsl:template>
|
|
|
21
|
|
|
22 <xsl:template match="div2|div3|div4">
|
|
11
|
23 <div>
|
|
1
|
24 <xsl:apply-templates select="node()|@*"/>
|
|
|
25 </div>
|
|
|
26 </xsl:template>
|
|
|
27
|
|
11
|
28 <xsl:template match="div[@class='bilingual']"><div style="clear: both; margin-top: .5em">
|
|
|
29 <div style="width: 45%; float: left"><xsl:apply-templates select="*[1]"/></div>
|
|
|
30 <div style="width: 45%; float: right"><xsl:apply-templates select="*[2]"/></div></div>
|
|
1
|
31 </xsl:template>
|
|
|
32
|
|
|
33 <xsl:template match="*">
|
|
|
34 <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
|
|
|
35 <xsl:apply-templates select="node()|@*"/>
|
|
|
36 </xsl:element>
|
|
|
37 </xsl:template>
|
|
|
38
|
|
|
39 <xsl:template match="text()|comment()|processing-instruction()|@*">
|
|
|
40 <xsl:copy>
|
|
|
41 <xsl:apply-templates select="node()|@*"/>
|
|
|
42 </xsl:copy>
|
|
|
43 </xsl:template>
|
|
|
44 </xsl:stylesheet>
|