xsl/portal2items: replace unknown xpath function
This commit is contained in:
parent
9efb6b2a67
commit
c1acece430
|
@ -56,9 +56,19 @@
|
||||||
<footer><xsl:value-of select="." disable-output-escaping="yes"/></footer>
|
<footer><xsl:value-of select="." disable-output-escaping="yes"/></footer>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
<xsl:template match="atom:link[@rel='enclosure' and @href]" mode="gallery">
|
<xsl:template match="atom:link[@rel='enclosure' and @href]" mode="gallery">
|
||||||
|
<xsl:variable name="href" select="substring-after(@href, '/mgoblin_media/')"/>
|
||||||
|
|
||||||
<content-image>
|
<content-image>
|
||||||
<xsl:text>/mgoblin_media/</xsl:text>
|
<xsl:text>/mgoblin_media/</xsl:text>
|
||||||
<xsl:value-of select="replace(substring-after(@href, '/mgoblin_media/'), '.jpg', '.medium.jpg')"/>
|
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="contains($href, '.jpg')">
|
||||||
|
<xsl:value-of select="concat(substring-before($href, '.jpg'), '.medium.jpg')"/>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="$href"/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
</content-image>
|
</content-image>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
<xsl:template match="atom:link[@rel='alternate' and @href]" mode="gallery">
|
<xsl:template match="atom:link[@rel='alternate' and @href]" mode="gallery">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user