Subject: [xsl] Dynamic output dependant on existance of other nodes. From: Ian_blizard@xxxxxx (Ian Blizard) Date: Thu, 8 Nov 2001 13:39:58 +0000 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Testing for certain combi, Michael Capalbo | Thread | Re: [xsl] Dynamic output dependant , Jeni Tennison |
Re: [xsl] Testing for certain combi, David Carlisle | Date | RE: [xsl] Testing for certain combi, Michael Kay |
Month |