xsl-list
[Top] [All Lists]

Re: How Schema Validation works

2004-09-14 14:12:53
On Tuesday 14 September 2004 20:46, karl(_at_)meetscoresonline(_dot_)com wrote:
I'm trying to understand the basic premiss to something like this:

[cut out from schema]
<xsd:element name="LevelCode" type="sd:LevelCodeType" minOccurs="0" />

[cut out from schema]
<xsd:simpleType name="LevelCodeType">
 <xsd:restriction base="xsd:string">
 <xsd:pattern
value="[Ii][Ee][Pp]|[Uu][EeSs]|[Pp][Ss]|[Kk][Gg]|[1-9]|[1][0-2]" />
 </xsd:restriction>
</xsd:simpleType>


Is the xsd:pattern a regular expression?  What causes the validation to
occur?  How can the above be written in plain Enlish?

I think this is off topic. See:
http://www.xslt.com/html/xsl-list/2002-02/msg01095.html

Cheers,

                Frans



<Prev in Thread] Current Thread [Next in Thread>