Subject: Re: [xsl] Double processing From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 30 Jan 2004 14:11:34 -0500 |
What I'm trying to do is: if there is more than one consecutive warning the first para of each warning needs a bullet. This is working but once it processes that, it repeats the second and third warning again and then the third one again before continuing. ... <xsl:template name="warning-list"> ... <xsl:variable name="next" select="following-sibling::*[1]"/> <xsl:for-each select="$next[self::warning]"> <xsl:call-template name="warning-list"/>
<xsl:template match="warning">
<xsl:choose> <xsl:when test="following-sibling::warning">
<fo:block text-indent="2cm" font-weight="bold" font-size="12pt" text-decoration="underline" text-align="center" keep-with-next.within-page="always" keep-with-previous.within-page="always" space-after="4mm"> <xsl:text>WARNINGS</xsl:text> </fo:block> <fo:block> <xsl:call-template name="warning-list"/>
Can anyone tell me how to get it to stop after the last warning in a group and move on? I'm stuck.
-- Public courses: sign up for one or both soon to reserve your seat! Each week: Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO Washington, DC: 2004-03-15 San Francisco, CA: 2004-03-22 Hong Kong, China: 2004-05-17 Bremen, Germany: 2004-05-24 World-wide on-site corporate, government & user group XML 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 Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Double processing, Norma Yeazell | Thread | RE: [xsl] Double processing, Norma Yeazell |
[xsl] Template to return number of , cknell | Date | RE: [xsl] exclude-result-prefixes p, Michael Kay |
Month |