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
90
tools/dbxml_validator/xml_colassign.xsd
Normal file
90
tools/dbxml_validator/xml_colassign.xsd
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en">
|
||||
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Add a ColumnAssignmentType to the schema definition for SQL data-change
|
||||
statements in XML Query Language in XpressEngine.
|
||||
|
||||
XpressEngine is an open source framework for creating web sites.
|
||||
http://xpressengine.org/
|
||||
|
||||
Author: Adrian Constantin, Arnia Software (adrian.constantin@arnia.ro)
|
||||
Date: 08 mar 2012
|
||||
|
||||
Include graph:
|
||||
|
||||
+-- xml_create_table.xsd
|
||||
+-- xml_query.xsd
|
||||
+-- xml_datachange.xsd
|
||||
+-- xml_colassign.xsd *****
|
||||
+-- xml_insert_generic.xsd
|
||||
| +-- xml_insert.xsd
|
||||
| +-- xml_insert_select.xsd
|
||||
|
|
||||
+-- xml_select.xsd
|
||||
+-- xml_update.xsd
|
||||
+-- xml_delete.xsd
|
||||
|
||||
The ColumnAssignamentType allows a column to be assigned a value, to be
|
||||
used to describe INSERT and UPDATE statements.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
|
||||
<!--
|
||||
The main schema definition for the SQL data-change statements in XML
|
||||
Query language (this in turn includes the generic schema definition
|
||||
for the language).
|
||||
-->
|
||||
<xsd:include schemaLocation="xml_datachange.xsd" />
|
||||
|
||||
<xsd:complexType name="BaseColumnAssignamentType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Basic type for a column assignament in an
|
||||
UPDATE/INSERT.
|
||||
|
||||
Maybe an expression sub-query could be allowed here as the new
|
||||
column value.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
|
||||
<xsd:complexContent>
|
||||
<xsd:restriction base="ColumnType">
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
<xsd:attribute name="alias" use="prohibited" />
|
||||
<xsd:attribute name="click_count" use="prohibited" />
|
||||
</xsd:restriction>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="ColumnAssignamentType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
A column in a column assignament for an SQL UPDATE/INSERT
|
||||
statement.
|
||||
|
||||
"var" attribute is optional, if omitted the column name is
|
||||
the variable name.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="BaseColumnAssignamentType">
|
||||
<xsd:attribute name="var" type="xsd:string" use="optional" />
|
||||
<xsd:attributeGroup ref="argumentAttrs" />
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="ColumnsAssignamentType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
The list of column assignaments in an INSERT/UPDATE statement.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
|
||||
<xsd:sequence>
|
||||
<xsd:element name="column" type="ColumnAssignamentType" minOccurs="1" maxOccurs="unbounded" />
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:schema>
|
||||
Loading…
Add table
Add a link
Reference in a new issue