summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-07-02 15:31:00 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-07-02 15:31:00 +0200
commit4401f04627e6dd9490621f68328e9938ad676b05 (patch)
treeef2a2a3b1efbc64beff8d0ee833d6ffda4eabb42
parent9c82f2335aa36ee50a308a598f3025c10a9a73e0 (diff)
downloadbible-fetch-4401f04627e6dd9490621f68328e9938ad676b05.tar.gz
bible-fetch-4401f04627e6dd9490621f68328e9938ad676b05.tar.bz2
bible-fetch-4401f04627e6dd9490621f68328e9938ad676b05.zip
convert.xsl: Add error handler that prints unhandled tags
-rw-r--r--convert.xsl15
1 files changed, 14 insertions, 1 deletions
diff --git a/convert.xsl b/convert.xsl
index 3a8eb7d..3fe6be5 100644
--- a/convert.xsl
+++ b/convert.xsl
@@ -101,7 +101,20 @@
</vers>
</xsl:template>
- <xsl:template match="*" mode="conv"/>
+ <xsl:template match="div[@class='annotation']" mode="conv"/>
+ <xsl:template match="div[@class='lineBreak']" mode="conv"/>
+ <xsl:template match="br|em" mode="conv"/>
+ <xsl:template match="p" mode="conv"/>
+
+ <xsl:template match="*" mode="conv">
+ <xsl:message terminate="no">
+ <xsl:text>Unhandled tag </xsl:text>
+ <xsl:value-of select="local-name()" />
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="@*" />
+ <xsl:value-of select="." />
+ </xsl:message>
+ </xsl:template>
<xsl:template match="/">
<chapter cnumber="{//span[@class='chapter']}">