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

Sources for possible selections and actual data

From: Victor <engmark-usenet@orakel.ntnu.no>
Date: Thu, 13 May 2004 13:14:58 +0200
To: www-forms@w3.org
Message-ID: <c7vlbj$bcf$1@sea.gmane.org>

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="">
		<result>
			<label>OK</label>
			<value>Ok</value>
		</result>
		<result>
			<label>Not OK</label>
			<value>Not Ok</value>
		</result>
	</results>
</xf:instance>

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

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

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

-- 
Victor
Received on Thursday, 13 May 2004 07:34:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:58 GMT