Hi, 
I'm using the XML tags of JSTL. I was wondering if someone knew how to get distinct 
values from nodes.
For example, I have this XML doc:

<books>
 <book>
  <type>hardcover</type>
  <name>my cool book</name> 
 </book>
 <book>
  <type>paperback</type>
  <name>book 2</name> 
 </book>
 <book>
  <type>paperback</type>
  <name>book 3</name> 
 </book>
 <book>
  <type>hardcover</type>
  <name>book 4</name> 
 </book>
 <book>
  <type>pdf format</type>
  <name>book 5</name> 
 </book>
</books>



And I want to pull out the distinct book types for the JSP page so that I only get 
(without duplicates):
- hardcover
- paperback
- pdf format



Any ideas what JSTL tag could do this? for-each? what would go in the select?


thank you!


~ Troy Campano ~

==========================================================================To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to