Browse Source

Added rng for external images

Manuel Gall 4 years ago
parent
commit
fa4c58f61f
2 changed files with 20 additions and 0 deletions
  1. 13 0
      server/rngs/externalImage.rng
  2. 7 0
      server/rngs/t_externalImage.rng

+ 13 - 0
server/rngs/externalImage.rng

@@ -0,0 +1,13 @@
+<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+  
+  <define name="externalImage">
+    <element name="externalImage">
+      <element name="url">
+        <text/>
+      </element>    
+      <element name="lang">
+        <text/>
+      </element>     
+    </element>
+  </define>
+</grammar>

+ 7 - 0
server/rngs/t_externalImage.rng

@@ -0,0 +1,7 @@
+<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+  <include href="externalImage.rng"/>
+
+  <start>
+    <ref name="externalImage"/>
+  </start>
+</grammar>