Re: i18n, componentized forms and multiple models

Hi Steven,

Thanks for the pointer.  I hadn't seen it before, but you're right, it
is similar to my problem.  I didn't know enough about XForms to come up
with the submission technique, but this still leaves me with the problem
of trying to share data across multiple models.

As I said, I may have more than one (or even dozens) of dynamic
selection lists based on separate models.  Maybe this is what I'm doing
wrong though.

In my example form, the select is manipulating instance values in model1
while the values to populate the select items are coming from model2. 
For a second selection list, the selection goes into model1 but the
items come from model3.  I guess I could lump them all together (I
thought I tried this, but maybe I did it wrong), but that doesn't really
seem like a good idea.

I suppose I could have an i18n model which pulls in all of the items and
other localized content that I need to display, but then have my actual
form data that I capture in a separate model.  Then the language
preferences could exist only in the i18n model where they're accessible
from the XPath context within the itemset as well as from whatever
selection mechanism I choose to put on the page.

I'll think about it a bit more and do some more experimentation.  Thanks
again for the link.

Cheers,

ast

On Fri, 2006-07-21 at 12:54, Steven Pemberton wrote:
> On Fri, 21 Jul 2006 13:44:44 +0200, Townley, Andrew  
> <andrew.townley@bearingpoint.com> wrote:
> 
> > I have this part working fine in my example using two such selection  
> > lists, but where I'm a bit stuck is that I also would ideally like to  
> > have a separate model which stores the language preference for the  
> > user.  No matter what I've tried, I can't seem to be able to dynamically  
> > evaluate something sensible for:
> >
> > <xforms:select ...>
> >   <xforms:itemset model="List1" nodeset="/ListItems/Item">
> >     <xforms:label ref="Label[lang(????)]"/>
> >     <xforms:value ref="@Code"/>
> >   </xforms:itemset>
> > </xforms:select>
> 
> You should check my tutorial 'XForms for HTML Authors, Part 2' at
> http://www.w3.org/MarkUp/Forms/2006/xforms-for-html-authors-part2.html#Getting,
> where I give exactly such an example.
> 
> Hope it helps,
> 
> Best wishes,
> 
> Steven Pemberton
***************************************************************************************************
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 Friday, 21 July 2006 12:25:59 UTC