Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Schematron

Express an XML vocabulary as a series of simple rules

Contributors:  ISO

Summary:  Schematron is a rules-based XML schema language used to define and limit XML vocabularies. Discover the benefits of using the Schematron standard, either on its own or in conjunction with other schema languages.

Date:  25 Apr 2007 (Published 06 Feb 2007)
Level:  Intermediate

Activity:  3174 views
Comments:  

Schematron is a rules-based XML schema language used to define and limit XML vocabularies. Discover the benefits of using the Schematron standard, either on its own or in conjunction with other schema languages.

The Schematron Assertion Language (this link is to a zip file, which is, unfortunately, the only way to obtain this ISO standard text) [ISO standard ISO/IEC 19757-3:2006] is a schema language that uses a different approach from Document Type Definition (DTD), RELAX NG, or W3C XML Schema (WXS). In Schematron, you register a collection of rules against which the XML document is to be checked, rather than mapping out the entire tree structure of the XML format you're trying to express from root node to the leaves. This makes Schematron useful not only as a standalone schema language, but also as a complement to other schema languages. It also features constraints that you can express in Schematron that you cannot express in other languages. A common example is a co-occurrence constraint, where the constraint on one part of a document depends on another. For example, a constraint of the maximum value of a day field within an element representing a date would depend on the month, and even year, fields. WXS offers no way to express such constraints, and RELAX NG offers limited capability. Schematron allows you to express such constraints quite readily.


Resources

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=XML
ArticleID=193481
SummaryTitle=Schematron
publish-date=04252007