[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How Schema Validation works

Subject: RE: How Schema Validation works
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 14 Sep 2004 22:37:19 +0100
schema xsd pattern
Completely off-topic, I'm afraid - you want the xmlschema-dev@xxxxxx list at
W3.

Yes, the pattern is a regular expression. Validation occurs when you decide
to validate your XML document against the schema. 

In plain English, a level code must be IEP or UE or US or PS or KG or a
number in the range 1 to 12, with lower case permitted as an alternative to
upper case.

Michael Kay

> -----Original Message-----
> From: karl@xxxxxxxxxxxxxxxxxxxx [mailto:karl@xxxxxxxxxxxxxxxxxxxx] 
> Sent: 14 September 2004 21:47
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  How Schema Validation works
> 
> 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?
> 
> Thanks,
> Karl

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.