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(_at_)yahoo(_dot_)com>
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--