plugins.xsl: Do not display an origin link if origin does not start with http

Original commit message from CVS:
* plugins.xsl:
Do not display an origin link if origin does not start with http
See #323798

* plugins.xsl:
Do not display an origin link if origin does not start with http
See #323798
parent e430cd53
2006-04-01 Thomas Vander Stichele <thomas at apestaart dot org>
* plugins.xsl:
Do not display an origin link if origin does not start with http
See #323798
2006-04-01 Thomas Vander Stichele <thomas at apestaart dot org>
* m4/gst-args.m4:
......
......@@ -123,10 +123,18 @@
<xsl:element name="term">origin</xsl:element>
<xsl:element name="listitem">
<xsl:element name="simpara">
<xsl:element name="ulink">
<xsl:attribute name="url"><xsl:value-of select="origin" /></xsl:attribute>
<xsl:value-of select="origin" />
</xsl:element>
<!-- only show origin as link if it starts with http -->
<xsl:choose>
<xsl:when test="substring(@href, 1, 4) = 'http'">
<xsl:element name="ulink">
<xsl:attribute name="url"><xsl:value-of select="origin" /></xsl:attribute>
<xsl:value-of select="origin" />
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="origin" />
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:element>
</xsl:element>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment