mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
Added script to validate XML Query/Schema Language files
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10544 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
532a6a0645
commit
6394a5c278
33 changed files with 4202 additions and 0 deletions
57
tools/dbxml_validator/xml_select.xsd
Normal file
57
tools/dbxml_validator/xml_select.xsd
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en">
|
||||
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Redefines the main XML Query Language schema in XE to validate SQL SELECT
|
||||
statements.
|
||||
|
||||
XpressEngine is an open source framework for creating your web sites.
|
||||
http://xpressengine.org/
|
||||
|
||||
File: tools/xml_select.xsd
|
||||
Author: Adrian Constantin, Arnia Software (adrian.constantin@arnia.ro)
|
||||
Date: 08 mar 2012
|
||||
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
|
||||
<xsd:redefine schemaLocation="xml_colassign.xsd">
|
||||
|
||||
<xsd:complexType name="SqlStatementType">
|
||||
<xsd:complexContent>
|
||||
<xsd:restriction base="SqlStatementType">
|
||||
<xsd:all>
|
||||
<xsd:element name="columns" minOccurs="0" type="ColumnsType" />
|
||||
<xsd:element name="tables" minOccurs="1" type="TablesType">
|
||||
<xsd:unique name="table_aliases6">
|
||||
<xsd:selector xpath="table" />
|
||||
<xsd:field xpath="@alias" />
|
||||
</xsd:unique>
|
||||
</xsd:element>
|
||||
<xsd:element name="conditions" minOccurs="0" type="ConditionsType" />
|
||||
<xsd:element name="groups" minOccurs="0" type="GroupsType">
|
||||
<xsd:unique name="sql_statement_groups">
|
||||
<xsd:selector xpath="group" />
|
||||
<xsd:field xpath="@column" />
|
||||
</xsd:unique>
|
||||
</xsd:element>
|
||||
<xsd:element name="navigation" minOccurs="0" type="MainStatementNavigationType" />
|
||||
<xsd:element name="index_hint" minOccurs="0" type="IndexHintsType" />
|
||||
</xsd:all>
|
||||
|
||||
<xsd:attribute name="action" type="selectActionAttributeType" use="required" />
|
||||
|
||||
</xsd:restriction>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
</xsd:redefine>
|
||||
|
||||
<xsd:simpleType name="selectActionAttributeType">
|
||||
<xsd:restriction base="actionAttributeType">
|
||||
<xsd:pattern value="[sS][eE][lL][eE][cC][tT]" />
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
<xsd:element name="query" type="SqlStatementType" />
|
||||
|
||||
</xsd:schema>
|
||||
Loading…
Add table
Add a link
Reference in a new issue