This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Determining the set of attribute values


David Carlise wrote:
>> <!-- 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.  
> >
>
> If you use the select attribute as above the variable _does_ hold a node set.
>
> In what way were you `stepping through' it?

Should $urls be printed out with a for-each loop, then i get nodes with repeated values. 

<x:for-each select="$urls">
 <x:value-of select="."/>
</x:for-each>

do you get the same behaviour? Could it be a querk of Xeena's XSLT engine?

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]