If you find yourself using lots of parameters and they are always the same values, then you might want to shorten your commands by putting all the parameter settings into one file. Unfortunately, the XSL processors do not have an option to read all the parameter settings from a file. Instead, you need to create a stylesheet customization layer that includes all of your parameter settings using XSL syntax. Customization layers are described in the section “Customization layer”, but here is a short example:
<?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="/usr/share/xsl/docbook/html/docbook.xsl"/> <xsl:param name="html.stylesheet" select="'corpstyle.css'"/> <xsl:param name="admon.graphics" select="1"/> </xsl:stylesheet>
You would use this file instead of the regular
docbook.xsl stylesheet file in your command line. If you decide to add additional customizations, they can go in this file as well.
|DocBook XSL: The Complete Guide - 4th Edition||PDF version available|
Copyright © 2002-2007 Sagehill Enterprises