[xsl] XSL Processing to avoid repetitions

Subject: [xsl] XSL Processing to avoid repetitions
From: "Fabien Tillier" <f.tillier@xxxxxxxx>
Date: Wed, 16 Jun 2010 15:15:53 +0200
Hi List.
I was wondering if anyone could help me to filter out data in an XML stream.
(can be xslt 2.0...)

For example, I have
<xml>
      <city>
            <name>Paris</name>
            <person>Paul</person>
      </city>
      <city>
            <name>New-York</name>
            <person>John</person>
      </city>
      <city>
            <name>Paris</name>
            <person>George</person>
      </city>
</xml>

I would like to have an XSL template able to output something like (using <OL>
for example) Paris
      Paul
      George
New-York
      John

Actually, all I am able to do is to get
Paris
      Paul
New-York
      John
Paris
      George

So, any help would be really helpful...
(please note that the real structure is more complicated, and the filter is to
be done on more than one level...)

Best regards,
Fabien

Current Thread