[Bug 4618] Fix sch:rule samples to comply with the Schematron specification

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4618


virginia.smith@hp.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Keywords|editorial                   |needsReview




------- Comment #1 from virginia.smith@hp.com  2007-08-23 01:37 -------
changed the text(in 2 places in section 4) from:

<sch:rule context="smlfn:deref(u:Students/u:Student)">
  <sch:assert test="starts-with(u:ID,'99')">
      The specified ID <sch:value-of select="string(u:ID)"/> 
      does not begin with 99
  </sch:assert>

to:

<sch:rule context="u:Students/u:Student">
  <sch:assert test="smlfn:deref(.)[starts-with(u:ID,'99')]">
    The specified ID <sch:value-of select="string(u:ID)"/>
    does not begin with 99.
</sch:assert>



-------
Changed appendix C from:
            <sch:rule context="smlfn:deref(sm:Applications/sm:Application)">
              <sch:report test="sm:SecurityLevel!='High'">
                Application <sch:value-of select="string(sm:Name)"/>
                from <sch:value-of select="string(sm:Vendor)"/>
                does not have high security level
              </sch:report>
              <sch:assert test="sm:Vendor='TrustedVendor'">
                A secure workstation can only contain
                applications from TrustedVendor
              </sch:assert>
            </sch:rule>

to:
            <sch:rule context="sm:Applications/sm:Application">
              <sch:report test="smlfn:deref(.)[sm:SecurityLevel!='High']">
                Application <sch:value-of select="string(sm:Name)"/>
                from <sch:value-of select="string(sm:Vendor)"/>
                does not have high security level.
              </sch:report>
              <sch:assert test="smlfn:deref(.)[sm:Vendor='TrustedVendor']">
                A secure workstation can only contain
                applications from TrustedVendor.
              </sch:assert>
            </sch:rule>

Received on Thursday, 23 August 2007 01:37:11 UTC