[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Adding unique options to a list box.

Subject: Adding unique options to a list box.
From: "Rush, Marc" <mrush@xxxxxxxxxxxx>
Date: Mon, 19 Feb 2001 14:09:16 -0600
adding options to list box
First I want to say thanks to all those here who gave me suggestions to
my early issues.  They worked like a change.  I am making progress
learning this stuff!!!

However, a new issue has cropped up and I need a bit of help again.

I have an XML file that lists out tasks and as children, each task has
several elements named "attributes".  Each of these attribute tags has
an attribute identifier such as name, resource, start time etc...

I want to populate a list box with the resource elements so that
(eventually) the user can sort the tasks by resources.  The problem is
that several tasks have the same resource and some have none assigned at
all.  I now have the XSL search through the XML tree and populate the
list box.  I of course get every instance of the resource elements put
into the list box...including blanks where there is no resource assigned
in the xml.  My question is how do I test so that I am only populating
the resource into the list box once and also skip over populating the
empty elements.


Hope that makes sense.

Thanks

Marc

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.