1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-01 10:15:46 +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:template name="info">
<xsl:param name="label"/> <xsl:param name="label"/>
<xsl:param name="prelink" select="''"/>
<xsl:param name="link" select="@href"/> <xsl:param name="link" select="@href"/>
<div liberator:highlight="HelpInfo"> <div liberator:highlight="HelpInfo">
<div liberator:highlight="HelpInfoLabel"> <div liberator:highlight="HelpInfoLabel">
@@ -382,17 +381,22 @@
</div> </div>
<a liberator:highlight="HelpInfoValue"> <a liberator:highlight="HelpInfoValue">
<xsl:if test="$link"> <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:if>
<xsl:apply-templates/> <xsl:apply-templates/>
</a> </a>
</div> </div>
</xsl:template> </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:template match="liberator:author" mode="pass-2">
<xsl:call-template name="info"> <xsl:call-template name="info">
<xsl:with-param name="label" select="'Author'"/> <xsl:with-param name="label" select="'Author'"/>
<xsl:with-param name="prelink" select="'mailto:'"/> <xsl:with-param name="link" select="@href"/>
<xsl:with-param name="link" select="@email"/>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<xsl:template match="liberator:license" mode="pass-2"> <xsl:template match="liberator:license" mode="pass-2">