xsl-list
[Top] [All Lists]

[xsl] Key to select all same nodes(same @id) except current node

2007-03-07 10:34:25
Hi Group,
            I am developing a key that will select all
occurrences (same @id) of current element except
current node.
The structure of my xml is

<category_list>
<category id="16277" sort_order="10">
    <category_list>
       <category id="16222" sort_order="10">
          ......occurrences of category_list and
category elements
       </category>
    </category_list>
</category>
<category id="16278" sort_order="10">
.......
</category>
</category_list>

My key: <xsl:key name="ParentKey" match="category"
use="@id"/>

Also I want to check whether any <category> elements
with same @id, exists in all top elements of current
<category> element.

Your help would be appreciated.

regards,
Ranjan


 
____________________________________________________________________________________
We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--