display problem with xslt

P

Piet L.

Hey,

I have a xslt file (see below) and now I would like to generate an output
like:
(I've deleted the real info)
* a
By aaa
* b
By bbb
* c
By aaa, ccc


How do I do this?


<?xml version="1.0" encoding="UTF-8"?>
<publications>
<select>
<publication>
<title_1>a</title_1>
<publication_id></publication_id>
<person_id>aaa</person_id>
<name></name>
<email></email>
</publication>
<publication>
<title_1>b</title_1>
<publication_id></publication_id>
<person_id>bbb</person_id>
<name></name>
<email></email>
</publication>
<publication>
<title_1>c</title_1>
<publication_id></publication_id>
<person_id>aaa</person_id>
<name></name>
<email></email>
<publication_id></publication_id>
<person_id>ccc</person_id>
<name></name>
<email></email>
</publication>
</select>
</publication>
 
D

Dimitre Novatchev

Read about xsl:key and the key() function.

Then use this knowledge.


Cheers,
Dimitre Novatchev
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top