custom-html.xsl 758 B

123456789101112131415161718
  1. <?xml version='1.0'?> <!--*-nxml-*-->
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:ss="http://docbook.sf.net/xmlns/string.subst/1.0"
  4. xmlns:exsl="http://exslt.org/common" version="1.0">
  5. <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
  6. <xsl:param name="vendordir"/>
  7. <xsl:template match="filename">
  8. <xsl:variable name="replacements">
  9. <ss:substitution oldstring="%vendordir%" newstring="{$vendordir}" />
  10. </xsl:variable>
  11. <xsl:call-template name="apply-string-subst-map">
  12. <xsl:with-param name="content" select="."/>
  13. <xsl:with-param name="map.contents" select="exsl:node-set($replacements)/*" />
  14. </xsl:call-template>
  15. </xsl:template>
  16. </xsl:stylesheet>