summaryrefslogtreecommitdiff
path: root/convert-style-to-html.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'convert-style-to-html.xsl')
-rw-r--r--convert-style-to-html.xsl25
1 files changed, 2 insertions, 23 deletions
diff --git a/convert-style-to-html.xsl b/convert-style-to-html.xsl
index 9858964..dbc7281 100644
--- a/convert-style-to-html.xsl
+++ b/convert-style-to-html.xsl
@@ -3,6 +3,8 @@
<xsl:output method="xml" indent="yes" encoding="UTF-8" />
+ <xsl:include href="util.xsl"/>
+
<!-- Convert endnote style definitions declarations to html tags -->
<!-- TODO: <author>Editors,</author> bzw <author>Editor,</author> -->
<xsl:template match="style" name="style">
@@ -77,29 +79,6 @@
</xsl:copy>
</xsl:template>
- <xsl:template name="string-replace-all">
- <xsl:param name="text" />
- <xsl:param name="replace" />
- <xsl:param name="by" />
- <xsl:choose>
- <xsl:when test="$replace = ''">
- <xsl:value-of select="$text" />
- </xsl:when>
- <xsl:when test="contains($text, $replace)">
- <xsl:value-of select="substring-before($text,$replace)" />
- <xsl:value-of select="$by" />
- <xsl:call-template name="string-replace-all">
- <xsl:with-param name="text" select="substring-after($text,$replace)" />
- <xsl:with-param name="replace" select="$replace" />
- <xsl:with-param name="by" select="$by" />
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$text" />
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>