[Xsltforms-support] When external schema defined, FF cannot see primitive xsd types
Brought to you by:
alain-couthures
From: Kostis A. <ank...@gm...> - 2010-03-29 14:26:33
|
On FF, when an external schema is defined, xf:bind elements with 'type' attributes having xsd-types, i.e. "xsd:string, xsd:integer" fail to work, and the form on initialization complains about these types with a «Schema for namespace '' not defined for type string» msg. (or "Schema not defined" on older revisions) - On Chrome and (i think?) IE external schemas work OK. - I didn't manage to determine exactly the revision this behavior was introduced. The beta-2(rev260) release, on FF, although it did not work always quite-well with external schemas, it did *not* produce the err msg, and the attached-here test-case xform works indeed correctly. On rev262, the msg emerges on init, and the xsd-types ceases to work. I include below a test-case reproducing the error, also attached as separate files. Regards, Kostis Anagnostopoulos XForms file: -------------------- <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="xsltforms/xsltforms.xsl" encoding="UTF-8" type="text/xsl"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:data="http://some-uri.org/data" > <head> <title>external-schema</title> <xf:model id="model-main" schema="xsd.xml"> <xf:instance id="inst-main" > <data:root> <data:item /> <data:otherItem /> </data:root> </xf:instance> <xf:bind id="bind-item" nodeset="/data:root/data:item" type="data:Route" /> <xf:bind id="bind-otherItem" nodeset="/data:root/data:otherItem" type="xsd:string" /> </xf:model> </head> <body> Item: <xf:input bind="bind-item" incremental="true" /> OtherItem: <xf:input bind="bind-otherItem" incremental="true" /> </body> </html> XSD file: -------------------- <?xml version="1.0" encoding="UTF-8"?> <xsd:schema elementFormDefault="unqualified" attributeFormDefault="unqualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:data="http://some-uri.org/data" targetNamespace="http://some-uri.org/data" > <xsd:simpleType name="someInt"> <xsd:restriction base="xsd:integer"> </xsd:restriction> </xsd:simpleType> </xsd:schema> exa |