[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: RE: Schematron Best Practice: A Schematron schema's a

  • From: "Rick Jelliffe" <rjelliffe@a...>
  • To: "Costello, Roger L." <costello@m...>
  • Date: Thu, 5 Jul 2007 10:19:08 +1000 (EST)

Re:  RE: Schematron Best Practice:  A Schematron schema's     a
I think the examples don't go far enough. Traceability from requirement to
implementation is terribly important, so that spurious constraints are not
introduced, so that the successful implementation of requirements can be
ascertained, and so that requirements that have unworkable ramifications
can be identified. For a large system, a non-traceable constraint is a
loose cannon.

In Schematron, you add traceability in the assertion text by adding a
"because" clause. In both Schematron and XSD you can add foreign attribute
or elements respectively for traceability metadata (e.g. an ID reference)
and both provide for documentation by URL refences.

    <attribute name="classification">
        <annotation >
          <appinfo source="http://www.eg.com/military/security.html">
             <my:requirement idref="A.1.3.4.5" />
          </appinfo>
          <documentation>
              The value of a classification must be one of top-secret,
              secret, confidential, or unclassified, because of MILSPEC
              XXXX (1999) section A.2.
          </documentation>
        </annotation>
        <simpleType>
            <enumeration value="top-secret" />
            <enumeration value="secret" />
            <enumeration value="confidential" />
            <enumeration value="unclassified" />
        </simpleType>
    </attribute>


    <sch:pattern name="Classifications">
       <sch:rule context="*[@classification]">
          <sch:assert test="@classification='top-secret' or
                            @classification='secret' or
                            @classification='confidential' or
                            @classification='unclassified'"
                  my:requirement="A.1.2.3.4.5"
                  see="http://www.eg.com/military/security.html">
              The value of a classification must be one of top-secret,
              secret, confidential, or unclassified, because of MILSPEC
              XXXX (1999) section A.2.
          </sch:assert>
       </sch:rule>
    </sch:pattern>

So even though both XSD and Schematron are quite matched for the
information they can carry, in Schematron you would expect that the user
would get the full text, while in XSD you have to try to try to figure out
how to make your application deliver annotation information as part of the
user message.

Cheers
Rick Jelliffe


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.