|
Subject: Re: [xsl] Using the full page for an element From: JBryant@xxxxxxxxx Date: Thu, 25 Aug 2005 17:22:08 -0500 |
<xsl:template match="Question">
<fo:block keep-together="always" break-after="page"
white-space-collapse="false">
<xsl:if test="FullPage='true'"><xsl:attribute
name="break-before">page</xsl:attribute></xsl:if>
<xsl:apply-templates select="QuestionNo"/>
<xsl:apply-templates select="QuestionText"/>
</fo:block>
</xsl:template>
You may wish to re-evaluate your use of break-after in this situation, but
that's another matter.
Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)
bharathi kongara <bharathikongara@xxxxxxxxx>
08/25/2005 05:10 PM
Please respond to
xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To
xsl-list@xxxxxxxxxxxxxxxxxxxxxx
cc
Subject
[xsl] Using the full page for an element
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.
Thanks
Bharathi
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Using the full page for an el, bharathi kongara | Thread | Re: [xsl] Specifying the src attrib, omprakash . v |
| [xsl] Features of Saxon vs. Feature, Mike Schinkel | Date | [xsl] Re: Using the full page for a, bharathi kongara |
| Month |