|
1
|
1 <?xml version='1.0'?>
|
|
|
2 <!DOCTYPE doc SYSTEM "../../../../lib/xml/xsl.dtd" >
|
|
|
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>
|
|
|
12 h2, h3, h4 {margin-bottom: 0px}
|
|
|
13 </style>
|
|
1
|
14 </head>
|
|
|
15 <body>
|
|
|
16 <xsl:apply-templates/>
|
|
|
17 </body>
|
|
|
18 </html>
|
|
|
19 </xsl:template>
|
|
|
20
|
|
|
21 <xsl:template match="div2|div3|div4">
|
|
7
|
22 <div style="clear: left">
|
|
1
|
23 <xsl:apply-templates select="node()|@*"/>
|
|
|
24 </div>
|
|
|
25 </xsl:template>
|
|
|
26
|
|
7
|
27 <xsl:template match="div[@class='bilingual']"><div style="clear: both">
|
|
|
28 <div style="width: 48%; 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>
|
|
1
|
30 </xsl:template>
|
|
|
31
|
|
|
32 <xsl:template match="*">
|
|
|
33 <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
|
|
|
34 <xsl:apply-templates select="node()|@*"/>
|
|
|
35 </xsl:element>
|
|
|
36 </xsl:template>
|
|
|
37
|
|
|
38 <xsl:template match="text()|comment()|processing-instruction()|@*">
|
|
|
39 <xsl:copy>
|
|
|
40 <xsl:apply-templates select="node()|@*"/>
|
|
|
41 </xsl:copy>
|
|
|
42 </xsl:template>
|
|
|
43 </xsl:stylesheet>
|