XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 27th, 2004, 05:54 AM
peasfood peasfood is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Boston
Posts: 26 peasfood User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old January 27th, 2004, 07:01 PM
fpmurphy fpmurphy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: USA
Posts: 282 fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 2 h 30 m 42 sec
Reputation Power: 6
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

Reply With Quote
  #3  
Old January 28th, 2004, 03:59 AM
peasfood peasfood is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Boston
Posts: 26 peasfood User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #4  
Old January 28th, 2004, 10:35 AM
fpmurphy fpmurphy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: USA
Posts: 282 fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 2 h 30 m 42 sec
Reputation Power: 6
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Multiple selection in XSL combo.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT