W3C home > Mailing lists > Public > www-forms@w3.org > December 2002

Re: using toggle within select1

From: Roland Merrick <roland_merrick@uk.ibm.com>
Date: Mon, 2 Dec 2002 11:17:20 +0000
To: "Roman Huditsch" <roman.huditsch@hico.com>
Cc: <www-forms@w3.org>
Message-ID: <OF485D9926.D727F460-ON80256C83.003D8D16@portsmouth.uk.ibm.com>
Greetings Roman, the event you want is xforms-select, see 4.4.4 The xforms-select and xforms-deselect Events [ http://www.w3.org/TR/xforms/slice4.html#evt-select ]

<xforms:toggle case="en" ev:event="xforms-select"/>

There are other ways to internationalise forms, see 8.3 Additional Elements [ http://www.w3.org/TR/xforms/slice8.html#ui-commonelems ]

Regards, Roland




"Roman Huditsch" <roman.huditsch@hico.com>
Sent by: www-forms-request@w3.org
29/11/2002 08:41

 
        To:     <www-forms@w3.org>
        cc: 
        Subject:        using toggle within select1

 



Hello Sirs,

While I am writing my thesis statement, I want to develop an XForms File, 
which is able to create XML Topic Maps.
So I rather soon came up with some questions.
I would like to implement a mechanism for choosing the language of the 
displayed form labels. I thought that a <select1> will do it (I didn't 
want this mechanism to appear as a button).

The problem now is that I don't know how to combine my <select1> with a 
<toggle> element, which should switch between two <case>s.
How can I achieve that? I wrote something like:

<xforms:select1 appearance="compact">
<xforms:hint>Wählen Sie hier die Sprache der 
Formularfeldbeschriftungen</xforms:hint>
<xforms:label>Sprache</xforms:label>
<xforms:choices>
<xforms:item>
<xforms:label>Deutsch / German</xforms:label>
<xforms:value>de</xforms:value>
<xforms:toggle case="de" ev:event="xforms-activate"/>
</xforms:item>
<xforms:item>
<xforms:label>Englisch / English</xforms:label>
<xforms:value>en</xforms:value>
<xforms:toggle case="en" ev:event="xforms-activate"/>
</xforms:item>
</xforms:choices>
</xforms:select1>

But I don't think that it works. A very important point is that I don't 
want the exact values of each item to appear in my document instance. So 
it gets a bit more complicated.
Can you please help me on that?


wbr,
Roman
Received on Monday, 2 December 2002 06:17:25 GMT

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