|
|
<?xml version="1.0"?>
|
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
|
|
|
|
|
<!-- Parametros comuns nos Campos -->
|
|
|
<xs:include schemaLocation="vitruvio-form-common-attrs.xsd" />
|
|
|
|
|
|
<!-- Componentes padrao -->
|
|
|
<xs:include schemaLocation="vitruvio-form-basic-components.xsd" />
|
|
|
|
|
|
<!-- Componentes para uso com bancos de dados -->
|
|
|
<xs:include schemaLocation="vitruvio-form-db-components.xsd" />
|
|
|
|
|
|
<!-- Componentes especificos ao contexto da aplicacao -->
|
|
|
<xs:include schemaLocation="vitruvio-form-specific-components.xsd" />
|
|
|
|
|
|
<!-- Form containers -->
|
|
|
<xs:include schemaLocation="vitruvio-form-containers.xsd" />
|
|
|
|
|
|
<!-- Scripting defs -->
|
|
|
<xs:include schemaLocation="vitruvio-form-scripting.xsd" />
|
|
|
|
|
|
<!-- Suporte a Widgets -->
|
|
|
<xs:include schemaLocation="vitruvio-form-widgets.xsd" />
|
|
|
|
|
|
|
|
|
<!-- Base Form para implementacoes especificas -->
|
|
|
<xs:complexType name="form-definition">
|
|
|
<xs:sequence>
|
|
|
<xs:element name="name" type="xs:string" minOccurs="0" maxOccurs="1" />
|
|
|
<xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1" />
|
|
|
</xs:sequence>
|
|
|
<xs:attribute name="formKey" type="xs:string" use="required" />
|
|
|
<xs:attribute name="width" type="xs:string" />
|
|
|
<xs:attribute name="height" type="xs:string" />
|
|
|
<xs:attribute name="windowWidth" type="xs:string" />
|
|
|
<xs:attribute name="windowHeight" type="xs:string" />
|
|
|
<xs:attribute name="backgroundColor" type="xs:string" />
|
|
|
<xs:attribute name="customCss" type="xs:string" />
|
|
|
<xs:attribute name="composer" type="xs:string" />
|
|
|
<xs:attribute name="debugMode">
|
|
|
<xs:simpleType>
|
|
|
<xs:restriction base="xs:string">
|
|
|
<xs:enumeration value="OFF" />
|
|
|
<xs:enumeration value="ALL" />
|
|
|
<xs:enumeration value="RENDER" />
|
|
|
<xs:enumeration value="INIT_SCRIPTS" />
|
|
|
<xs:enumeration value="FORM_LOAD" />
|
|
|
</xs:restriction>
|
|
|
</xs:simpleType>
|
|
|
</xs:attribute>
|
|
|
<xs:attribute name="debugOutput">
|
|
|
<xs:simpleType>
|
|
|
<xs:restriction base="xs:string">
|
|
|
<xs:enumeration value="UI_MESSAGEBOX" />
|
|
|
<xs:enumeration value="UI_DEBUG" />
|
|
|
<xs:enumeration value="DATABASE" />
|
|
|
</xs:restriction>
|
|
|
</xs:simpleType>
|
|
|
</xs:attribute>
|
|
|
<xs:attribute name="debugFormat">
|
|
|
<xs:simpleType>
|
|
|
<xs:restriction base="xs:string">
|
|
|
<xs:enumeration value="HTML" />
|
|
|
<xs:enumeration value="FORMATED_TEXT" />
|
|
|
</xs:restriction>
|
|
|
</xs:simpleType>
|
|
|
</xs:attribute>
|
|
|
</xs:complexType>
|
|
|
|
|
|
<!-- Subformularios que podem ser anexados dentro de Forms RAIZ (ROOT) -->
|
|
|
<xs:complexType name="vitruvio-base-form">
|
|
|
<xs:complexContent>
|
|
|
<xs:extension base="form-definition">
|
|
|
<xs:sequence>
|
|
|
<xs:element name="afterFormRenderScript" type="script" minOccurs="0" maxOccurs="1" />
|
|
|
<xs:element name="preInitScript" type="script" minOccurs="0" maxOccurs="1" />
|
|
|
<xs:element name="initScript" type="script" minOccurs="0" maxOccurs="1" />
|
|
|
<xs:element name="validators" minOccurs="0" maxOccurs="1">
|
|
|
<xs:complexType>
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
|
<xs:choice>
|
|
|
<xs:element name="ScriptValidator" type="form-validation-script" />
|
|
|
</xs:choice>
|
|
|
</xs:sequence>
|
|
|
</xs:complexType>
|
|
|
</xs:element>
|
|
|
<xs:element name="components" minOccurs="1" maxOccurs="1">
|
|
|
<xs:complexType>
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
|
<xs:choice minOccurs="1" maxOccurs="unbounded">
|
|
|
<xs:element name="VerticalLayout" type="VerticalLayout" />
|
|
|
<xs:element name="HorizontalLayout" type="HorizontalLayout" />
|
|
|
<xs:element name="Panel" type="Panel" />
|
|
|
<xs:element name="TabLayout" type="TabLayout" />
|
|
|
<xs:element name="AbsoluteLayout" type="AbsoluteLayout" />
|
|
|
</xs:choice>
|
|
|
</xs:sequence>
|
|
|
</xs:complexType>
|
|
|
</xs:element>
|
|
|
</xs:sequence>
|
|
|
</xs:extension>
|
|
|
</xs:complexContent>
|
|
|
</xs:complexType>
|
|
|
|
|
|
</xs:schema>
|