Subject: Re: How Schema Validation works
From: Frans Englich <frans.englich@xxxxxxxxx>
Date: Tue, 14 Sep 2004 21:12:53 +0000
|
On Tuesday 14 September 2004 20:46, karl@xxxxxxxxxxxxxxxxxxxx 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
|