cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josema Alonso" <alo...@aafunky.com>
Subject dynamic select boxes in XMLForms?
Date Thu, 14 Nov 2002 18:35:22 GMT
Hi, all.

I tried the XMLForm wizard demo where I see some select boxes created for
processor, ram, servlet engine and java version elements in ths system
information page.

I see the values for those are hard coded in 'system.xml' and I want to
create a select box from a DOM Node. I got the following:
<EquipmentTypes>
 <EquipmentType id="player">
  <Description>Description of the player type</Description>
 </EquipmentType>
 <EquipmentType id="recorder">
  <Description>Description of the recorder type</Description>
 </EquipmentType>
</EquipmentTypes>

I would like to create a select box (one of the dropdown type) and have:
1.- value of every option element as the EquipmentType/@id
2.- text displayed of every option as the EquipmentType/Description

I've tried with a xf:repeat with no luck. I also tried with just one element
but no luck either. I guess is something with the stylesheet. The
'xmlform2html.xsl' doesn't seem to check 'ref' attributes on option
elements. I guess the solution will be the customization of that stylesheet
to my needs...am I right?

Thanks.


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message