mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Added new schema to test xs:pattern fields in XForms.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15725 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
23
source/test-resources/xforms/tests/schema/xspattern-test.xsd
Normal file
23
source/test-resources/xforms/tests/schema/xspattern-test.xsd
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:pat="http://www.alfresco.org/alfresco/xspattern"
|
||||
targetNamespace="http://www.alfresco.org/alfresco/xspattern"
|
||||
elementFormDefault="qualified">
|
||||
|
||||
<xs:simpleType name="PhoneNumber">
|
||||
<xs:restriction base="xs:normalizedString">
|
||||
<xs:pattern value="\([0-9][0-9][0-9]\) [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:complexType name="PersonType">
|
||||
<xs:sequence>
|
||||
<xs:element name="GivenName" type="xs:normalizedString" minOccurs="1" maxOccurs="1" />
|
||||
<xs:element name="Surname" type="xs:normalizedString" minOccurs="1" maxOccurs="1" />
|
||||
<xs:element name="PhoneNumber" type="pat:PhoneNumber" minOccurs="1" maxOccurs="1" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:element name="Person" type="pat:PersonType" />
|
||||
|
||||
</xs:schema>
|
Reference in New Issue
Block a user