RE: select or select1 values - element content rather than just text (10023-19605)

Use xf:select and xf:copy, not select1 and xf:value.
Leigh.

________________________________

From: www-forms-request@w3.org [mailto:www-forms-request@w3.org] On
Behalf Of Michael.Will@derivativeservices.com
Sent: Monday, June 13, 2005 3:29 PM
To: roland_merrick@uk.ibm.com
Cc: www-forms@w3.org; www-forms-request@w3.org
Subject: RE: select or select1 values - element content rather than just
text (10023-19605)


Thanks Roland, The value copied over in the specification is text so I'm
a bit confused. I want to insert element fragments into the saved xml
file.

	-----Original Message-----
	From: Roland Merrick [mailto:roland_merrick@uk.ibm.com] 
	Sent: Monday, June 13, 2005 4:28 AM
	To: Will, Michael: (NY)
	Cc: www-forms@w3.org; www-forms-request@w3.org
	Subject: RE: select or select1 values - element content rather
than just text (10023-19605)
	
	

	Greetings Michael, I'm afraid not, you will need to use
<itemset> to do what you want. There is an example [1] in the spec which
shows how to do what you want. 
	
	[1]
http://www.w3.org/TR/xforms/slice9.html#ui-common-elements-itemset 
	
	Regards, Roland 
	
	
	
<Michael.Will@derivativeservices.com> 
Sent by: www-forms-request@w3.org 

10/06/2005 19:20 

To
<www-forms@w3.org> 
cc
Subject
RE: select or select1 values - element content rather than just text
(10023-19605)	

		




	Hi, 

	I'm very new to Xforms and am trying to use it to create xml
data files. 

	I have no problems when the values I want to submit are plain
text. 

	For example: 

	<xf:select1> 
	       <xf:label>Is today Friday?<br/> 
	       </xf:label> 
	       <hr/> 
	       <xf:item> 
	               <xf:label>yes</xf:label> 
	               <xf:value>yes</xf:value> 
	       </xf:item> 
	       <xf:item> 
	               <xf:label>no</xf:label> 
	               <xf:value>no</xf:value> 
	       </xf:item> 
	</xf:select1> 

	The issue I would like some advice on is whether it is possible
to have an element as a value rather than text. 

	For example: 

	<xf:select1> 
	       <xf:label>Is today Friday?<br/> 
	       </xf:label> 
	       <hr/> 
	       <xf:item> 
	               <xf:label>yes</xf:label> 
	               <xf:value><yes/></xf:value> 
	       </xf:item> 
	       <xf:item> 
	               <xf:label>no</xf:label> 
	               <xf:value><no/></xf:value> 
	       </xf:item> 
	</xf:select1> 

	Regards, 

	Michael Will 
	Derivative Services LLP 

	

Received on Monday, 13 June 2005 22:53:09 UTC