<title>Document opened with the Serna Docbook stylesheet.</title>
<image href="document-opened-with-docbook-stylesheet.png" align="center" placement="break"/>
</fig></p>
- <p>Norman Walsh's Docbook stylesheet is located at: <filepath>sernaInstallationPath/xml/stylesheets/docbook-xsl-1.68.1</filepath>. Serna Docbook stylesheet is located at: <filepath>sernaInstallationPath/plugins/docbook/docbook-xsl-serna</filepath>.</p>
+ <p>Norman Walsh's Docbook stylesheet is located at: <filepath>/usr/share/xml/docbook/stylesheet/docbook-xsl</filepath>. Serna Docbook stylesheet is located at: <filepath>sernaInstallationPath/plugins/docbook/docbook-xsl-serna</filepath>.</p>
<p>Serna Docbook stylesheet may be parameterized very similarly to Norman Walsh's Stylesheet (see files at <filepath>sernaInstallationPath/plugins/docbook/docbook-xsl-serna</filepath>: <codeph>parameters.xsl</codeph> and <codeph>titlepage.templates.xsl</codeph> that is generated with <codeph>titlepage.generator.xsl</codeph> from <codeph>titlepage.templates.xml</codeph>).</p>
</section>
</body>
<title>Docbook Stylesheet</title>
<body>
<section>
- <p>The stylesheet is located at <codeph>sernaInstallationPath/xml/stylesheets/docbook-xsl-1.68.1</codeph>.</p>
+ <p>The stylesheet is located at <codeph>/usr/share/xml/docbook/stylesheet/docbook-xsl</codeph>.</p>
<p>Docbook is the most popular DTD for technical documentation. The Serna package includes the Docbook XSL Stylesheet, which renders documents as closely as possible to <xref href="http://sourceforge.net/projects/docbook/" format="html">Norman Walsh's Docbook stylesheet</xref>.</p>
<p>The Serna Docbook stylesheet is based on the Norman Walsh stylesheet and modified in order to provide convenient WYSIWYG editing and optimal performance for dynamic execution.</p>
<p>It may be parameterized very similarly to Norman Walsh's Stylesheet (see files <codeph>parameters.xsl</codeph> and <codeph>titlepage.templates.xsl</codeph>, that is generated with <codeph>titlepage.generator.xsl</codeph> from <codeph>titlepage.templates.xml</codeph>).</p>
<t:inscription>HTML (Single Chunk)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>htmlMulti</t:name>
<t:inscription>HTML (Multiple Chunks)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/chunk.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/chunk.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>pdfFop</t:name>
<t:inscription>PDF (with FOP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runFop</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>pdfXep</t:name>
<t:inscription>PDF (with XEP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runXep</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:load-plugins>TablePlugin</t:load-plugins>
<t:dtd-guess-string>DocBook XML V4.2</t:dtd-guess-string>
<t:inscription>HTML (Single Chunk)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>htmlMulti</t:name>
<t:inscription>HTML (Multiple Chunks)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/chunk.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/chunk.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>pdfFop</t:name>
<t:inscription>PDF (with FOP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runFop</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>pdfXep</t:name>
<t:inscription>PDF (with XEP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runXep</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:load-plugins>TablePlugin</t:load-plugins>
<t:template-showup-priority>10</t:template-showup-priority>
<t:inscription>HTML (Single Chunk)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>htmlMulti</t:name>
<t:inscription>HTML (Multiple Chunks)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/chunk.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/chunk.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>pdfFop</t:name>
<t:inscription>PDF (with FOP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runFop</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>pdfXep</t:name>
<t:inscription>PDF (with XEP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runXep</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:load-plugins>TablePlugin</t:load-plugins>
<t:template-showup-priority>10</t:template-showup-priority>
<t:inscription>HTML (Single Chunk)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>htmlMulti</t:name>
<t:inscription>HTML (Multiple Chunks)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/chunk.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/chunk.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:inscription>PDF (with FOP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runFop</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>pdfXep</t:name>
<t:inscription>PDF (with XEP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runXep</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:root-elements>appendix article book.class chapter part section set reference</t:root-elements>
<t:inscription>HTML (Single Chunk)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>htmlMulti</t:name>
<t:inscription>HTML (Multiple Chunks)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/chunk.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/chunk.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>pdfFop</t:name>
<t:inscription>PDF (with FOP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runFop</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>pdfXep</t:name>
<t:inscription>PDF (with XEP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runXep</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:dtd-guess-string>DBLite</t:dtd-guess-string>
<t:root-elements>appendix article book chapter part section set reference</t:root-elements>
<t:inscription>HTML (Single Chunk)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>htmlMulti</t:name>
<t:inscription>HTML (Multiple Chunks)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/chunk.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/chunk.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>pdfFop</t:name>
<t:inscription>PDF (with FOP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runFop</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>pdfXep</t:name>
<t:inscription>PDF (with XEP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runXep</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:dtd-guess-string>DBLite-htmlents</t:dtd-guess-string>
<t:root-elements>appendix article book chapter part section set reference</t:root-elements>
<t:inscription>HTML (Single Chunk)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>htmlMulti</t:name>
<t:inscription>HTML (Multiple Chunks)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/chunk.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/chunk.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>pdfFop</t:name>
<t:inscription>PDF (with FOP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runFop</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>pdfXep</t:name>
<t:inscription>PDF (with XEP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runXep</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:dtd-guess-string>DBLite-noents</t:dtd-guess-string>
<t:root-elements>appendix article book chapter part section set reference</t:root-elements>
<output-type>
<pdf>
- <stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</stylesheet>
+ <stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</stylesheet>
</pdf>
</output-type>
SERNA_DIR=/home/apg/se/src/apps/serna
DOCBOOK=$SERNA_DIR/dist/plugins/docbook/dbk42
XML_CATALOG_FILES=$DOCBOOK/dtd/catalog.xml export XML_CATALOG_FILES
-DBKXSLDIR=$SERNA_DIR/../../../build/apps/serna/dist/doc/docbook-xsl-1.68.1
+DBKXSLDIR=/usr/share/xml/docbook/stylesheet/docbook-xsl
HTMLSTYLE=$DBKXSLDIR/html/docbook.xsl
XSLTPROC=$SERNA_DIR/../../../3rd/xsltproc/linux/xsltproc
TARGET_SEHELP=docbook.sehelp
if dataDir:
xslDir = os.path.join(dataDir, 'xml', 'stylesheets')
- xslDir = os.path.join(xslDir, 'docbook-xsl-1.68.1')
+ xslDir = "/usr/share/xml/docbook/stylesheet/docbook-xsl"
self.xslFoScript = os.path.join(xslDir, 'fo', 'docbook.xsl')
self.singleXsl = os.path.join(xslDir, 'html', 'docbook.xsl')
<t:inscription>PDF (with FOP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runFop</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>pdfXep</t:name>
<t:inscription>PDF (with XEP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runXep</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>htmlMulti</t:name>
<t:inscription>HTML (Multiple Chunks)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/chunk.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/chunk.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>htmlSingle</t:name>
<t:inscription>HTML (Single Chunk)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl</t:stylesheet>
</t:publish>
</t:document-template>
<t:inscription>PDF (with FOP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runFop</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>pdfXep</t:name>
<t:inscription>PDF (with XEP)</t:inscription>
<t:extension>pdf</t:extension>
<t:script>runXep</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>htmlMulti</t:name>
<t:inscription>HTML (Multiple Chunks)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/chunk.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/chunk.xsl</t:stylesheet>
</t:publish>
<t:publish>
<t:name>htmlSingle</t:name>
<t:inscription>HTML (Single Chunk)</t:inscription>
<t:extension>htm</t:extension>
<t:script>runXslt</t:script>
- <t:stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/html/docbook.xsl</t:stylesheet>
+ <t:stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl</t:stylesheet>
</t:publish>
</t:document-template>
<output-type>
<pdf>
- <stylesheet>$SERNA_STYLESHEETS/docbook-xsl-1.68.1/fo/docbook.xsl</stylesheet>
+ <stylesheet>/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl</stylesheet>
</pdf>
</output-type>
args.stylesheet = os.path.normpath(self.pluginDir + \
'/gca/gca-xsl-serna/gca.xsl')
else:
- xslPropName = r'$SERNA_STYLESHEETS'
- dbDir = unicode(SernaConfig.resolveResource('', xslPropName, ''))
- if not os.path.exists(dbDir):
- dataDir = os.environ.get(r'SERNA_DATA_DIR', None)
- if dataDir:
- dbDir = os.path.join(dbDir, 'xml', 'stylesheets')
-
- dbDir = os.path.join(dbDir, 'docbook-xsl-1.68.1')
+ dbDir = "/usr/share/xml/docbook/stylesheet/docbook-xsl"
args.stylesheet = os.path.normpath(dbDir + '/fo/docbook.xsl')
args.singleXsl = os.path.normpath(dbDir + '/html/docbook.xsl')
version="1.0"
exclude-result-prefixes="exsl">
-<xsl:import href="../../xml/stylesheets/docbook-xsl-1.68.1/html/docbook.xsl"/>
+<xsl:import href="/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl"/>
<xsl:import href="chunk-common.xsl"/>
<xsl:param name="onechunk" select="0"/>
version="1.0"
exclude-result-prefixes="exsl">
-<xsl:import href="docbook-xsl-1.68.1/html/docbook.xsl"/>
+<xsl:import href="/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl"/>
<xsl:import href="chunk-common.xsl"/>
-<xsl:include href="docbook-xsl-1.68.1/html/manifest.xsl"/>
+<xsl:include href="/usr/share/xml/docbook/stylesheet/docbook-xsl/html/manifest.xsl"/>
<xsl:param name="onechunk" select="0"/>
<xsl:param name="refentry.separator" select="0"/>