Mercurial > hg > Aquinas
view summa/bilingual/bi.xsl @ 4:b2ab7dba8d3a
trivial markup fix
| author | ht |
|---|---|
| date | Sun, 27 Jan 2008 16:56:42 +0000 |
| parents | d3a06d7753d9 |
| children | 13afc48b0e87 |
line wrap: on
line source
<?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>
