xsl-list
[Top] [All Lists]

Exclude by Sibling Condition

2005-12-01 14:53:14
Considering the following XML fragment:
      
  <page name="p0" tab="products"/>
  <page name="p1" tab="products"/>
  <page name="p2" tab="products"/>
  <page name="d" tab="downloads"/>
  <page name="s" tab="support"/>
      
How can I select a subset that excludes elements with a tab attribute
value matching that of a previous sibling?
     
Meaning I want a list with no redundant @tab values like:
     
  <page name="p0" tab="products"/>
  <page name="d" tab="downloads"/>
  <page name="s" tab="support"/>
     
Thanks, 
Mike

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>