W3C home > Mailing lists > Public > www-forms@w3.org > January 2003

AW: Not storing select values in the XForms instance

From: Roman Huditsch <roman.huditsch@hico.com>
Date: Thu, 2 Jan 2003 16:32:41 +0100
Message-ID: <0C79A363CB0321418927D0CB1AD0403C095ACC@hicoetsrv000006.hico.local>
To: Guillermo Menéndez <gmcorral@terra.es>, <www-forms@w3.org>


thanks for the hint :) But unfortunately I couldn't make it work. My controls do not get displayed. 
I tried it with some very simple code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms/cr" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:tm="http://www.topicmaps.org/xtm/1.0/" xmlns:xlink="http://www.w3.org/1999/xlink">
			<title>XML Topic Map-Editor v01.00 &#169;2002 by Roman Huditsch</title>
				<xforms:model schema="XTM-Schema.xsd" id="topicMapModel">
			<xforms:submission id="submit1" method="post" action="" version="1.0" omit-xml-declaration="yes" />
			<!--xforms:submission id="submit1" localfile="temp2.xml" method="postxml" target2="http://www.hut.fi/" /-->
			<xforms:instance id="xtm">
				<topicMap xmlns="http://www.topicmaps.org/xtm/1.0/" xmlns:xlink="http://www.w3.org/1999/xlink">
					<topic id="Topic ID">
							<topicRef xlink:href="" />
							<baseNameString>Topic Name</baseNameString>
								<topicRef xlink:href="" />
							<resourceRef xlink:href="" />
			<xforms:instance id="temp">
		<strong>XML Topic Map-Editor</strong>
			<xforms:select1 ref="xforms:instance('temp')/tempInstance/language">
				<xforms:hint>Wählen Sie hier die Sprache der Formularfeldbeschriftungen / Select the language for the form labels</xforms:hint>
				<xforms:label>Sprache / Language</xforms:label>
						<xforms:label>Deutsch / German</xforms:label>
						<xforms:label>Englisch / English</xforms:label>

I tested it with the latest X-Smiles Version (nightly built from 2. January). I also tried it with several different namespace definitions for the temp instance, but no progress either....


-----Ursprüngliche Nachricht-----
Von: Guillermo Menéndez [mailto:gmcorral@terra.es]
Gesendet: Donnerstag, 2. Januar 2003 16:09
An: Roman Huditsch; www-forms@w3.org
Betreff: Fw: Not storing select values in the XForms instance

I forgot to point that if you use this solution you will need to add the
function "instance('....')" to all  your binding expressions, to refer to
the correct instance within the model.

----- Original Message -----
From: "Guillermo Menéndez" <gmcorral@terra.es>
To: "Roman Huditsch" <roman.huditsch@hico.com>; <www-forms@w3.org>
Sent: Thursday, January 02, 2003 4:00 PM
Subject: Re: Not storing select values in the XForms instance


I think a possible solution for your problem could be adding a new instance
within your XForm model, for example (using German as default language):

<xforms:instance id="temp">
        <language>de</language >

The select1 control could be like this :

<xforms:select1 appearance="compact" ref="instance('temp')/language">

Multiple instances per model are supported on Novell xForms T.P. and on
X-Smiles 0.71.

Guillermo Menéndez
Received on Thursday, 2 January 2003 10:34:56 UTC

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