From 0473e3a67dbeadcdaf084126ed181f17f82d210c Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Mon, 25 Jan 2016 16:14:34 +0100 Subject: [PATCH] Renaming seperetor --> separator --- ws/Docbook/Extensions/Xsl/common.xsl | 16 ++++++++-------- ws/Docbook/Extensions/Xsl/docbook2docbook.xsl | 16 ++++++++-------- ws/Docbook/Extensions/Xsl/docbookExtractFig.xsl | 12 ++++++------ 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/ws/Docbook/Extensions/Xsl/common.xsl b/ws/Docbook/Extensions/Xsl/common.xsl index 17dc33e36..e95853eee 100644 --- a/ws/Docbook/Extensions/Xsl/common.xsl +++ b/ws/Docbook/Extensions/Xsl/common.xsl @@ -4,18 +4,18 @@ exclude-result-prefixes="xs" version="2.0"> - <xsl:template name="hdm.get.leftmost.of.seperator"> + <xsl:template name="hdm.get.leftmost.of.separator"> <xsl:param name="path"/> - <xsl:param name="seperator"/> + <xsl:param name="separator"/> <xsl:param name="start">1</xsl:param> - <xsl:if test="contains($path, $seperator )"> + <xsl:if test="contains($path, $separator )"> <xsl:if test="$start='0'"> - <xsl:value-of select="$seperator"/> + <xsl:value-of select="$separator"/> </xsl:if> - <xsl:value-of select="substring-before($path, $seperator)"/> - <xsl:call-template name="hdm.get.leftmost.of.seperator"> - <xsl:with-param name="path" select="substring-after($path, $seperator)"/> - <xsl:with-param name="seperator" select="$seperator"/> + <xsl:value-of select="substring-before($path, $separator)"/> + <xsl:call-template name="hdm.get.leftmost.of.separator"> + <xsl:with-param name="path" select="substring-after($path, $separator)"/> + <xsl:with-param name="separator" select="$separator"/> <xsl:with-param name="start">0</xsl:with-param> </xsl:call-template> </xsl:if> diff --git a/ws/Docbook/Extensions/Xsl/docbook2docbook.xsl b/ws/Docbook/Extensions/Xsl/docbook2docbook.xsl index a7e044bc9..e8e6a0dd2 100644 --- a/ws/Docbook/Extensions/Xsl/docbook2docbook.xsl +++ b/ws/Docbook/Extensions/Xsl/docbook2docbook.xsl @@ -35,9 +35,9 @@ <xsl:copy-of select="@*[name() != 'fileref']"/> <xsl:attribute name="fileref"> <xsl:if test="ancestor::*/@xml:base"> - <xsl:call-template name="hdm.get.leftmost.of.seperator"> + <xsl:call-template name="hdm.get.leftmost.of.separator"> <xsl:with-param name="path" select="ancestor::*/@xml:base"/> - <xsl:with-param name="seperator" select="'/'"/> + <xsl:with-param name="separator" select="'/'"/> </xsl:call-template> <xsl:text>/</xsl:text> </xsl:if> @@ -50,9 +50,9 @@ <db:videodata> <xsl:copy-of select="@*[name() != 'fileref']"/> <xsl:attribute name="fileref"> - <xsl:call-template name="hdm.get.leftmost.of.seperator"> + <xsl:call-template name="hdm.get.leftmost.of.separator"> <xsl:with-param name="path" select="ancestor::*/@xml:base"/> - <xsl:with-param name="seperator" select="'/'"/> + <xsl:with-param name="separator" select="'/'"/> </xsl:call-template> <xsl:text>/</xsl:text> <xsl:value-of select="@fileref"/> @@ -68,15 +68,15 @@ <xsl:if test="substring-after(parent::db:figure/db:mediaobject/db:imageobject/db:imagedata/@fileref, '.') = 'fig'"> <uri> <xsl:attribute name="xlink:href"> - <xsl:call-template name="hdm.get.leftmost.of.seperator"> + <xsl:call-template name="hdm.get.leftmost.of.separator"> <xsl:with-param name="path" select="ancestor::*/@xml:base"/> - <xsl:with-param name="seperator" select="'/'"/> + <xsl:with-param name="separator" select="'/'"/> </xsl:call-template> <xsl:text>/</xsl:text> - <xsl:call-template name="hdm.get.leftmost.of.seperator"> + <xsl:call-template name="hdm.get.leftmost.of.separator"> <xsl:with-param name="path" select="parent::db:figure/db:mediaobject/db:imageobject/db:imagedata/@fileref"/> - <xsl:with-param name="seperator" select="'.'"/> + <xsl:with-param name="separator" select="'.'"/> </xsl:call-template> <xsl:text>.pdf</xsl:text> </xsl:attribute> diff --git a/ws/Docbook/Extensions/Xsl/docbookExtractFig.xsl b/ws/Docbook/Extensions/Xsl/docbookExtractFig.xsl index 9ff06df7c..b928704ba 100644 --- a/ws/Docbook/Extensions/Xsl/docbookExtractFig.xsl +++ b/ws/Docbook/Extensions/Xsl/docbookExtractFig.xsl @@ -12,9 +12,9 @@ <xsl:template match="d:imagedata" mode="goik"> <xsl:variable name="fullFileName" select="@fileref"/> <xsl:variable name="dirPath"> - <xsl:call-template name="hdm.get.leftmost.of.seperator"> + <xsl:call-template name="hdm.get.leftmost.of.separator"> <xsl:with-param name="path" select="$fullFileName"/> - <xsl:with-param name="seperator" select="'/'"/> + <xsl:with-param name="separator" select="'/'"/> </xsl:call-template> </xsl:variable> @@ -25,16 +25,16 @@ </xsl:variable> <xsl:variable name="fileBaseName"> - <xsl:call-template name="hdm.get.leftmost.of.seperator"> + <xsl:call-template name="hdm.get.leftmost.of.separator"> <xsl:with-param name="path" select="$fileName"/> - <xsl:with-param name="seperator" select="'.'"/> + <xsl:with-param name="separator" select="'.'"/> </xsl:call-template> </xsl:variable> <xsl:variable name="moduleBaseName"> - <xsl:call-template name="hdm.get.leftmost.of.seperator"> + <xsl:call-template name="hdm.get.leftmost.of.separator"> <xsl:with-param name="path" select="ancestor::*/@xml:base"/> - <xsl:with-param name="seperator" select="'/'"/> + <xsl:with-param name="separator" select="'/'"/> </xsl:call-template> </xsl:variable> -- GitLab