Thanks you very much, Bob for your help.
I'm using DocBook 4, BUT I'm using the namespace aware version of the
DocBook-XSL. That's the reason it didn't work (Sorry). Adding the
namespace prefix to your code, it works perfect.
Best regards.
Pedro
Bob Stayton escribió:
Are you using DocBook 5? If so, then element names in the XSL need to
have a namespace prefix.
If you aren't using DocBook 5, is the bibliography inside an article
or section element?
Bob Stayton
Sagehill Enterprises
[EMAIL PROTECTED]
----- Original Message ----- From: "Pedro Pastor" <[EMAIL PROTECTED]>
To: "Bob Stayton" <[EMAIL PROTECTED]>
Cc: <[email protected]>; <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2008 8:10 AM
Subject: Re: [docbook-apps] A simple question - Not working
Sorry Bob for pestering you but I sent my previous reply before testing
your code (which I was sure was going to work).
I have included your code "as it is" in my customization XSL and I have
obtained exactly the same result as before (before inserting your code):
no page brake before <bibliography> element.
Any suggestion?
Regards,
Pedro
Bob Stayton escribió:
I presume you mean a bibliography inside an article or section, as a
bibliography inside a book or part has its own page-sequence and so
automatically starts on a new page.
This template added to a customization layer will work for bibliography:
<xsl:template match="article/bibliography | section/bibliography">
<fo:block break-after="page"/>
<xsl:apply-imports/>
</xsl:template>
It inserts a page break block, and then applies the stock template
for processing the bibliography using xsl:apply-imports.
Bob Stayton
Sagehill Enterprises
[EMAIL PROTECTED]
----- Original Message ----- From: "Pedro Pastor" <[EMAIL PROTECTED]>
To: <[email protected]>; <[EMAIL PROTECTED]>
Sent: Friday, July 25, 2008 5:37 PM
Subject: [docbook-apps] A simple question
Sorry if this a naïve question, but I've been looking up at Bob's book
and I couldn't find the answer.
How could I control to print the "special" sections like Bibliogrphy,
TOC... and the like in a new page. I mean, I'd like to have and
automatic "page-brake" before those "blocks". I've found the way to do
it for the different "section" levels but not for the former
mentioned ones.
Regards,
Pedro
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
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]