Bug 1112461

Summary: TOC doesn't render in PDFs
Product: [Community] Publican Reporter: Dan Macpherson <dmacpher>
Component: publicanAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED NOTABUG QA Contact: Ruediger Landmann <rlandman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: futureCC: aigao, dmacpher, rlandman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-09 23:39:28 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:
Attachments:
Description Flags
Error Message none

Description Dan Macpherson 2014-06-24 03:38:44 UTC
Created attachment 911629 [details]
Error Message

Created a PDF in Publican but the TOC failed to render. Instead an error message appeared (see attachment).

== Note ==

I traced this to the book template for the TOC (book_templates/toc-xsl.tmpl) where it's using a stylesheet outline that doesn't exist:

<xsl:stylesheet version="2.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:outline="http://wkhtmltopdf.org/outline"
                xmlns="http://www.w3.org/1999/xhtml">

http://wkhtmltopdf.org/outline returns 404

I changed this back to the old v1 stylesheet:

<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:outline="http://code.google.com/p/wkhtmltopdf/outline"
                xmlns="http://www.w3.org/1999/xhtml">

And it works again.

Comment 1 Jeff Fearn 🐞 2014-06-24 03:58:43 UTC
Sounds like you have out of date deps. Please tell us the output of

$ rpm -q wkhtmltopdf wkhtmltopdf-qt

Comment 2 Jeff Fearn 🐞 2014-07-09 23:39:28 UTC
Assuming out of date packages. Please reopen if you have up to date wkhtmltopdf packages.