Bug 1143852
Summary: | PDF build using FOP fails with "No numberLines function available." | ||
---|---|---|---|
Product: | [Community] Publican | Reporter: | Raphaël Hertzog <raphael> |
Component: | publican | Assignee: | Jeff Fearn 🐞 <jfearn> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ruediger Landmann <rlandman> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.2 | CC: | aigao, rlandman |
Target Milestone: | 4.2 | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 4.2.3 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-10-07 03:19:16 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Raphaël Hertzog
2014-09-18 07:09:23 UTC
The problem here is that the FOP XSL for common-db5 just redirects to upstream fo/docbook.xsl and doesn't change anything. publican/datadir/Common_Content/common-db5/xsl/pdf.xsl probably needs to have something like: <xsl:param name="tablecolumns.extension" select="0"/> <xsl:param name="fop.extensions" select="0"/> <xsl:param name="fop1.extensions" select="1"/> <xsl:param name="linenumbering.extension" select="0"/> added after the import line. I can probably test this Monday. I tried with this patch and it doesn't help. --- a/datadir/Common_Content/common-db5/xsl/pdf.xsl +++ b/datadir/Common_Content/common-db5/xsl/pdf.xsl @@ -14,6 +14,11 @@ extension-element-prefixes="d" > +<xsl:param name="tablecolumns.extension" select="0"/> +<xsl:param name="fop.extensions" select="0"/> +<xsl:param name="fop1.extensions" select="1"/> +<xsl:param name="linenumbering.extension" select="0"/> + <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/fo/docbook.xsl"/> </xsl:stylesheet> I still get the same error message. Had to do two main things. 1: Add options to docbook5 pdf.xsl. 2: Fix auto docs feature to output stricter XML. PUG now generates a valid, if ugly, PDF using FOP. To ssh://git.fedorahosted.org/git/publican.git c59173f..0ab36b4 devel -> devel A fix for this issue has shipped in publican 4.2.3. |