The last step is to add your new file of templates to your customization layer. You can do that most easily with an xsl:include
statement:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="docbook.xsl"/>
<xsl:import href="mytitlepages.xsl"/>
</xsl:stylesheet>
This href
example assumes you put your customization layer and new title page template file with the DocBook distribution files. You may have to adjust the paths. Since your title page template file is imported after the main stylesheet is imported, your new title page templates will override the default templates in DocBook XSL.
Note that if you have customization layers for both chunked and non-chunked HTML output, you will need to add the import statement to both customization layers. But by keeping the new templates in a separate common file, you can easily regenerate it without needing to re-edit other files.
DocBook XSL: The Complete Guide - 4th Edition | PDF version available | Copyright © 2002-2007 Sagehill Enterprises |