[elbe-devel] [PATCH v2 3/6] schema: separate the volume attribute restriction into own volume-type

Torben Hohn torben.hohn at linutronix.de
Wed Oct 2 12:07:05 CEST 2019


xsdtoasciidoc can not parse an attribute without a type field.

Since "volume" is the only user of this internal type definition without
a label, adjust it to fit the common pattern.

Also fix the broken indentation.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
Reviewed-by: John Ogness <john.ogness at linutronix.de>
---
 schema/dbsfed.xsd | 65 ++++++++++++++++++++++++-----------------------
 1 file changed, 33 insertions(+), 32 deletions(-)

diff --git a/schema/dbsfed.xsd b/schema/dbsfed.xsd
index d0076cdae..36a9bc475 100644
--- a/schema/dbsfed.xsd
+++ b/schema/dbsfed.xsd
@@ -2554,38 +2554,39 @@
     <attribute ref="xml:base"/>
   </complexType>
 
-     <complexType name="src-cdrom-archive">
-       <annotation>
-         <documentation>
-           Holds a base64 encoded tar.bz2 file that is added to the src-cdrom.
-         </documentation>
-       </annotation>
-       <simpleContent>
-         <extension base="base64Binary">
-           <attribute name="volume">
-             <annotation>
-               <documentation>
-                 Use this to control where the archive is stored when using
-                 split src-cdroms.
-                 It consists of a comma-separated list of volume numbers.
-                 A volume number can be 0 to n-1 for n equals the number
-                 of volumes if the src-cdrom is split.
-                 A volume number can also be negative to identify a volume
-                 beginning from the last index.
-                 (-1: last, -2: second last, ...)
-                 If you do not specify this attribute, the archive is added
-                 to each volume.
-               </documentation>
-             </annotation>
-             <simpleType>
-                 <restriction base="string">
-                   <pattern value="(-?\d+,)*-?\d+|all"/>
-                 </restriction>
-             </simpleType>
-           </attribute>
-         </extension>
-       </simpleContent>
-     </complexType>
+  <complexType name="src-cdrom-archive">
+   <annotation>
+     <documentation>
+       Holds a base64 encoded tar.bz2 file that is added to the src-cdrom.
+     </documentation>
+   </annotation>
+   <simpleContent>
+     <extension base="base64Binary">
+       <attribute name="volume" type="rfs:volume-type">
+	 <annotation>
+	   <documentation>
+	     Use this to control where the archive is stored when using
+	     split src-cdroms.
+	     It consists of a comma-separated list of volume numbers.
+	     A volume number can be 0 to n-1 for n equals the number
+	     of volumes if the src-cdrom is split.
+	     A volume number can also be negative to identify a volume
+	     beginning from the last index.
+	     (-1: last, -2: second last, ...)
+	     If you do not specify this attribute, the archive is added
+	     to each volume.
+	   </documentation>
+	 </annotation>
+       </attribute>
+     </extension>
+   </simpleContent>
+  </complexType>
+
+  <simpleType name="volume-type">
+     <restriction base="string">
+       <pattern value="(-?\d+,)*-?\d+|all"/>
+     </restriction>
+  </simpleType>
 
   <complexType name="iso-opts">
     <annotation>
-- 
2.20.1




More information about the elbe-devel mailing list