PHP Classes

File: validation_sample1.xml

Recommend this page to a friend!
  Classes of Luis Argerich  >  Schematron  >  validation_sample1.xml  >  Download  
File: validation_sample1.xml
Role: ???
Content type: text/plain
Description: Example of Schematron script
Class: Schematron
Validate XML files using Schematron from PHP
Author: By
Last change:
Date: 15 years ago
Size: 465 bytes


Class file image Download
<schema xmlns="" > 
     <pattern name="Print both cases"> 
          <rule context="AAA"> 
               <assert test="BBB">BBB element is missing.</assert> 
               <report test="BBB">BBB element is present.</report> 
               <assert test="@name">AAA misses attribute name.</assert> 
               <report test="@name">AAA contains attribute name.</report>