|
<?xml version="1.0" encoding="UTF-8"?>
<!-- == FILE ================================================================
== name : Form.xsd
== project : Itenso User Forms
== created : Jani Giannoudis - 2008.10.30
== language : c#
== environment: .NET 2.0
== copyright : (c) 2008 by Itenso GmbH, Switzerland
========================================================================= -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.itenso.com/xml/schema/webuserforms"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns:wuf="http://www.itenso.com/xml/schema/webuserforms"
>
<xsd:annotation>
<xsd:documentation xml:lang="en">
Defines the types for building hierarchical user defined forms.
</xsd:documentation>
</xsd:annotation>
<xsd:simpleType name="FormTypeName">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="FormName">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="FormId">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="FormFieldName">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="FormUserName">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="FormField">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="name" type="wuf:FormFieldName" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="FormGroup">
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element name="field" type="wuf:FormField"/>
<xsd:element name="form" type="wuf:FormGroup"/>
</xsd:choice>
<xsd:attribute name="name" type="wuf:FormName" use="required"/>
</xsd:complexType>
<xsd:complexType name="Form">
<xsd:sequence>
<xsd:element name="field" type="wuf:FormField" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="form" type="wuf:FormGroup" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="type" type="wuf:FormTypeName" use="required"/>
<xsd:attribute name="name" type="wuf:FormName" use="required"/>
<xsd:attribute name="id" type="wuf:FormId" use="required"/>
<xsd:attribute name="created" type="xsd:dateTime" use="required"/>
<xsd:attribute name="created-by" type="wuf:FormUserName" use="required"/>
<xsd:attribute name="updated" type="xsd:dateTime" use="optional"/>
<xsd:attribute name="updated-by" type="wuf:FormUserName" use="optional"/>
<xsd:attribute name="locked" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:element name="form" type="wuf:Form">
<xsd:unique name="UniquenessOfFormFieldNames">
<xsd:selector xpath="field"/>
<xsd:field xpath="@name"/>
</xsd:unique>
</xsd:element>
</xsd:schema>
<!-- == EOF ============================================================= -->
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
👨 Senior .NET Software Engineer
🚀 My Open Source Projects
-
Time Period Library 👉
GitHub
-
Payroll Engine 👉
GitHub
Feedback and contributions are welcome.