1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 21:04:20 +01:00

Allow author[@href] in additional to author[@email] for plugin docs.

This commit is contained in:
Kris Maglione
2009-11-03 21:17:58 -05:00
parent 68dd615648
commit ec71ee9d4a

View File

@@ -374,7 +374,6 @@
<xsl:template name="info">
<xsl:param name="label"/>
<xsl:param name="prelink" select="''"/>
<xsl:param name="link" select="@href"/>
<div liberator:highlight="HelpInfo">
<div liberator:highlight="HelpInfoLabel">
@@ -382,17 +381,22 @@
</div>
<a liberator:highlight="HelpInfoValue">
<xsl:if test="$link">
<xsl:attribute name="href"><xsl:value-of select="concat($prelink, $link)"/></xsl:attribute>
<xsl:attribute name="href"><xsl:value-of select="$link"/></xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</a>
</div>
</xsl:template>
<xsl:template match="liberator:author[@email]" mode="pass-2">
<xsl:call-template name="info">
<xsl:with-param name="label" select="'Author'"/>
<xsl:with-param name="link" select="concat('mailto:', @email)"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="liberator:author" mode="pass-2">
<xsl:call-template name="info">
<xsl:with-param name="label" select="'Author'"/>
<xsl:with-param name="prelink" select="'mailto:'"/>
<xsl:with-param name="link" select="@email"/>
<xsl:with-param name="link" select="@href"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="liberator:license" mode="pass-2">