summaryrefslogtreecommitdiffstats
path: root/xslt/unixref2tellico.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'xslt/unixref2tellico.xsl')
-rw-r--r--xslt/unixref2tellico.xsl9
1 files changed, 6 insertions, 3 deletions
diff --git a/xslt/unixref2tellico.xsl b/xslt/unixref2tellico.xsl
index b997cac..9b25c44 100644
--- a/xslt/unixref2tellico.xsl
+++ b/xslt/unixref2tellico.xsl
@@ -46,9 +46,12 @@
</xsl:template>
<xsl:template match="cr:crossref">
- <entry>
- <xsl:apply-templates/>
- </entry>
+ <!-- if there's an error, or none found, a crossref element still shows up, with an error element -->
+ <xsl:if test="not(cr:error)">
+ <entry>
+ <xsl:apply-templates/>
+ </entry>
+ </xsl:if>
</xsl:template>
<xsl:template match="cr:book">