Skip to content

Instantly share code, notes, and snippets.

@tbielawa
Created March 27, 2013 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbielawa/5254805 to your computer and use it in GitHub Desktop.
Save tbielawa/5254805 to your computer and use it in GitHub Desktop.
Adding proper DocBook "acknowledgements" templating to dblatex
<?xml version='1.0' encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:param name="acknowledgements.tocdepth">0</xsl:param>
<xsl:template match="acknowledgements">
<xsl:call-template name="section.unnumbered">
<xsl:with-param name="tocdepth" select="number($acknowledgements.tocdepth)"/>
<xsl:with-param name="title">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'Acknowledgements'"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="acknowledgements/title"></xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment