Clay
> I need to make certain that I don't print the same value twice on
> a detail
> line. I have up to 6 values, and I've been trying to brute force it, by
> making certain it's not equal to a previous item (see below). I
> display the
> RC, unless a corresponding TRC exists.
I understand that you want to process RC elements unless there is a
preceding RC with the same value. Is this correct?
If so, try this:
<xsl:template match="/RCDATA">
...
<xsl:for-each select="RCDATALINE">
<xsl:apply-templates select="RC"/>
</xsl:for-each>
...
</xsl:template>
<xsl:template match="RC">
<xsl:if test="not(preceding::RC[text()=current()/text()])">
...
</xsl:if>
</xsl:template>
Kind regards,
James Carlyle
FableFlow : MMS templating and delivery
Multimedia Messaging commentary : http://www.fableflow.com/weblog/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE: RE: running a transform of xsd, (continued)
- cknell - Tue, 22 Oct 2002 10:50:44 -0400 (EDT)
- Mike Ferrando - Tue, 22 Oct 2002 11:19:59 -0400 (EDT)
- David Carlisle - Tue, 22 Oct 2002 11:43:25 -0400 (EDT)
- Clay Leeds - Tue, 22 Oct 2002 12:15:49 -0400 (EDT)
- James Carlyle - Tue, 22 Oct 2002 15:16:30 -0400 (EDT) <=
- Clay Leeds - Tue, 22 Oct 2002 16:01:04 -0400 (EDT)
- James Carlyle - Tue, 22 Oct 2002 18:54:32 -0400 (EDT)
- Clay Leeds - Tue, 22 Oct 2002 19:18:54 -0400 (EDT)
- James Carlyle - Wed, 23 Oct 2002 03:28:23 -0400 (EDT)
|
|