[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-zine
Subject: [Kde-zine] CVS: xml different-test.xsd,1.1,1.2
From: zine () thebox ! nebsllc ! com
Date: 2001-06-23 21:38:01
[Download RAW message or body]
Update of /home/zine/xml
In directory thebox:/tmp/cvs-serv15864
Modified Files:
different-test.xsd
Log Message:
no, I am not spamming the mailing list. Added a few enhacements I hope Dirk will be happy to see
Index: different-test.xsd
===================================================================
RCS file: /home/zine/xml/different-test.xsd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** different-test.xsd 23 Jun 2001 21:14:21 -0000 1.1
--- different-test.xsd 23 Jun 2001 21:37:58 -0000 1.2
***************
*** 8,13 ****
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="topic" type="xsd:string" /
! <xsd:attribute name="lang" type="xsd:string" /><!-- DEFINING SOME STANDARD TYPES -->
</xsd:attributeGroup>
<xsd:element name="title" type="xsd:string" />
--- 8,29 ----
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="topic" type="xsd:string" /
! <xsd:attribute name="lang" type="xsd:string" />
</xsd:attributeGroup>
+ <!-- DEFINING SOME STANDARD TYPES -->
+ <xsd:simpleType name="dateType">
+ <xsd:restriction base="xsd:date"/>
+ </xsd:simpleType>
+ <xsd:simpleType name="snameType">
+ <xsd:restriction base="xsd:string">
+ <xsd:maxLength value="4"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:simpleType name="emailType">
+ <xsd:restriction base="xsd:string">
+ <xsd:pattern
+ value="^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$"/>
+ </xsd:restriction>
+ </xsd:simpleType>
<xsd:element name="title" type="xsd:string" />
***************
*** 55,60 ****
<xsd:sequence>
<xsd:element name="name" type="xsd:string" />
! <xsd:element name="email" type="xsd:string" />
! <xsd:element name="sname" type="xsd:string" />
</xsd:sequence>
<xsd:attribute name="type" type="xsd:string" />
--- 71,76 ----
<xsd:sequence>
<xsd:element name="name" type="xsd:string" />
! <xsd:element name="email" type="emailType" />
! <xsd:element name="sname" type="snameType" />
</xsd:sequence>
<xsd:attribute name="type" type="xsd:string" />
***************
*** 66,70 ****
</xsd:complexType>
</xsd:element>
! <xsd:element name="date" type="xsd:string" />
<xsd:element ref="title" />
<!-- HEAD END -->
--- 82,86 ----
</xsd:complexType>
</xsd:element>
! <xsd:element name="date" type="dateType" />
<xsd:element ref="title" />
<!-- HEAD END -->
_______________________________________________
kde-zine mailing list
kde-zine@master.kde.org
http://master.kde.org/mailman/listinfo/kde-zine
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic