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

Dynamic output dependant on existance of other nodes.

Subject: Dynamic output dependant on existance of other nodes.
From: Ian_blizard@xxxxxx (Ian Blizard)
Date: Thu, 8 Nov 2001 13:39:58 +0000
dynamic dependant menus
Hi all,

I'm trying to create HTML output from this data.

<Data>
  <Item Name="Airport" Type="STR">
   <Val/>
  </Item>
  <Item Name="Airport_choices" Type="STRSEQ">
   <Val>Heathrow</Val>
   <Val>Gatwick</Val>
  </Item>
</Data>

Currently my stylesheet parses for each <Item> Node, and prints out an 
<input> field for each item.

If the Item's 'Type' attribute is STR, then display a textbox, if it is 
STRSEQ, display a pulldown menu.

Now, I need to do some clever processing.  

If Airport_choices exists, and Airport exists, then the menu is 
populated by the contents of Airport_choices and the formfield Name 
attribute is set to "Airport".

If Airport_choices exists, and Airport does not exist, simply display a 
list populated by the contents of Airport Choices and the formfield Name 
attribute is set to "Airport_choices".

This needs to work for combinations of any <itemname>_choice and 
<itemname> pair.

Thanks in advance for your help.

-Ian.


 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.