Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xml-dev] Is Schematron (using XPath 2.0) functionally a superset of XML Schemas?

From: "Michael Kay" <mike@--------.--->
To: "'bryan rasmussen'" <rasmussen.bryan@-----.--->
Date: 11/10/2007 10:00:00 AM
> I think in ISO Schematron content models are simple enough 
> http://www.oreillynet.com/xml/blog/2007/11/converting_xml_sche
> mas_to_sche_7.html

Yes, you can always use regular expressions to implement the grammar rules.
Interestingly, I considered that when I started work on my schema processor,
but abandoned it for two reasons: (a) because of the issue Rick mentions -
diagnostics, and (b) because you don't get any information back about type
assignment, which XSLT and XQuery need.

Since one of the major goals and benefits of Schematron is good diagnostics,
reducing a content model to a regular expression doesn't seem a particularly
smart idea.

Michael Kay
http://www.saxonica.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent