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

How do I get 2 values from "xforms:select1" control

From: Anjali Abraham <anjalia@aztec.soft.net>
Date: Thu, 19 May 2005 15:31:40 +0530
Message-ID: <6141EF5D7CF3054AB4B4C217B243E51407C4F219@maya.aztec.soft.net>
To: www-forms@w3.org
Cc: w3c-forms@w3.org
Hi All,
            I got a bit stuck on this and I was wondering if anyone has seen
examples or knows how to get around it.
Say I've got a form with the output XML format instance data , that I'm 
planning on submitting, and some additional data to be displayed as 
output which is effectively just lookup data.
In this case I have:
      <xforms:instance id ="123" src="abc.xml"/>
            <xforms:instance id="abc">
                  <rootElement xmlns="">
                        <elements attr1="" attr2="" >
                              <element1 id=""/>
                              < element2 id=""/>
                              < element3 id=""/>
                              < element4 id=""></ element4>
I use the instance with id=123 as my input xml which will be used to fill
the data's of various controls of Xforms of a page. Now The instance with
id=abc is my output xml's format which I will be submitting it. 
My Problem is mentioned below:
Now for "element4" I need to have the value of attribute "id" as well as the
value of the element by name element4.
The control I use is:
<xforms:select1 ref="element4/@id" appearance="minimal">
      <xforms:label>Example:  </xforms:label>
      <xforms:itemset nodeset="instance('123')//ElementNames">  //input xml
is used to display this control's data
         <xforms:label ref="./name" />
         <xforms:value ref="\@id" />      //this id is stored for the
element4 - attribute id. But I need also the name 
Now how do I take the name value of whatever I had selected and need to save
that name value as the value for my output xml's element by name element4
value??????? This issue has become a work stopper for me. So Please anyone
can suggest me "How do I set the element4 value.
Received on Thursday, 19 May 2005 12:09:12 UTC

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