|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Multiple selection in XSL combo.
Hi,
I'm using an XSL combo for multiple selection. Can any one help me how to go about enabling multiple selection in XSL combos. The foll code currently holds good for single selection. <select name="clientindustry" value='{//project/@clientindustry}'> <option>Public Sector</option> <option>Healthcare</option> </select> Think its something to do with the name & value attributes. Help appreciated. |
|
#2
|
|||
|
|||
|
Humm, why can you not just write something like
<select name="clientindustry" multiple="multiple" value='{//project/@clientindustry}'> If you do not want to use a string litteral (perhaps multiple selection is not valid all the time) you could use xsl:attribute in combination with xsl:element. <xsl:element name="select"> <xsl:attribute name="name">clientindustry</xsl:attribute> <xsl attribute name="multiple"><xsl:value-of select =$multipleYesNo /> </xsl:attribute> .... </xsl:element> - F |
|
#3
|
|||
|
|||
|
thanks !
This enables multiple selection.(multiple=multiple) Can you let me know how I go about accessing each of the options that are selected.(I need to capture the selected values & store them on to the DB. I'm quite new to XSL & XML,your assistance will be of utmost help to me. |
|
#4
|
|||
|
|||
|
To help you, you need to provide more information about how
the form is submitted/processed. Is it going to a CGI script or something else? Are you using Perl to process the form? etc., etc. What DB? - F |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Multiple selection in XSL combo. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|