xsl-list
[Top] [All Lists]

Outputing a node whose value appears only once

2005-07-18 15:34:57

What I would like to do now is output a value that
appears only once throughout the XML file. For
example, if I have:

<a>
   <b>value1</b>
   <bb>value2</bb>
   <bbb>value3</bbb>
</a>
<c>
   <b>value1</b>
   <bb>value2</bb>
   <bbb>value4</bbb>
</c>

From the point of view of 'a', I would want to output
"value3" because 'a' contains it but 'c' does not. 
This is assuming that the above is the entire file.  I
also need to output a sibling of the node which does
not appear more than once (like the value of a/b or
a/bbb).  It is also assumed that multiple instances of
the same value will have different parents.  This is
shown in the example above.

Thanks for the help.

Jonathan

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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