Browse code

Added hyphens for readability

Apollia authored on 02/04/2017 23:09:54
Showing 3 changed files
... ...
@@ -7,13 +7,13 @@
7 7
   <p> wooooooof </p>
8 8
   <pattern> 
9 9
      <rule context="Dog" id="r1"  xml:lang="xx" zzz:xxxx="AAAAA" 
10
-         properties="dog-species  canine" >
10
+         properties="dog-species" >
11 11
      	
12
-     	<report test="count(floppyears) &gt; 0"  id="a1"
13
-     	   properties="floppyears">This dog has floppy ears!</report>
12
+     	<report test="count(floppy-ears) &gt; 0"  id="a1"
13
+     	   properties="floppy-ears">This dog has floppy ears!</report>
14 14
      	
15
-     	 <report test="count(floppyears) &lt; 1"  id="a1"
16
-     	   properties="nonfloppyears">This dog doesn't have floppy ears!</report>
15
+     	 <report test="count(floppy-ears) &lt; 1"  id="a2"
16
+     	   properties="non-floppy-ears">This dog doesn't have floppy ears!</report>
17 17
      	    
18 18
      </rule>
19 19
 
... ...
@@ -22,7 +22,7 @@
22 22
   
23 23
   <properties> 
24 24
     <property id="dog-species" name="species" value="canine" />
25
-    <property id="floppyears" name="floppyearsornot">floppy-ears</property>
26
-    <property id="nonfloppyears" name="floppyearsornot">non-floppy-ears</property>
25
+    <property id="floppy-ears" name="floppy-ears-or-not">floppy-ears</property>
26
+    <property id="non-floppy-ears" name="floppy-ears-or-not">non-floppy-ears</property>
27 27
   </properties>
28 28
 </schema>
29 29
\ No newline at end of file
... ...
@@ -1,4 +1,4 @@
1 1
 <?xml version="1.0"?>
2 2
 <Dog>
3
-	<floppyears/>
3
+	<floppy-ears/>
4 4
 </Dog>
5 5
\ No newline at end of file
... ...
@@ -8,11 +8,13 @@ if ( In_PHP_CGI_Mode )
8 8
 	Echo_XHTML_Header();
9 9
 }
10 10
 
11
+
11 12
 $navlinks="<p><hr><center><small><a href='#uncompiled-schematron'>The Uncompiled Schematron Schema</a> | <a href='#compiled-schematron'>The Schematron Schema Compiled into XSLT</a> | <a href='#result1'>Result 1</a> | <a href='#result2'>Result 2</a></small></center><p><br>";
12 13
 
13 14
 echo "<a name='uncompiled-schematron'></a>";
14 15
 echo $navlinks;
15 16
 
17
+
16 18
 $schematron_schema=file_get_contents("dog-properties.sch");
17 19
 
18 20
 Webecho("The uncompiled Schematron schema:
... ...
@@ -31,7 +33,6 @@ $compiled_schematron = $Mr_XSLT->transformToString();
31 33
 
32 34
 
33 35
 
34
-
35 36
 echo "<a name='compiled-schematron'></a>";
36 37
 echo $navlinks;
37 38