|
|
<?xml version="1.0"?>
|
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
|
|
|
|
|
<xs:include schemaLocation="vitruvio-form-scripting.xsd" />
|
|
|
|
|
|
<!-- Especificacao de estrutura de validadores -->
|
|
|
|
|
|
<!-- Tipos de validadores aceitos -->
|
|
|
<xs:complexType name="regexValidation">
|
|
|
<xs:sequence>
|
|
|
<xs:element name="expr" type="xs:string" />
|
|
|
<xs:element name="message" type="xs:string" />
|
|
|
</xs:sequence>
|
|
|
</xs:complexType>
|
|
|
|
|
|
<!-- Todos os validadores -->
|
|
|
<xs:complexType name="fieldValidators">
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
|
<xs:choice>
|
|
|
<xs:element name="regex" type="regexValidation" minOccurs="0" maxOccurs="unbounded" />
|
|
|
<xs:element name="script" type="script" minOccurs="0" maxOccurs="unbounded" />
|
|
|
</xs:choice>
|
|
|
</xs:sequence>
|
|
|
</xs:complexType>
|
|
|
|
|
|
<!-- Validacao por script -->
|
|
|
<xs:complexType name="scriptValidators">
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
|
<xs:choice>
|
|
|
<xs:element name="script" type="script" minOccurs="0" maxOccurs="unbounded" />
|
|
|
</xs:choice>
|
|
|
</xs:sequence>
|
|
|
</xs:complexType>
|
|
|
|
|
|
</xs:schema>
|