SEC-1508: Update docbook processing to use Docbook 5 namespaces.

This commit is contained in:
Luke Taylor 2010-07-03 13:10:48 +01:00
parent 845c50a1c3
commit 4ad85cdfdf
5 changed files with 16 additions and 15 deletions

View File

@ -23,7 +23,7 @@ dependencies {
fopDeps fopDeps
runtime 'net.sf.xslthl:xslthl:2.0.1', runtime 'net.sf.xslthl:xslthl:2.0.1',
'net.sf.docbook:docbook-xsl:1.75.2:resources@zip' 'net.sf.docbook:docbook-xsl:1.75.2:ns-resources@zip'
} }
task ide(type: Copy) { task ide(type: Copy) {

View File

@ -5,8 +5,8 @@
exclude-result-prefixes="xslthl" exclude-result-prefixes="xslthl"
version='1.0'> version='1.0'>
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/> <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/html/docbook.xsl"/>
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/highlight.xsl"/> <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/html/highlight.xsl"/>
<!--xsl:param name="use.id.as.filename">'1'</xsl:param--> <!--xsl:param name="use.id.as.filename">'1'</xsl:param-->

View File

@ -24,8 +24,8 @@
exclude-result-prefixes="xslthl" exclude-result-prefixes="xslthl"
version='1.0'> version='1.0'>
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/> <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/html/chunk.xsl"/>
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/highlight.xsl"/> <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/html/highlight.xsl"/>
<xsl:param name="chunk.section.depth">'5'</xsl:param> <xsl:param name="chunk.section.depth">'5'</xsl:param>
<xsl:param name="use.id.as.filename">'1'</xsl:param> <xsl:param name="use.id.as.filename">'1'</xsl:param>

View File

@ -24,8 +24,8 @@
exclude-result-prefixes="xslthl" exclude-result-prefixes="xslthl"
version='1.0'> version='1.0'>
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/> <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/html/docbook.xsl"/>
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/highlight.xsl"/> <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/html/highlight.xsl"/>
<!-- Only use scaling in FO --> <!-- Only use scaling in FO -->
<xsl:param name="ignore.image.scaling">1</xsl:param> <xsl:param name="ignore.image.scaling">1</xsl:param>

View File

@ -22,10 +22,11 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xslthl="http://xslthl.sf.net" xmlns:xslthl="http://xslthl.sf.net"
exclude-result-prefixes="xslthl" xmlns:d="http://docbook.org/ns/docbook"
exclude-result-prefixes="d xslthl"
version='1.0'> version='1.0'>
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/> <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/fo/docbook.xsl"/>
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/highlight.xsl"/> <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/fo/highlight.xsl"/>
<xsl:param name="fop1.extensions" select="1"/> <xsl:param name="fop1.extensions" select="1"/>
@ -74,8 +75,8 @@
<xsl:variable name="Version"> <xsl:variable name="Version">
<xsl:choose> <xsl:choose>
<xsl:when test="//productname"> <xsl:when test="//d:productname">
<xsl:value-of select="//productname"/><xsl:text> </xsl:text> <xsl:value-of select="//d:productname"/><xsl:text> </xsl:text>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:text>please define productname in your docbook file!</xsl:text> <xsl:text>please define productname in your docbook file!</xsl:text>
@ -119,8 +120,8 @@
<xsl:variable name="Version"> <xsl:variable name="Version">
<xsl:choose> <xsl:choose>
<xsl:when test="//releaseinfo"> <xsl:when test="//d:releaseinfo">
<xsl:value-of select="//releaseinfo"/> <xsl:value-of select="//d:releaseinfo"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
</xsl:otherwise> </xsl:otherwise>
@ -231,7 +232,7 @@
<!-- Why is the font-size for chapters hardcoded in the XSL FO templates? <!-- Why is the font-size for chapters hardcoded in the XSL FO templates?
Let's remove it, so this sucker can use our attribute-set only... --> Let's remove it, so this sucker can use our attribute-set only... -->
<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode"> <xsl:template match="d:title" mode="chapter.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
xsl:use-attribute-sets="chapter.titlepage.recto.style"> xsl:use-attribute-sets="chapter.titlepage.recto.style">
<xsl:call-template name="component.title"> <xsl:call-template name="component.title">