Added function element to xsd
authorNick Van den Bleeken <nick.van.den.bleeken@inventivegroup.com>
Thu, 24 May 2012 16:52:03 +0200
changeset 14 08b8b71216db
parent 13 86bdf169a5ea
child 15 153bae3cf078
Added function element to xsd
2.0/core/schema/xsd/XForms-20-Schema.xsd
--- a/2.0/core/schema/xsd/XForms-20-Schema.xsd	Thu May 24 16:51:13 2012 +0200
+++ b/2.0/core/schema/xsd/XForms-20-Schema.xsd	Thu May 24 16:52:03 2012 +0200
@@ -187,6 +187,46 @@
 		</xsd:complexType>
 	</xsd:element>
 
+	<xsd:element name="sequence">
+		<xsd:annotation>
+			<xsd:documentation>Definition of sequence element.</xsd:documentation>
+		</xsd:annotation>
+		<xsd:complexType>
+			<xsd:attributeGroup ref="xforms:Common.Attributes"/>
+			<xsd:attribute name="value" type="xforms:XPathExpression" use="required"/>
+		</xsd:complexType>
+	</xsd:element>
+	
+	<xsd:element name="script">
+		<xsd:annotation>
+			<xsd:documentation>Definition of script element.</xsd:documentation>
+		</xsd:annotation>
+		<xsd:complexType>
+			<xsd:attributeGroup ref="xforms:Common.Attributes"/>
+			<xsd:attribute name="type" type="xsd:string" use="required"/>
+			<xsd:attribute name="src" type="xsd:anyURI" use="optional"/>
+			<xsd:attribute name="charset" type="xsd:string" use="optional"/>
+		</xsd:complexType>
+	</xsd:element>
+	
+	<xsd:element name="function">
+		<xsd:annotation>
+			<xsd:documentation>Definition of function element.</xsd:documentation>
+		</xsd:annotation>
+		<xsd:complexType>
+			<xsd:sequence minOccurs="0" maxOccurs="unbounded">
+				<xsd:element ref="xforms:var"/>
+				<xsd:choice minOccurs="0" maxOccurs="unbounded">
+					<xsd:element ref="xforms:sequence"/>
+					<xsd:element ref="xforms:script"/>
+				</xsd:choice>
+				</xsd:sequence>
+			<xsd:attributeGroup ref="xforms:Common.Attributes"/>
+			<xsd:attribute name="signature" type="xsd:string" use="required"/>
+			<xsd:attribute name="override" type="xsd:boolean" use="optional"/>
+		</xsd:complexType>
+	</xsd:element>
+
 	<xsd:element name="extension">
 		<xsd:complexType>
 			<xsd:sequence>