Subject: Re: [xsl] Comparing an XML value from current record and previous record From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Thu, 10 May 2007 16:53:29 +0200 |
<!-- place this at your current for-each --> <xsl:apply-templates select="RACE_LIST_HORSES/HORSE" />
<!-- place this somewhere in the root level of your stylesheet --> <xsl:template match="HORSE"> <section startonnewpage="false" .... etc ... </xsl:template>
<!-- and place this somewhere at the root level again --> <xsl:template match="HORSE_FRONT_ROW_FLAG"> your text here that otherwise would be in the if-instruction </xsl:template>
HTH, Cheers, -- Abel Braaksma
Hi,
I am new to XSL and have some code that I need edited.
We are currently looping through an XML recordset.
We need an if statement that checks the current and
previous record's value of the XML tag
"HORSE_FRONT_ROW_FLAG". If the current record's value
of HORSE_FRONT_ROW_FLAG tag is "2", and the previous
record's value of HORSE_FRONT_ROW_FLAG is "1", then
the system needs to print some text....
<snip />
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Comparing an XML value fr, Steve | Thread | [xsl] indent="yes" and <pre>, Martynas Jusevicius |
Re: [xsl] "re-calling" template par, Wendell Piez | Date | Re: [xsl] Saxon errors, Rob Newman |
Month |