Files
alfresco-community-repo/source/test-resources/xforms/unit-tests/simple-test/inheritence-test.xsd
Ariel Backenroth 7e22f28905 beginning to implement linton's updates to xforms screen.
- added ViewRoot which presents a title, rather than a bounding root group.  made the xform generator place all components within a single root group to support this.

- adding highlighting for the currently selected repeat item.  found a bunch of bugs in how the current repeat item is being set.  only dispatching the origin repeat select index for nested repeats.  correctly setting the repeat index after move operation

- updated css to match latest css changes to the product.

began implementing support for inherited complex schema types.
- adding support for xf:switch and xf:toggle in xforms.js.

- refactored and cleaned up a particularly hard to understand part of the xform generator which handles inherited complex types.

- not pretty printing the resulting xml from create web content or edit as it introduces unwanted text nodes which can confuse chiba when xsi:nil is used (i'm using xsi:nil to disable validation when i use xsi:type since otherwise there's a NullPointerException in chiba because it doesn't understand complex type definitions).

- need to think about the design a bit more before continuing with this.  chiba has limitations with how it handles xsi:type which makes it difficult to figure out the correct case to select at schema generation time, especially if the item is repeated.  also, currently the generator emits a select1 to select the type which controls the switch.  i'm not sure whether i actually want a separate select control to manage the switch...

added a test for date types and removed the old one.

added a test for inherited types.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4886 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-01-20 00:42:49 +00:00

46 lines
1.7 KiB
XML

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:alf="http://www.alfresco.org"
elementFormDefault="qualified" >
<xs:complexType name="complex-type">
<xs:sequence>
<xs:element name="fixed_string_element" type="xs:string" minOccurs="1" maxOccurs="1" fixed="fixed value"/>
</xs:sequence>
<xs:attribute name="required_string_attribute" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="inheritence-type">
<xs:complexContent>
<xs:extension base="complex-type">
<xs:sequence>
<xs:element name="additional_required_string_element" type="xs:string" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="additional_fixed_string_attribute" type="xs:string" use="required" fixed="additional fixed value"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<!--
<xs:complexType name="extended-inheritence-type">
<xs:complexContent>
<xs:extension base="inheritence-type">
<xs:sequence>
<xs:element name="another_required_integer_element" type="xs:integer" use="required"/>
</xs:sequence>
<xs:attribute name="another_fixed_integer_attribute" type="xs:integer" use="required" fixed="1413"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
-->
<xs:element name="inheritence-test">
<xs:complexType>
<xs:sequence>
<xs:element name="complex_type" type="complex-type" minOccurs="1" maxOccurs="1"/>
<xs:element name="inherited_type" type="inheritence-type" minOccurs="1" maxOccurs="1"/>
<!-- xs:element name="extended_inherited_type" type="extended-inheritence-type" minOccurs="1" maxOccurs="1"/ -->
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>