W3C home > Mailing lists > Public > www-forms@w3.org > September 2010

invalid binding expression error

From: e-letter <inpost@gmail.com>
Date: Sun, 12 Sep 2010 09:05:42 +0100
Message-ID: <AANLkTi=da+KVXjb+NbgPwFSo-=qXqXCXaNb7FR3p4jzh@mail.gmail.com>
To: www-forms@w3.org
Readers,

I am trying to use the xforms (version 1) function of openoffice 3.
The native file format is an archive of xml files. I created a basic
document in writer and then preceeded to extract the odt file and open
the 'content.xml' file using a text editor (because using the writer
interface is too cumbersome and obscures my understanding of xforms
syntax). Below is the file. The question I have is that writer states
that the list menu (element 'select1', equivalent to 'listbox')
contains 'an invalid binding expression', but I cannot see where the
error is in the xforms elements.

<?xml version="1.0" encoding="UTF-8"?>
<office:document-content
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
xmlns:math="http://www.w3.org/1998/Math/MathML"
xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
xmlns:ooo="http://openoffice.org/2004/office"
xmlns:ooow="http://openoffice.org/2004/writer"
xmlns:oooc="http://openoffice.org/2004/calc"
xmlns:dom="http://www.w3.org/2001/xml-events"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:rpt="http://openoffice.org/2005/report"
xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:grddl="http://www.w3.org/2003/g/data-view#"
xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0"
office:version="1.2"
grddl:transformation="http://docs.oasis-open.org/office/1.2/xslt/odf2rdf.xsl">
	<office:scripts/>
	<office:font-face-decls>
		<style:font-face style:name="Liberation Serif"
svg:font-family="&apos;Liberation Serif&apos;"
style:font-family-generic="roman" style:font-pitch="variable"/>
		<style:font-face style:name="Liberation Sans"
svg:font-family="&apos;Liberation Sans&apos;"
style:font-family-generic="swiss" style:font-pitch="variable"/>
		<style:font-face style:name="DejaVu Sans"
svg:font-family="&apos;DejaVu Sans&apos;"
style:font-family-generic="system" style:font-pitch="variable"/>
	</office:font-face-decls>
	<office:automatic-styles>
		<style:style style:name="P1" style:family="paragraph">
			<style:paragraph-properties fo:text-align="start"/>
		</style:style>
		<style:style style:name="P2" style:family="paragraph">
			<style:paragraph-properties fo:text-align="center"/>
		</style:style>
		<style:style style:name="gr1" style:family="graphic">
			<style:graphic-properties fo:border="solid #c0c0c0"
style:wrap="run-through" style:number-wrapped-paragraphs="no-limit"
style:vertical-pos="middle" style:vertical-rel="line"
style:horizontal-pos="from-left" style:horizontal-rel="paragraph"
draw:wrap-influence-on-position="once-concurrent"
style:flow-with-text="false"/>
		</style:style>
		<style:style style:name="gr2" style:family="graphic">
			<style:graphic-properties style:wrap="run-through"
style:number-wrapped-paragraphs="no-limit" style:vertical-pos="middle"
style:vertical-rel="line" style:horizontal-pos="from-left"
style:horizontal-rel="paragraph"
draw:wrap-influence-on-position="once-concurrent"
style:flow-with-text="false"/>
		</style:style>
	</office:automatic-styles>
	<office:body>
		<office:text>
			<office:forms form:automatic-focus="false" form:apply-design-mode="false">
				<xforms:model id="entriespurposeanalysis">
					<xforms:instance>
						<purpose>
							<analysis type="epc">epc england</analysis>
							<analysis type="epc">epc scotland</analysis>
						</purpose>
					</xforms:instance>
					<xforms:bind id="analysistypes" nodeset="purpose/@type" type="xsd:string"/>
					<xsd:schema/>
				</xforms:model>
				<xforms:model id="general">
					<xforms:instance>
						<generalinformation>
							<generalinformation/>
						</generalinformation>
					</xforms:instance>
					<xforms:submission id="savepagegeneralinformation"
bind="purpose/@type" action="file://~tmp/testsubmit.xml" method="put"
indent="false" omit-xml-declaration="false" standalone="false"
replace="none"/>
					<xsd:schema/>
				</xforms:model>
				<form:form form:name="Standard" form:apply-filter="true"
form:command-type="table"
form:control-implementation="ooo:com.sun.star.form.component.Form"
office:target-frame="" xlink:href="">
					<form:listbox form:name="List Box 1"
form:control-implementation="ooo:com.sun.star.form.component.ListBox"
form:id="control1" form:dropdown="true" form:size="20"
form:bound-column="1" xforms:bind="analysistypes"
form:xforms-list-source="analysistypes">
						<form:properties>
							<form:property form:property-name="DefaultControl"
office:value-type="string"
office:string-value="com.sun.star.form.control.ListBox"/>
							<form:list-property form:property-name="DefaultSelection"
office:value-type="float"/>
						</form:properties>
					</form:listbox>
					<form:button form:name="save page button"
form:control-implementation="ooo:com.sun.star.form.component.CommandButton"
form:id="control2" form:label="save" form:button-type="submit"
office:target-frame="" xlink:href="" form:image-data=""
form:xforms-submission="save" form:delay-for-repeat="PT0.50S"
form:image-position="center">
						<form:properties>
							<form:property form:property-name="DefaultControl"
office:value-type="string"
office:string-value="com.sun.star.form.control.CommandButton"/>
						</form:properties>
					</form:button>
				</form:form>
			</office:forms>
			<text:sequence-decls>
				<text:sequence-decl text:display-outline-level="0"
text:name="Illustration"/>
				<text:sequence-decl text:display-outline-level="0" text:name="Table"/>
				<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
				<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
			</text:sequence-decls>
			<text:p text:style-name="Standard">General information</text:p>
			<text:p text:style-name="Standard"/>
			<text:p text:style-name="Standard">Purpose of analysis:
<draw:control text:anchor-type="as-char" draw:z-index="0"
draw:style-name="gr1" draw:text-style-name="P1" svg:width="4.543cm"
svg:height="0.809cm" draw:control="control1"/>
			</text:p>
			<text:p text:style-name="Standard"/>
			<text:p text:style-name="Standard">
				<draw:control text:anchor-type="as-char" draw:z-index="1"
draw:style-name="gr2" draw:text-style-name="P2" svg:width="3.497cm"
svg:height="0.809cm" draw:control="control2"/>
			</text:p>
		</office:text>
	</office:body>
</office:document-content>
Received on Sunday, 12 September 2010 08:06:10 GMT

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