diff options
Diffstat (limited to 'doc/custom-html.xsl.in')
-rw-r--r-- | doc/custom-html.xsl.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/custom-html.xsl.in b/doc/custom-html.xsl.in new file mode 100644 index 00000000..b2eaf150 --- /dev/null +++ b/doc/custom-html.xsl.in @@ -0,0 +1,18 @@ +<?xml version='1.0'?> <!--*-nxml-*--> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:ss="http://docbook.sf.net/xmlns/string.subst/1.0" + xmlns:exsl="http://exslt.org/common" version="1.0"> + + <xsl:import href="HTML_STYLESHEET"/> + <xsl:param name="vendordir"/> + + <xsl:template match="filename"> + <xsl:variable name="replacements"> + <ss:substitution oldstring="%vendordir%" newstring="{$vendordir}" /> + </xsl:variable> + <xsl:call-template name="apply-string-subst-map"> + <xsl:with-param name="content" select="."/> + <xsl:with-param name="map.contents" select="exsl:node-set($replacements)/*" /> + </xsl:call-template> + </xsl:template> +</xsl:stylesheet> |