|
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>
|
|
|
11 </head>
|
|
|
12 <body>
|
|
|
13 <xsl:apply-templates/>
|
|
|
14 </body>
|
|
|
15 </html>
|
|
|
16 </xsl:template>
|
|
|
17
|
|
|
18 <xsl:template match="div2|div3|div4">
|
|
|
19 <div>
|
|
|
20 <xsl:apply-templates select="node()|@*"/>
|
|
|
21 </div>
|
|
|
22 </xsl:template>
|
|
|
23
|
|
|
24 <xsl:template match="div[@class='bilingual']"><div style="clear: both; margin-top: 1em">
|
|
|
25 <div style="width: 48%; float: right"><xsl:apply-templates select="*[2]"/></div>
|
|
|
26 <div style="width: 95%"><xsl:apply-templates select="*[1]"/></div></div>
|
|
|
27 </xsl:template>
|
|
|
28
|
|
|
29 <xsl:template match="*">
|
|
|
30 <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
|
|
|
31 <xsl:apply-templates select="node()|@*"/>
|
|
|
32 </xsl:element>
|
|
|
33 </xsl:template>
|
|
|
34
|
|
|
35 <xsl:template match="text()|comment()|processing-instruction()|@*">
|
|
|
36 <xsl:copy>
|
|
|
37 <xsl:apply-templates select="node()|@*"/>
|
|
|
38 </xsl:copy>
|
|
|
39 </xsl:template>
|
|
|
40 </xsl:stylesheet>
|