xsl-list
[Top] [All Lists]

RE: XSL-FO: reset fo:page-number to 1 in each section of .pdf, ba sed on XML input

2003-04-08 06:46:43
I appreciate your suggested solution, but, as I understand it, it does not
solve the problem.  As I understand it, this suggested solution requires XML
input with differently named, pre-defined tags for each section of output
(i.e., along the lines of Dave Pawson's wonderful XSL-FO book:
<frontmatter></frontmatter>, <prefandtoc></prefandtoc>,
<chapters></chapters>, and <backmatter></backmatter>). In contrast, my XML
input has identically named <ITEM> tags, each containing 1 <BIRD> tag.  If
two or more BIRD tags contain the same contents, their ITEM tags belong to
the same section in the output.  Also, I don't know in advance how many
<BIRD>s belong to each section of output, and I don't know in advance how
many sections of output I'll generate from the input. That's why I can't
know in advance how many <fo:page-sequence>s I need inside the  <fo:root> of
my .xsl input.

Please correct me if I have misunderstood your suggestion.

 -----Original Message-----
From:         W. Eliot Kimber 
Sent: Monday, April 07, 2003 5:20 PM
To:   'XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject:      FW: XSL-FO: reset fo:page-number to 1 in each section of
.pdf, based on XML input

Greenbaum, Bill wrote: 
Objective: Generate a .pdf with FOP, showing the <fo:page-number/>
reverting to 1 on the first page for each BIRD. 
You need to use a separate  fo:page-sequence for each BIRD. You can set
the initial page number to whatever you want for each page sequence. 
Cheers, E. -- W. Eliot Kimber, eliot(_at_)isogen(_dot_)com Consultant, ISOGEN
International 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list