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

Re: Re: Using the full page for an element

Subject: Re: Re: Using the full page for an element
From: "Jay Bryant" <jay@xxxxxxxxxxxx>
Date: Thu, 25 Aug 2005 23:21:01 -0500
Re:  Re: Using the full page for an element
For that to work, you'd have to have an XML structure like this:
<Question>
  <Question>
    <FullPage>true</FullPage>
  </Question>
<Question>

Since you don't have a Question element within your Question element, you
need this:
<xsl:if test="FullPage='true'">

Jay Bryant
Bryant Communication Services

----- Original Message ----- 
From: "bharathi kongara" <bharathikongara@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, August 25, 2005 5:32 PM
Subject:  Re: Using the full page for an element


> In correspondence with my previous question, I used
> the following xsl-if, it still didn't work for me.
>
> <xsl:template match="Question">
>     <fo:block keep-together="always"
> white-space-collapse="false">
>
> <xsl:if test="Question/FullPage = 'true'">
>        <xsl:attribute
> name="break-after">page</xsl:attribute>
>        <xsl:attribute
> name="break-before">page</xsl:attribute>
> </xsl:if>
>   <xsl:apply-templates select="QuestionNo"/>
>   <xsl:apply-templates select="QuestionText"/>
>   </fo:block>
> </xsl:template>
>
> --- bharathi kongara <bharathikongara@xxxxxxxxx>
> wrote:
>
> > Hi
> >
> > Is there any way that depending on the attribute in
> > the xml that I can allot a full page to that, by
> > specifying in the style sheet.
> >
> > My xml is:
> >
> > <Question>
> >         <QuestionNo>1.</QuestionNo>
> >         <QuestionText>This is question
> > 1.</QuestionText>
> >         <FullPage>true</FullPage>
> > </Question>
> > <Question>
> >         <QuestionNo>1.</QuestionNo>
> >         <QuestionText>This is question
> > 2.</QuestionText>
> >         <FullPage>false</FullPage>
> > </Question>
> >
> > My xsl is:
> >
> > <xsl:template match="Question">
> >    <fo:block keep-together="always"
> > break-after="page"
> > white-space-collapse="false">
> >          <xsl:apply-templates select="QuestionNo"/>
> >    <xsl:apply-templates select="QuestionText"/>
> >    </fo:block>
> >  </xsl:template>
> >
> > So if the FullPage attribute is true, that question
> > should start on a new page and the full page must be
> > left. The xsl-if has never worked properly form,
> > probably the syntax may be wrong. Any help is
> > appreciated.
>
>
>
>
> ____________________________________________________
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs

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.