Re: [xsl] Insert refs

Subject: Re: [xsl] Insert refs
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 17 Dec 2003 18:22:52 GMT
This is a grouping problem, so use the usual key grouping method:

first key your to elements
<xsl:key mame="to" match="email/to" use="."/>


<xsl:for-each select="email/to[generate-id(.)=generate-id(key('to',.)[1])]">
    <to id="{generate-id()}"><xsl:value-of select="."/></to>


<xsl:template match="to">
 <to ref="{generate-id(key('to',.)[1])}"/>




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:

 XSL-List info and archive:

Current Thread