<?xml version="1.0"?>
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
|
|
|
<!--
|
|
Esquemas de escripting para formularios do vitruvio
|
|
-->
|
|
|
|
<!-- Definicao basica de um Script -->
|
|
<xs:complexType name="base-script">
|
|
<xs:simpleContent>
|
|
<xs:extension base="xs:string">
|
|
<xs:attribute name="language" use="required">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:string">
|
|
<xs:enumeration value="JavaScript"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="producedObject" type="xs:string" />
|
|
<xs:attribute name="provideVariables" type="xs:boolean" default="false" />
|
|
<xs:attribute name="name" type="xs:string" />
|
|
<xs:attribute name="description" type="xs:string" />
|
|
</xs:extension>
|
|
</xs:simpleContent>
|
|
</xs:complexType>
|
|
|
|
<xs:complexType name="script">
|
|
<xs:complexContent>
|
|
<xs:extension base="base-script">
|
|
<xs:attribute name="id" type="xs:string" />
|
|
</xs:extension>
|
|
</xs:complexContent>
|
|
</xs:complexType>
|
|
|
|
<xs:complexType name="script-id-required">
|
|
<xs:complexContent>
|
|
<xs:extension base="base-script">
|
|
<xs:attribute name="id" type="xs:string" use="required" />
|
|
</xs:extension>
|
|
</xs:complexContent>
|
|
</xs:complexType>
|
|
|
|
<!-- Definicao de um script de validacao -->
|
|
<xs:complexType name="form-validation-script">
|
|
<xs:simpleContent>
|
|
<xs:extension base="script">
|
|
<xs:attribute name="execution">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:string">
|
|
<xs:enumeration value="SAVE" />
|
|
<xs:enumeration value="COMPLETE" />
|
|
<xs:enumeration value="AFTER_CONFIRM_COMPLETE" />
|
|
<xs:enumeration value="BOTH" />
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="supressMessages" type="xs:boolean" use="optional" />
|
|
</xs:extension>
|
|
</xs:simpleContent>
|
|
</xs:complexType>
|
|
|
|
</xs:schema>
|