[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Page break with XSL-FO

Subject: Page break with XSL-FO
From: Mukul <mukulw3@xxxxxxxxx>
Date: Sat, 17 May 2003 09:30:21 -0700 (PDT)
xsl fo page break
Hello ,
I am working with Apache FOP. I am taking i/p from XML
file and generating PDF using XSL-FO and XSLT. My XML
has structure like
------------
<rootelem>

<tag>
<a>something</a>
<b>something</b>
<c>something</c>
</tag>

<tag>
<b>something</b>
<c>something</c>
</tag>

<tag>
<a>something</a>
<b>something</b>
<c>something</c>
</tag>

<!--more <tag> elements -->

</rootelem>
-------------

In all the <tag> tags, <b> and <c> will be there.
There may be any no. of <tag> tags within
rootelem(greater or equal than 1). The <a> tag will be
present in the 1st <tag> element and optionally in the
next <tag> elements.

I want that in the PDF, when a new <a> tag comes in
<tag> , the output in PDF should start from a new
page.

I want to apply some logic like
<xsl:apply-template select="tag">
<xsl:if test="a">   <!--a new <a> tag comes -->
output something in pdf e.g. <fo:block .. (*but this
should start from a new page!*)
</xsl:if>
</xsl:apply-template>

My requirement is like a page break..

Hoping for help on this problem..

Regards,
Mukul


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.