set value for more than one element in select1?

Hi,

I was wondering what the recommended solution to this particular
situation might be.  I have a code list of values intended for a select1
control defined like this:

<CodeList>
  <Item Code="...">Value</Item>
  ...
</CodeList>

However, once the value is selected from the select1, I need to include
it in the following XML instance document:

<Element>
  <ItemName/>
  <ItemCode/>
  ...
  <OtherElement/>
</Element>

Now obviously, this situation sorta proves the Rule of the 7 P's (Proper
Previous Planning Prevents Piss-Poor Performance), but I was hoping
there was a way to do it with XForms features.

I can think of the following, non-XForms ways of solving the problem:

1) Change the external data in the itemset

Unfortunately, this isn't really a runner for where the copied elements
would go, there are other elements as children of the parent node.

2) Change the input instance and transform after form submission

This is probably the easiest, but involves an additional step at the
end.  I'm sure it won't be the only one that I end up with, but it isn't
ideal for my situation.

At the moment, I'm leaning towards option 2, but would love to have an
option 3.

Thanks in advance,

ast
***************************************************************************************************
The information in this email is confidential and may be legally privileged Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system.
***************************************************************************************************

Received on Sunday, 23 July 2006 10:18:53 UTC