--- OpenDocument-v1.3-schema.rng	2020-11-17 21:06:14.598948800 +0100
+++ OpenDocument-v1.3-schema_with_svg_proposal.rng	2020-11-19 13:56:58.573137900 +0100
@@ -11,13 +11,13 @@
         Open Document Format for Office Applications (OpenDocument) Version 1.3
         Relax-NG Schema
         OpenDocument-v1.3-schema.rng
 -->
 <!-- https://issues.oasis-open.org/browse/OFFICE-2153 -->
 
-<rng:grammar xmlns:anim="urn:oasis:names:tc:opendocument:xmlns:animation:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:db="urn:oasis:names:tc:opendocument:xmlns:database:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:smil="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+<rng:grammar xmlns:anim="urn:oasis:names:tc:opendocument:xmlns:animation:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:db="urn:oasis:names:tc:opendocument:xmlns:database:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:smil="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:W3Csvg="http://www.w3.org/2000/svg" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
   <rng:start>
     <rng:choice>
       <rng:ref name="office-document"/>
       <rng:ref name="office-document-content"/>
       <rng:ref name="office-document-styles"/>
       <rng:ref name="office-document-meta"/>
@@ -4973,12 +4973,13 @@
       <rng:choice>
         <rng:group>
           <rng:ref name="common-draw-data-attlist"/>
           <rng:empty/>
         </rng:group>
         <rng:ref name="office-binary-data"/>
+        <rng:ref name="W3Csvg-svg"/>
       </rng:choice>
       <!-- https://issues.oasis-open.org/browse/OFFICE-3933 -->
     </rng:element>
   </rng:define>
   <rng:define name="draw-fill-image-attlist">
     <rng:interleave>
@@ -5290,12 +5291,13 @@
   <rng:define name="draw-image">
     <rng:element name="draw:image">
       <rng:ref name="draw-image-attlist"/>
       <rng:choice>
         <rng:ref name="common-draw-data-attlist"/>
         <rng:ref name="office-binary-data"/>
+        <rng:ref name="W3Csvg-svg"/>
       </rng:choice>
       <rng:ref name="draw-text"/>
     </rng:element>
   </rng:define>
   <rng:define name="draw-image-attlist">
     <rng:interleave>
@@ -9620,12 +9622,13 @@
     <rng:optional>
       <rng:element name="style:background-image">
         <rng:ref name="style-background-image-attlist"/>
         <rng:choice>
           <rng:ref name="common-draw-data-attlist"/>
           <rng:ref name="office-binary-data"/>
+          <rng:ref name="W3Csvg-svg"/>
           <rng:empty/>
         </rng:choice>
       </rng:element>
     </rng:optional>
   </rng:define>
   <rng:define name="style-background-image-attlist">
@@ -13819,12 +13822,27 @@
   </rng:define>
   <rng:define name="svg-title">
     <rng:element name="svg:title">
       <rng:text/>
     </rng:element>
   </rng:define>
+  <rng:define name="svgMarkup">
+    <dc:description>To avoid inclusion of complete SVG schemas and make successors of SVG 1.0 possible, anything is allowed in the schema within a W3Csvg:svg top-level element. Restrictions are contained in the specification text.</dc:description>
+    <rng:zeroOrMore>
+      <rng:choice>
+        <rng:attribute>
+          <rng:anyName/>
+        </rng:attribute>
+        <rng:text/>
+        <rng:element>
+          <rng:anyName/>
+          <rng:ref name="svgMarkup"/>
+        </rng:element>
+      </rng:choice>
+    </rng:zeroOrMore>
+  </rng:define>
   <rng:define name="tab-cycles">
     <rng:choice>
       <rng:value>records</rng:value>
       <rng:value>current</rng:value>
       <rng:value>page</rng:value>
     </rng:choice>
@@ -17339,12 +17357,13 @@
     </rng:interleave>
   </rng:define>
   <rng:define name="text-list-level-style-image-attr">
     <rng:choice>
       <rng:ref name="common-draw-data-attlist"/>
       <rng:ref name="office-binary-data"/>
+      <rng:ref name="W3Csvg-svg"/>
     </rng:choice>
   </rng:define>
   <rng:define name="text-list-level-style-number-attr">
     <rng:interleave>
       <rng:optional>
         <rng:attribute name="text:style-name">
@@ -18265,12 +18284,17 @@
     <rng:choice>
       <rng:value>top</rng:value>
       <rng:value>center</rng:value>
       <rng:value>bottom</rng:value>
     </rng:choice>
   </rng:define>
+  <rng:define name="W3Csvg-svg">
+    <rng:element name="W3Csvg:svg">
+      <rng:ref name="svgMarkup"/>
+    </rng:element>
+  </rng:define>
   <rng:define name="xforms-bind-attlist">
     <rng:optional>
       <rng:attribute name="xforms:bind">
         <rng:ref name="string"/>
       </rng:attribute>
     </rng:optional>
