W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2003

Re: Custom validations in XML Schema

From: Bob Schloss <rschloss@us.ibm.com>
Date: Tue, 27 May 2003 15:45:00 -0700
To: "Durga Prasad Perumalla" <prasad@acenta.com>, xmlschema-dev@w3.org
Message-ID: <OF62CB923D.5D6A645D-ON88256D33.007CAB4C-88256D33.007CF8C3@us.ibm.com>





You can use the appinfo element information item in your schema to describe
this.

However, the various validators on the market have not implemented a common
syntax for recognizing appinfo element information items that call for
validator extension modules/algorithms to be used, nor have they
implemented a common API so that people writing such an extension could
have it run with more than one validator.

Because this hasn't been done, many people are passing documents through a
pipeline of processors - the first being a schema validator, and then they
take either the original instance document or the PSVI and pass that to
their own processor, for example, a Schematron processor.

Bob Schloss
XML/XSL Transformational Systems
IBM Thomas J. Watson Research Center
Yorktown Heights, New York, USA




                                                                                                                                      
                      "Durga Prasad                                                                                                   
                      Perumalla"               To:       <xmlschema-dev@w3.org>                                                       
                      <prasad@acenta.co        cc:                                                                                    
                      m>                       Subject:  Custom validations in XML Schema                                             
                      Sent by:                                                                                                        
                      xmlschema-dev-req                                                                                               
                      uest@w3.org                                                                                                     
                                                                                                                                      
                                                                                                                                      
                      05/27/2003 03:24                                                                                                
                      PM                                                                                                              
                                                                                                                                      




Hi,

XML Schema validates an XML data for checking place, optional/required and
data type etc. Thats fine, but is there any where to give one or more
Custom validation method names in an XML schema at the element level so
that whenever the parser iterates the Schema while validating an XML file,
checks these customs validations and exposes/enables the user to define and
implement custom validations to be perfumed during this normal usual
validation process?


Regards,
Durga Prasad Perumalla
Software Architect
ACENTA
Work Phone: 479-709-7470 Ext 6341
E-mail:  prasad@acenta.com
Received on Tuesday, 27 May 2003 18:45:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:37 GMT