[xsl] regarding unique nodes in a nodelist-variable

Subject: [xsl] regarding unique nodes in a nodelist-variable
From: "Laura" <xsl_list@xxxxxxxxxxx>
Date: Tue, 24 Dec 2002 11:35:54 -0000
Hello all,
This is regarding the sorting on unique nodes. I am using the axis method to
sort it.
eg..
not( parent/child = preceding-sibling::parent/child)

now if i have to go through a nodelist and sort.. can i use the same thing?
like
<xsl:for-each
select="xalan:nodeset($MyElementSet)/elements/element[not(parent/childelemen
t = preceding-sibling::element/parent/childelement)]/>

The structure of the xml in the variable:

<elements>
 <element>
   <parent>
    <childelement>child1</childelement>
   <parent>
 </element>
<element>
   <parent>
    <childelement>child2</childelement>
   <parent>
 </element>
<element>
   <parent>
    <childelement>child1</childelement>
   <parent>
 </element>
</elements>
is this valid? Its not working ..
thanks

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


Current Thread