[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Selection through a Dropdown List box
> I have a xml file which looks like this > > <Address> > <Business> > <Street> 2000 MaryLane Wonderland </Street> > <City> Paradise </City> > </Business> > <Home> > <Street> 1000 Snow Mountain View </Stree> > <City> SnowLand </City> > </Address> > > If my Html page Should show a dropdown list containing 2 elements > Business and Home > > And based on what is selected it should show corresponding address > in a textarea next to it how can we do it. Start by dividing the problem into two: (a) decide what the HTML page should be like (b) decide what XSLT you need to write in order to generate this HTML There are basically two design approaches: when the user selects something from the dropdown, you can invoke Javascript that populates the textarea directly; or you can invoke JavaScript that invokes a second XSLT transformation that populates the textarea. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|