Mercurial > hg > Aquinas
comparison summa/bilingual/bi.xsl @ 7:13afc48b0e87
cleaner columns, vert. spacing
| author | ht |
|---|---|
| date | Thu, 17 Apr 2008 22:19:02 +0000 |
| parents | d3a06d7753d9 |
| children | a2740f999f93 |
comparison
equal
deleted
inserted
replaced
| 6:929b4153a4aa | 7:13afc48b0e87 |
|---|---|
| 6 <head> | 6 <head> |
| 7 <title> | 7 <title> |
| 8 <xsl:text>Bilingual Aquinas</xsl:text> | 8 <xsl:text>Bilingual Aquinas</xsl:text> |
| 9 <xsl:value-of select="div2/div3/h3"/> | 9 <xsl:value-of select="div2/div3/h3"/> |
| 10 </title> | 10 </title> |
| 11 <style> | |
| 12 h2, h3, h4 {margin-bottom: 0px} | |
| 13 </style> | |
| 11 </head> | 14 </head> |
| 12 <body> | 15 <body> |
| 13 <xsl:apply-templates/> | 16 <xsl:apply-templates/> |
| 14 </body> | 17 </body> |
| 15 </html> | 18 </html> |
| 16 </xsl:template> | 19 </xsl:template> |
| 17 | 20 |
| 18 <xsl:template match="div2|div3|div4"> | 21 <xsl:template match="div2|div3|div4"> |
| 19 <div> | 22 <div style="clear: left"> |
| 20 <xsl:apply-templates select="node()|@*"/> | 23 <xsl:apply-templates select="node()|@*"/> |
| 21 </div> | 24 </div> |
| 22 </xsl:template> | 25 </xsl:template> |
| 23 | 26 |
| 24 <xsl:template match="div[@class='bilingual']"><div style="clear: both; margin-top: 1em"> | 27 <xsl:template match="div[@class='bilingual']"><div style="clear: both"> |
| 25 <div style="width: 48%; float: right"><xsl:apply-templates select="*[2]"/></div> | 28 <div style="width: 48%; float: left"><xsl:apply-templates select="*[1]"/></div> |
| 26 <div style="width: 95%"><xsl:apply-templates select="*[1]"/></div></div> | 29 <div style="width: 48%; float: left; margin-left: 2em"><xsl:apply-templates select="*[2]"/></div></div> |
| 27 </xsl:template> | 30 </xsl:template> |
| 28 | 31 |
| 29 <xsl:template match="*"> | 32 <xsl:template match="*"> |
| 30 <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml"> | 33 <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml"> |
| 31 <xsl:apply-templates select="node()|@*"/> | 34 <xsl:apply-templates select="node()|@*"/> |
