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

Re: XSLFO - create a special first page

Subject: Re: XSLFO - create a special first page
From: Sarkup Sarkup <sarkups@xxxxxxxxx>
Date: Tue, 8 Jul 2008 13:22:30 -0700 (PDT)
Re:  XSLFO - create a special first page
Thank you Mr.Holman. I was not sure if you could include conditions in the Page-sequence section. 

Pardon me as I am tring to learn new things in xslfo and have some questions. I know in XSLT we can do pop ups using javascript alerts that can be inserted into the XSLT style sheet. Can we do the same thing in XSLFO? Can we have pop ups using java script within an XSLFO? 


--- On Tue, 7/8/08, G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:

> From: G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx>
> Subject: Re:  XSLFO - create a special first page
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Date: Tuesday, July 8, 2008, 8:14 PM
> At 2008-07-08 13:08 -0700, Sarkup Sarkup wrote:
> >Suppose I have a parameter passed to the style sheet
> called test, if 
> >test='yes' only then I need to create this
> first page with wordings 
> >"Hello World". Can I do that?
> 
> <xsl:if test="$test='yes'">
>    <page-sequence
> master-reference="whatever-page-geometry-you-have-set-up">
>      <flow
> flow-name="whatever-the-name-of-your-region-body-is">
>        <block text-align="center">Hello
> World</block>
>      </flow>
>    </page-sequence>
> </xsl:if>
> 
> If you want that centred text to also be centred
> vertically, then be 
> sure to have display-align="center" on the
> <region-body/> of your 
> page geometry.
> 
> I hope this helps.
> 
> . . . . . . . . . . . . Ken
> 
> --
> Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ
> 2009-01
> World-wide corporate, govt. & user group XML, XSL and
> UBL training
> RSS feeds:     publicly-available developer resources and
> training
> G. Ken Holman                
> mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
> Crane Softwrights Ltd.         
> http://www.CraneSoftwrights.com/s/
> Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999
> (F:-0995)
> Male Cancer Awareness Nov'07 
> http://www.CraneSoftwrights.com/s/bc
> Legal business disclaimers: 
> http://www.CraneSoftwrights.com/legal

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.