[LUDOC-208] Error on "make pdf" Created: 14/Nov/13  Updated: 13/Feb/14  Resolved: 13/Feb/14

Status: Closed
Project: Lustre Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Amir Shehata (Inactive) Assignee: Richard Henwood (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

RHEL 6.3
[ashehata@localhost dlc_manual]$ rpm -qa | grep -i docbook
docbook-dtds-1.0-51.el6.noarch
docbook5-schemas-5.0-4.1.el6.noarch
docbook-style-xsl-1.75.2-6.el6.noarch
docbook5-style-xsl-1.75.2-4.el6.noarch


Severity: 3
Rank (Obsolete): 11610

 Description   

Error experienced:

[ashehata@localhost dlc_manual]$ make pdf
sed -e 's;PRIMARYXSL;/usr/share/sgml/docbook/xsl-ns-stylesheets-1.75.2/fo/docbook.xsl;' ./style/customstyle_fo.xsl | \
xsltproc --xinclude -o lustre_manual.fo - ./index.xml
Making portrait pages on USletter paper (8.5inx11in)
runtime error: file - line 128 element call-template
The called template 'make.component.tocs' was not found.
error: file ./index.xml
xsltRunStylesheet : run failed

When commenting out 'make.component.tocs', everything works ok.



 Comments   
Comment by Ryan Haasken [ 05/Dec/13 ]

I got the same error when attempting to build the pdf.

haasken@lnx-haasken lustre-manual $ make pdf
sed -e 's;PRIMARYXSL;/usr/share/xml/docbook/stylesheet/nwalsh5/1.74.0/fo/docbook.xsl;' ./style/customstyle_fo.xsl | \
	xsltproc --xinclude -o lustre_manual.fo - ./index.xml
Making portrait pages on USletter paper (8.5inx11in)
runtime error: file - line 128 element call-template
The called template 'make.component.tocs' was not found.
error: file ./index.xml
xsltRunStylesheet : run failed
make: *** [lustre_manual.fo] Error 11

I am building on SUSE Linux Enterprise Desktop 11 SP2. I had to make a change to the makefile for the builds to work for SLED 11 SP2, but I still run into the above error.

Here are my installed docbook packages (not sure why there is more than one version):

haasken@lnx-haasken lustre-manual $ rpm -qa | grep docbook
docbook_5-5.0-1.14
docbook-xsl-stylesheets-1.74.0-1.14
docbook_3-3.1-643.6
docbook-dsssl-stylesheets-1.79-19.6
docbook5-xsl-stylesheets-1.74.0-1.14
docbook_4-4.5-111.14

As pointed out above by Amir, when I comment out the line

                  <xsl:call-template name="make.component.tocs"/>

in style/customstyle_fo.xsl, make pdf works. Does anybody have a permanent solution to this issue? Should that line be removed?

Comment by Jessica A. Popp (Inactive) [ 10/Feb/14 ]

Richard, is this a ticket you could look at?

Comment by Richard Henwood (Inactive) [ 10/Feb/14 ]

make.component.tocs was apparently introduced in version 1.77.1:

• Robert Stayton: autotoc.xsl; component.xsl; titlepage.templates.xml

Add make.component.tocs to support lists of tables, etc. for
article and other components. Added component.list.of.tables to
titlepage.templates.xml to format the title.

I'll have a quick look and see what the affect of removing the call-template gubbins is to the resulting document.

Comment by Richard Henwood (Inactive) [ 11/Feb/14 ]

Seems like we can remove this command to increase compatibility without any noticeable changes to the current build and style:

http://review.whamcloud.com/#/c/9216

Comment by Richard Henwood (Inactive) [ 13/Feb/14 ]

Ryan, Amir: can you verify this patch works for you and I'll merge it.

Comment by Richard Henwood (Inactive) [ 13/Feb/14 ]

Patch verified and landed.

Comment by Ryan Haasken [ 13/Feb/14 ]

Richard, sorry it took me a while to respond. I have an IT-managed workstation, so installing fop by myself was a pain.

Anyway, the patch works for me. I was able to build the pdf. Thanks!

Generated at Sat Feb 10 03:41:06 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.