OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Status of ISO Schematron

[ Lists Home | Date Index | Thread Index ]

Fraser Goffin wrote:

> When you say 'extension elements' do you mean use your own custom 
> elements/attributes where the schemaTron schema provides for 
> extensibility, or are you talking about something else entirely ? 

Schematron allows foreign-namespace elements and attributes everywhere IIRC.

So you while you cannot change the rule semantics, you can certainly add 
extra annotating
capabilities. For example, you could add

<sch:rule  context="date"/>
  <sch:assert  test="string-length(.) &gt; 8">A date should be 
dd/mm/yyyy format</sch:assert>
  <my:mailto to="mcguffin@gmail.com" sj="Someone has used the date 
element!" />

ISO Schematron also has a flag facility, where  named flags can be set 
by assertion failures.
These give a standard way to extract and arbitrary number boolean facts 
about a document wthout adding any output-specific information, or 
requring messages to have a particular format that gets reparsed, etc.

Rick Jelliffe


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS