Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Let's Start Ruling > Richer Diagnostics

5.3. Richer Diagnostics

In the previous examples, you wrote text to display when errors are raised in the assert and report elements themselves.

NOTE

Other schema languages such as W3C XML Schema and RELAX NG do not let the user define the text of his error messages. These messages are generated by the schema processors and can be, depending on the tool and the context, very hard to read—even for geeks. If it is very important for you to generate user-friendly error messages that end users can understand, consider using Schematron for this very reason.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial