Determining the of attribute values

Subject: Determining the of attribute values
From: nigel.byrnes@xxxxxxxxxxx
Date: Fri, 17 Mar 2000 10:59:41 +0100
Hi all

I am trying to determine the set of attibute values of a certain element. Considering the following xml fragment:

<a href="x">click here</a>
<a href="x">click here</a>
<a href="y">click here</a>

I would have thought that defining a xsl variable as follows would do the trick:

<!-- Store the set of URLs in $urls -->
<x:variable name="urls" select="//a/@href[not(.=following::a/@href)]"/>

When I step through the variable however, it is clear that the variable contents do not constitute a set. 

Does anyone have any advice?

Thanks

Nigel

Nigel Byrnes, Philips Research
     Cross Oak Lane, Redhill. Surrey, RH1 5HA
Voice: +44 (0) 1293 815578
Fax: +44 (0) 1293 815500



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread