[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
James,
Thanks for the reply. Unfortunately, it doesn't work as I'd hoped. It only displays one item. My programmer tells me that I only need to check for TRC elements (thought I'd need one each for RCs *&* TRCs & would've renamed your TEMPLATE :-).
I've got multiple DETAILLINEs, each of which can have multiple RCDATALINE elements. As a result, "preceding::*" doesn't seem to work, as it will look in other DETAILLINEs, see those and assume it shouldn't display them either. Unfortunately, it is my understanding that "preceding-sibling::*" will only look at the one sibling adjacent to current(). Hence, since I've got a possibility of 6, that won't work.
I've pasted a better XML EXAMPLE below (with parent::* elements).
Thanks for your help!
Clay
BTW, the header for your e-mail appears funky (note the date):
Since today is Monday, Oct 22, 2002, your message appeared at the bottom of my InBox.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
RE: [xsl] Removing duplicates
Subject: RE: [xsl] Removing duplicates From: Clay Leeds <cleeds@xxxxxxxxxx> Date: Tue, 22 Oct 2002 13:04:25 -0700 |
James,
Thanks for the reply. Unfortunately, it doesn't work as I'd hoped. It only displays one item. My programmer tells me that I only need to check for TRC elements (thought I'd need one each for RCs *&* TRCs & would've renamed your TEMPLATE :-).
I've got multiple DETAILLINEs, each of which can have multiple RCDATALINE elements. As a result, "preceding::*" doesn't seem to work, as it will look in other DETAILLINEs, see those and assume it shouldn't display them either. Unfortunately, it is my understanding that "preceding-sibling::*" will only look at the one sibling adjacent to current(). Hence, since I've got a possibility of 6, that won't work.
I've pasted a better XML EXAMPLE below (with parent::* elements).
Thanks for your help!
Clay
BTW, the header for your e-mail appears funky (note the date):
From: "James Carlyle" <james.carlyle@xxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: [xsl] Removing duplicates Date: Thu, 17 Oct 2002 20:24:45 +0100 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal Sender: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Since today is Monday, Oct 22, 2002, your message appeared at the bottom of my InBox.
XML EXAMPLE: <DETAIL> <DETAILLINE> <SERVDESC> <SERVICE>99215</SERVICE> </SERVDESC> <QTY> 1</QTY> <CHARGE> 193.00</CHARGE> <RCDATA> <RCDATALINE> <RC>43</RC> <TRC>14</TRC> </RCDATALINE> <RCDATALINE> <RC>01</RC> <TRC>02</TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> </RCDATA> </DETAILLINE> <DETAILLINE> <SERVDESC> <SERVICE>20550</SERVICE> </SERVDESC> <QTY> 1</QTY> <CHARGE> 150.00</CHARGE> <RCDATA> <RCDATALINE> <RC>01</RC> <TRC>02</TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> </RCDATA> </DETAILLINE> <DETAILLINE> <SERVDESC> <SERVICE>20550</SERVICE> </SERVDESC> <QTY> 1</QTY> <CHARGE> 150.00</CHARGE> <RCDATA> <RCDATALINE> <RC>66</RC> <TRC>02</TRC> </RCDATALINE> <RCDATALINE> <RC>01</RC> <TRC>02</TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> </RCDATA> </DETAILLINE> <DETAILLINE> <SERVDESC> <SERVICE>29876</SERVICE> </SERVDESC> <QTY> 1</QTY> <CHARGE> 2800.00</CHARGE> <RCDATA> <RCDATALINE> <RC>01</RC> <TRC>02</TRC> </RCDATALINE> <RCDATALINE> <RC>04</RC> <TRC>02</TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> <RCDATALINE> <RC></RC> <TRC></TRC> </RCDATALINE> </RCDATA> </DETAILLINE> <DETAILLINE> <SERVDESC> <SERVICE>99212</SERVICE> </SERVDESC> <QTY> 1</QTY> <CHARGE> 75.00</CHARGE> <RCDATA> <RCDATALINE> <RC>10</RC> <TRC>03</TRC> </RCDATALINE> <RCDATALINE> <RC>12</RC> <TRC>03</TRC> </RCDATALINE> <RCDATALINE> <RC>24</RC> <TRC>10</TRC> </RCDATALINE> <RCDATALINE> <RC>22</RC> <TRC>10</TRC> </RCDATALINE> <RCDATALINE> <RC>03</RC> <TRC></TRC> </RCDATALINE> <RCDATALINE> <RC>09</RC> <TRC>03</TRC> </RCDATALINE> </RCDATA> </DETAILLINE> </DETAIL>
- Clay Leeds - Web Developer/Programmer - cleeds@xxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Removing duplicates, James Carlyle | Thread | RE: [xsl] Removing duplicates, James Carlyle |
RE: [xsl] XML in IE6, Chuck White | Date | Re: [xsl] ?group? but keep order of, Bryan Schnabel |
Month |
Keywords