[PATCH 5/8] compact code
Signed-off-by: klObs <jw@klobs.de>
This commit is contained in:
parent
7206dda416
commit
aa78e2822a
|
@ -58,9 +58,7 @@
|
|||
<xsl:call-template name="normalize-path">
|
||||
<xsl:with-param name="path">
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains(string(.), '://')">
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains(string(.), 'wikimedia.org')">
|
||||
<xsl:when test="contains(string(.), '://') and contains(string(.), 'wikimedia.org')">
|
||||
<xsl:variable name="filename">
|
||||
<xsl:value-of select="string(str:tokenize(string(.),'/')[last()])"/>
|
||||
</xsl:variable>
|
||||
|
@ -83,11 +81,6 @@
|
|||
<xsl:value-of select="string(.)"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="string(.)"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
|
Loading…
Reference in New Issue