W3C home > Mailing lists > Public > www-forms@w3.org > May 2004

RE: ''' Sources for possible selections and actual data

From: Borgrink, Susan <sborgrink@progeny.net>
Date: Thu, 13 May 2004 09:41:25 -0400
Message-ID: <FB041607EAE6DF4697B73E29142D1C4B08839E@es3.progeny.net>
To: "Victor" <engmark-usenet@orakel.ntnu.no>, <www-forms@w3.org>

      First what does the nodeset "job", in "job-bind", refer to?  This
could be confusing the situation.  
      As I understand what you are trying to do, you would like to have
the value that is shown when you select (the label) to be on thing and
the value returned another (the value), correct?  The code you have
below will choose the "OK" or "Not OK" as the label and the value.  To
do what you want you would have to point the label ref to a different

Susan Borgrink
FormFaces Developer

-----Original Message-----
From: Victor [mailto:engmark-usenet@orakel.ntnu.no] 
Sent: Thursday, May 13, 2004 7:15 AM
To: www-forms@w3.org
Subject: ''' Sources for possible selections and actual data

I am trying to get the possible choices for a select1 statement from one

instance, and the actual values of the selects from a different 
instance. The problem is, in Chiba, the latter is ignored, and all 
select boxes show only the first alternative. The code is as follows:

<xf:instance id="jobResults">
	<results xmlns="">
			<label>Not OK</label>
			<value>Not Ok</value>

<xf:bind id="job-bind" nodeset="job">
	<xf:bind id="jobResult-bind" nodeset="result"/>

<xf:select1 id="jobResult" bind="jobResult-bind">
	<xf:itemset nodeset="instance('jobResults')/result">
		<xf:label ref="label"/>
		<xf:value ref="value"/>

Can it be that jobResult-bind doesn't resolve to the same instance 
document as job-bind, but instead looks in instance('jobResults')?

Received on Thursday, 13 May 2004 09:41:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:13 UTC