Example of xml:
    <document name="doc1" department="dep1">
        <ticker docrefto="doc1" department="dep2"/>
        <ticker docrefto="doc2" department="dep1"/>
    </document>
    <document name="doc1" department="dep2">
        <ticker docrefto="doc1" department="dep2"/>
        <ticker docrefto="doc2" department="dep1"/>
    </document>
    <document name="doc2" department="dep1">
        <ticker docrefto="doc1" department="dep2"/>
        <ticker docrefto="doc2" department="dep1"/>
    </document>
    <document name="doc2" department="dep2">
        <ticker docrefto="doc1" department="dep2"/>
        <ticker docrefto="doc2" department="dep1"/>
    </document>
What I want in output?
1. On each <document> I need output list of documents that reference ( in <ticker>)
     to this document.
2. On each <document> I need output list of <b>UNIQUE</b> names of
documents to which this document reference.
NOTE: there are many documents with same name but in different departments.
Sorry for my english.
--
	Best wishes, Eugeny Kuzakov
		Laboratory 321 ( Omsk, Russia )
		kev@xxxxxxxxx
		ICQ#: 5885106
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list