changeset 44:d16e7ecf99ad

add prooemium
author ht
date Thu, 17 Dec 2009 22:24:21 +0000
parents d49f2ca9374c
children a768840ee9ff
files summa/bilingual/merge.xsl
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/summa/bilingual/merge.xsl	Thu Dec 17 09:55:34 2009 +0000
+++ b/summa/bilingual/merge.xsl	Thu Dec 17 22:24:21 2009 +0000
@@ -17,7 +17,15 @@
   </xsl:copy>
  </xsl:template>
  
- <xsl:template match="x:div/x:div[@n]">
+ <xsl:template match="/x:div/x:div[not(@n)]">
+  <!-- Wrap a prooemium -->
+  <xsl:copy>
+   <xsl:apply-templates select="@*|node()"/>
+   <xsl:apply-templates select="$la/x:div[@class='p']/x:p"/>
+  </xsl:copy>
+ </xsl:template>
+ 
+ <xsl:template match="/x:div/x:div[@n]">
   <!-- Wraps a single article within a question -->
   <xsl:variable name="n" select="count(preceding-sibling::x:div[@n])+1"/>
   <xsl:variable name="ld" select="$la/x:div[@class='a'][position()=$n]"/>