Mercurial > hg > Aquinas
changeset 67:734a1915d5e2
missed h4 in fallback case
| author | ht |
|---|---|
| date | Sun, 03 Jan 2010 18:46:03 +0000 |
| parents | f17b1346319e |
| children | 6e7992263303 |
| files | summa/bilingual/merge.xsl |
| diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/summa/bilingual/merge.xsl Sun Jan 03 17:35:38 2010 +0000 +++ b/summa/bilingual/merge.xsl Sun Jan 03 18:46:03 2010 +0000 @@ -52,13 +52,16 @@ <xsl:variable name="pb" select="count(x:p/x:b[starts-with(.,'Objection') or (.='On the contrary,') or (.='I answer that,') or starts-with(.,'Reply to ')])"/> <xsl:choose> <xsl:when test="$pb=count($lp)"> - <xsl:for-each-group select="x:p" group-starting-with="x:p[x:b[starts-with(.,'Objection') or (.='On the contrary,') or (.='I answer that,') or starts-with(.,'Reply to ')]]"> + <xsl:copy> + <xsl:apply-templates select="@*|x:h4"/> + <xsl:for-each-group select="x:p" group-starting-with="x:p[x:b[starts-with(.,'Objection') or (.='On the contrary,') or (.='I answer that,') or starts-with(.,'Reply to ')]]"> <xsl:variable name="i" select="position()"/> <xsl:call-template name="doBi"> <xsl:with-param select="current-group()" name="english"/> <xsl:with-param select="$lp[position()=$i]" name="latin"/> </xsl:call-template> </xsl:for-each-group> + </xsl:copy> </xsl:when> <xsl:otherwise> <xsl:message>Still can't merge article <xsl:value-of select="@id"/>, <xsl:value-of select="$pb"/>!=<xsl:value-of select="count($lp)"/></xsl:message>
