Hi Dermot,
I found the problem. I had forgotten that the template/titlepage.xsl stylesheet was changed so that it could output elements in a namespace by setting the stylesheet param "ns" to the namespace name. This was to fix the problem of generating titlepage templates for XHTML output, whose elements are in the XHTML namespace.

But the change also affected the fo titlepage file, but I don't think that was intentional. Until this gets fixed, you can reproduce your titlepage stylesheet by setting the ns param as follows:

xsltproc -o titlepage.fo.xsl --stringparam ns http://www.w3.org/1999/XSL/Format docbook-xsl-1.77.0/template/titlepage.xsl titlepage.fo.xml

I think this feature can be automated by adding the namespace string to each of the titlepage.template.xml files so that the stylesheet knows what the default namespace should be (and it can still be overwritten on the command line).

Bob Stayton
Sagehill Enterprises
[email protected]


----- Original Message ----- From: "Bob Stayton" <[email protected]> To: "Dermot O'Halloran" <[email protected]>; <[email protected]>
Sent: Thursday, May 31, 2012 9:54 AM
Subject: Re: [docbook-apps] New namespacing in DocBook XSL 1.77.0 titlepage customization for FO causing problems


Hi Dermot,
Indeed, the titlepage spec system is broken in 1.77.0. I'll investigate and get back to you. Thanks for the report.

Bob Stayton
Sagehill Enterprises
[email protected]


----- Original Message ----- From: "Dermot O'Halloran" <[email protected]>
To: <[email protected]>
Sent: Thursday, May 31, 2012 4:23 AM
Subject: [docbook-apps] New namespacing in DocBook XSL 1.77.0 titlepage customization for FO causing problems



Hi,

The titlepage spec file I use for FO output no longer works in DocBook XSL
1.77.0. The first two pages in the resulting PDF (i.e. the title page and
copyright page) appear blank. From what I can see, the only relevant change
is in the template/titlepage.xsl stylesheet which now uses the fo namespace.
So even if I just have a spec file containing the following line I'll get
the blank pages:

<t:titlepage t:element="book" t:wrapper="fo:block"/>

Any ideas?

Rgds, Dermot
--
View this message in context: http://old.nabble.com/New-namespacing-in-DocBook-XSL-1.77.0-titlepage-customization-for-FO-causing-problems-tp33937589p33937589.html
Sent from the docbook apps mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]






---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to