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 Friday, 29 November 2002 03:42:09 UTC