OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] 1.69.1: page-sequence child of flow?


Hi John,
I'm not able to duplicate your problem.  I ran xsltproc with your file 
through your stylesheet, which imports the DocBook stylesheet over the web 
from http://www.nmt.edu/tcc/doc/docbook43/mss/fo/docbook.xsl.  It was slow, 
but that works ok.  I changed the import to my local copy of 1.69.1, and 
that worked as well.

Looking at your trivial.fo, the section element is generating a 
page-sequence within the page-sequence for the article.  But the stylesheet 
should only do that when the section is the root element (has no parent 
element), using this template in fo/sections.xsl:

<xsl:template match="section[not(parent::*)]" name="section.page.sequence">

Somehow that template is being called for your section, but I can't explain 
how.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "John W. Shipman" <john@nmt.edu>
To: "Bob Stayton" <bobs@sagehill.net>
Cc: "docbook-apps mailing list" <docbook-apps@lists.oasis-open.org>; "John 
Shipman" <john@nmt.edu>
Sent: Friday, May 12, 2006 5:42 PM
Subject: [docbook-apps] 1.69.1: page-sequence child of flow?


> I've been trying to port our toolchain to 1.69.1 stylesheets and
> DocBook 4.3, and I'm getting a strange bug that stops me cold.
>
> Just to be sure I have the right stylesheet install, I reloaded
> them from this URL:
>
>    http://sourceforge.net/project/showfiles.php?group_id=21935
>
> Attached is a tiny DocBook file with one section containing one
> paragraph.  My customization layer (also attached) has only one
> change, turning off draft mode (so I don't get a bunch of
> unresolved references to draft.png); it uses the 1.69.1
> fo/docbook.xsl.
>
> The .fo file that comes out of xsltproc has entirely the wrong
> structure.  It looks okay through the fo:flow for xsl-region-body,
> and contains the table of contents.
>
> However, just after the fo:block that wraps the main title and
> table of contents, there is a second fo:page-sequence containing
> a second set of fo:static-content elements followed by another
> fo:flow.
>
> xep complained, and rightly so, that fo:flow cannot have an
> fo:page-sequence child.
>
> I downloaded RenderX's .rnc schema files for XSL-FO and ran
> rnv, and it had the same complaint:  fo:page-sequence cannot
> be a child of fo:flow.
>
> I have no idea what to do at this point.  Do you have any
> suggestions?
>
> Attachments:
>
>    trivial.xml:  A tiny, complete DocBook 4.3 document.
>
>    stock_fo.xsl:  Customization layer to turn off draft mode.
>
>    trivial.fo:  The .fo file built from trivial.xml.
>
> Best regards,
> John Shipman (john@nmt.edu), Applications Specialist, NM Tech Computer 
> Center,
> Speare 119, Socorro, NM 87801, (505) 835-5950, http://www.nmt.edu/~john
>  ``Let's go outside and commiserate with nature.''  --Dave Farber
>
> P.S.  The bug I posted a few days ago, concerning indented table
> entry elements when the table is inside an itemizedlist, was
> with the 1.65.1 stylesheets.  My testing process was pointing at
> the old stylesheets instead of the 1.69.1 set.
>


--------------------------------------------------------------------------------


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org 




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]