It was trickier than I first thought. I don't deal with XSLT that often but got 
there in the end. I had to use an xsl:for-each as that allowed me to get the 
current position and do a conditional on it. You could almost move the contents 
of that template back to where it was before and just use the xsl:for-each, but 
it's up to you.

There may be a better way of doing it, but hope this points you in the right 
direction.

Regards,

Robert Meyer

> Date: Fri, 15 Mar 2013 05:52:51 -0700
> From: nbhc...@gmail.com
> To: fop-users@xmlgraphics.apache.org
> Subject: RE: Repeating elements within repeating elements
> 
> You're a star. I did define such a template before but it didn't display any
> of the CHARGEITEMs so took it out. I see now that yours includes this line:
>               <xsl:apply-templates/>
> And it seems as if it is this that makes it magically show all iterations.
> Incidentally the fields QTY, DESC, PLTS and CLASS are repeating for each
> CHARGEITEM and if I wanted to suppress the 2nd and successive occurrences
> would it be trivial to do?
> 
> 
> 
> -----
> just starting out with FOP - don't hurt me!
> --
> View this message in context: 
> http://apache-fop.1065347.n5.nabble.com/Repeating-elements-within-repeating-elements-tp38157p38159.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
                                          

Attachment: output.pdf
Description: Adobe PDF document

Attachment: sample.xsl
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to