This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: distinct filtering
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: distinct filtering
- From: "Xu, Xiaocun" <XXu at CommercialWare dot com>
- Date: Fri, 10 Nov 2000 10:56:48 -0500
- Reply-To: xsl-list at mulberrytech dot com
Hi, Gareth:
If I understand what you want correctly, you should able to pick up
the distinct elements with something like:
//prompt[not(.=preceding::prompt)]
Xiaocun Xu
xxu@commercialware.com
> -----Original Message-----
> From: GarethS@tisi.com [mailto:GarethS@tisi.com]
> Sent: Wednesday, November 08, 2000 4:24 PM
> To: xsl-list@mulberrytech.com
> Subject: distinct filtering
>
>
>
> Greetings folks. I'm brand new to the list, and have only
> been into xsl for
> the last week and a half here, so I hope I don't come across
> as completely
> clueless.
>
> I have an xml Document that looks like the following:
>
> <PAGE_INFO>
> <ORDER>
> <REQUEST>
> <REQUIREMENT listsequence="1">
> <PROMPT>prompt 1</PROMPT>
> </REQUIREMENT>
> <REQUIREMENT listsequence="2">
> <PROMPT>prompt 2</PROMPT>
> </REQUIREMENT>
> </REQUEST>
> <REQUEST>
> <REQUIREMENT listsequence="2">
> <PROMPT>prompt 2</PROMPT>
> </REQUIREMENT>
> <REQUIREMENT listsequence="3">
> <PROMPT>prompt 3</PROMPT>
> </REQUIREMENT>
> </REQUEST>
> </ORDER>
> </PAGE_INFO>
>
> I am trying to display the data in the <PROMPT> tag of each
> requirement, but
> I need to somehow filter the data so that I only display each
> list sequence
> once. In other words, I want to display
>
> prompt 1
> prompt 2
> prompt 3
>
> I am using Microsofts 3.0 xsl parser to transform the
> document to html on
> the server, before sending the document to the browser.
>
> Gareth Suarez
> gareths@tisi.com
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list