Hi,
I have a instance referring to a XML Schema, which uses elements with a xs:complexType to define attribute types, e.g. ----------- data-types.xsd ------------ <xs:element name="test2" type="tAttributeTest2"/> ... skip ... <xs:complexType name="tAttributeTest2"> <xs:attribute name="attr1" type="xs:boolean"/> </xs:complexType> ----------- data-types.xsd ------------ I then have a XForms input control <xf:input ref="/Data/test2/@attr1"> and would expect this input to be rendered as checkbox. When running this in Orbeon Forms 3.9.0.201105152046, I get a regular text input field, like it was bound to a xs:string node. Is this a known limitation of Orbeon Forms, or a bug somewhere? Running the instance document with the schema through MSV and dumping the PSVI I see that MSV is correctly assigning a boolean type to the attribute nodes. I uploaded a Orbeon test application at http://philipp.wagner.name/temp/test-schema-attribute.tar.bz2, the relevant XForms files are: http://philipp.wagner.name/temp/test-schema-attribute/instance-data.xml http://philipp.wagner.name/temp/test-schema-attribute/data-types.xsd http://philipp.wagner.name/temp/test-schema-attribute/test.xhtml Philipp -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Philipp,
Good catch. I entered a bug and fixed it: Issue: https://github.com/orbeon/orbeon-forms/issues/73 Commit: https://github.com/orbeon/orbeon-forms/commit/e1a5ae6823f38910e77009a9a99375171963b7a1 -Erik On Wed, Mar 14, 2012 at 9:19 AM, Philipp Wagner <[hidden email]> wrote: > Hi, > > I have a instance referring to a XML Schema, which uses elements with a > xs:complexType to define attribute types, e.g. > > ----------- data-types.xsd ------------ > <xs:element name="test2" type="tAttributeTest2"/> > > ... skip ... > > <xs:complexType name="tAttributeTest2"> > <xs:attribute name="attr1" type="xs:boolean"/> > </xs:complexType> > ----------- data-types.xsd ------------ > > I then have a XForms input control <xf:input ref="/Data/test2/@attr1"> and > would expect this input to be rendered as checkbox. When running this in > Orbeon Forms 3.9.0.201105152046, I get a regular text input field, like it > was bound to a xs:string node. > > Is this a known limitation of Orbeon Forms, or a bug somewhere? Running the > instance document with the schema through MSV and dumping the PSVI I see > that MSV is correctly assigning a boolean type to the attribute nodes. > > I uploaded a Orbeon test application at > http://philipp.wagner.name/temp/test-schema-attribute.tar.bz2, the relevant > XForms files are: > > http://philipp.wagner.name/temp/test-schema-attribute/instance-data.xml > http://philipp.wagner.name/temp/test-schema-attribute/data-types.xsd > http://philipp.wagner.name/temp/test-schema-attribute/test.xhtml > > Philipp > > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Am 17.03.2012 01:16, schrieb Erik Bruchez:
> Good catch. I entered a bug and fixed it: Thanks Erik for the quick fix, I confirmed the fix with the current nightly build. Philipp -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Philipp,
Excellent, thanks for confirming. -Erik On Mon, Mar 19, 2012 at 1:45 AM, Philipp Wagner <[hidden email]> wrote: > Am 17.03.2012 01:16, schrieb Erik Bruchez: > >> Good catch. I entered a bug and fixed it: > > > Thanks Erik for the quick fix, I confirmed the fix with the current nightly > build. > > Philipp > > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |