XSL: Unique elements

  • Thread starter =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?=
  • Start date
?

=?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?=

I have a xml file with a lot of repeting <title> tags, and I want to
show the content of <title> tags on a site. However I don't want to show
<title>C.S.I</title> many times.

E:G:
----xml-----
....
<program>
<time>23:15</time>
<title>C.S.I</title>
</program>
...other programs..
<program>
<time>21:10</time>
<title>C.S.I</title>
</program>
--------------------

---Output----
-Angel
-C.S.I
-Band of brothers
.....

You see I don't want C.S.I to appear twice just because it exists in two
different times in the xml file. How do I solve this?

Jørn T
 
P

Philippe Poulard

Jørn Tommy Kinderås said:
I have a xml file with a lot of repeting <title> tags, and I want to
show the content of <title> tags on a site. However I don't want to show
<title>C.S.I</title> many times.

E:G:
----xml-----
...
<program>
<time>23:15</time>
<title>C.S.I</title>
</program>
..other programs..
<program>
<time>21:10</time>
<title>C.S.I</title>
</program>
--------------------

---Output----
-Angel
-C.S.I
-Band of brothers
....

You see I don't want C.S.I to appear twice just because it exists in two
different times in the xml file. How do I solve this?

Jørn T

hi,

have a look at the muenchian method

for example :
http://www.jenitennison.com/xslt/grouping/muenchian.html

--
Cordialement,

///
(. .)
-----ooO--(_)--Ooo-----
| Philippe Poulard |
-----------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top