diff summa/bilingual/bi.xsl @ 1:d3a06d7753d9

*** empty log message ***
author ht
date Sat, 19 Jan 2008 22:55:49 +0000
parents
children 13afc48b0e87
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/summa/bilingual/bi.xsl	Sat Jan 19 22:55:49 2008 +0000
@@ -0,0 +1,40 @@
+<?xml version='1.0'?>
+<!DOCTYPE doc SYSTEM "../../../../lib/xml/xsl.dtd" >
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:template match="/">
+  <html>
+   <head>
+    <title>
+     <xsl:text>Bilingual Aquinas</xsl:text>
+     <xsl:value-of select="div2/div3/h3"/>
+    </title>
+   </head>
+   <body>
+    <xsl:apply-templates/>
+   </body>
+  </html>
+ </xsl:template>
+ 
+ <xsl:template match="div2|div3|div4">
+  <div>
+   <xsl:apply-templates select="node()|@*"/>
+  </div>
+ </xsl:template>
+ 
+ <xsl:template match="div[@class='bilingual']"><div style="clear: both; margin-top: 1em">
+  <div style="width: 48%; float: right"><xsl:apply-templates select="*[2]"/></div>
+  <div style="width: 95%"><xsl:apply-templates select="*[1]"/></div></div>
+ </xsl:template>
+ 
+ <xsl:template match="*">
+  <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
+   <xsl:apply-templates select="node()|@*"/>
+  </xsl:element>
+ </xsl:template>
+ 
+ <xsl:template match="text()|comment()|processing-instruction()|@*">
+  <xsl:copy>
+   <xsl:apply-templates select="node()|@*"/>
+  </xsl:copy>
+ </xsl:template>
+</xsl:stylesheet>