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

Add machinery to allow app-specific help files.

--HG--
branch : xslt
This commit is contained in:
Kris Maglione
2009-10-24 16:48:49 -04:00
parent 8b222085ec
commit 0fa7609e99
3 changed files with 43 additions and 10 deletions

View File

@@ -11,7 +11,7 @@
<xsl:output method="xml"/>
<xsl:variable name="local" select="concat('chrome://&liberator.name;/locale/', /liberator:document/@name, '.xml')"/>
<xsl:variable name="localdoc" select="document($local)/liberator:document"/>
<xsl:variable name="localdoc" select="document($local)/liberator:overlay"/>
<xsl:template match="liberator:document">
<html:html liberator:highlight="Help">
@@ -156,6 +156,12 @@
</xsl:for-each>
</xsl:template>
<xsl:template match="liberator:document/liberator:tags|liberator:document/liberator:tag">
<xsl:call-template name="splice-locals">
<xsl:with-param name="tag" select="substring-before(concat(., ' '), ' ')"/>
<xsl:with-param name="elem" select="self::node()"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="liberator:document/*[liberator:tags]">
<xsl:call-template name="splice-locals">
<xsl:with-param name="tag" select="substring-before(concat(liberator:tags, ' '), ' ')"/>