Can we process a XML using XSL depending on content and not tags ?

Subject: Can we process a XML using XSL depending on content and not tags ?
From: USHANAS S SHASTRI <ushanas.shastri@xxxxxxxxxxxxxxxx>
Date: Thu, 8 Apr 1999 13:33:21 +0530 (IST)
	Hi all ,
 I would like to know if we can process an XML using an XSL depending on
the contents of tags rather than tags.

For eg.,
my xml is
<lib>
<book>
        <name>The Man</name>
        <author>Irving Wallace</author>
</book>
<book>
        <name>Second Lady</name>
        <author>Irving Wallace</author>          
book>
        <name>The FountainHead</name>
        <author>Ayn Rand</author>
</book>
</lib>

I want to list all the books written by a specific author say Irving
Wallace . My output should be

Irving Wallace
        The Man
        Second Lady


How can i check if there is more than one author tag having the same
content?

Is there any way to check if there are duplicate nodes having the same
content? Let me know as soon as possible .

Thanks in advance ,

Ushanas                    


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


Current Thread