Selecting nodes ith the same attribute name value

D

DiTieM

I would like to make a call to <xsl:apply-templates select="nodes with
the
same name"/>.

To understand this better, we could think about email. In an email box
there
are several emails from several users. When clicking in "Order by Date"
or
"Order by Name" all emails are grouped by that "attribute". I would
exactly
to do that:

If we have:
<email>
<name>N1</name>
....
</email>

<email>
<name>N1</name>
....
</email>

<email>
<name>N2</name>
....
</email>

<email>
<name>N2</name>
....
</email>

<email>
<name>N2</name>
....
</email>

<email>
<name>N3</name>
....
</email>

I would like to have the tree instantiated in

<xsl:template select=3D"inbox/emails/name">

</xsl:template>

to
2 emails of N1
3 of N1
1 of N3

Is that possible?

Thans in Advance,
David
 

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
474,001
Messages
2,570,255
Members
46,852
Latest member
CarlaDowle

Latest Threads

Top