[gtk-doc] devhelp: update schema to match what we actually generate



commit 6e4ca33c7c142b490876a1e385595bf941775332
Author: Stefan Sauer <ensonic users sf net>
Date:   Fri May 15 22:26:38 2015 +0200

    devhelp: update schema to match what we actually generate
    
    Fix datatypes and add missing attributes and values.

 devhelp2.xsd |   37 +++++++++++++++++++++++--------------
 1 files changed, 23 insertions(+), 14 deletions(-)
---
diff --git a/devhelp2.xsd b/devhelp2.xsd
index 6a8815c..d56f86b 100644
--- a/devhelp2.xsd
+++ b/devhelp2.xsd
@@ -14,14 +14,14 @@ xsltproc -o devhelp2.xsd.html $HOME/download/xs3p-1.1.3/xs3p.xsl devhelp2.xsd
     <xsd:documentation>
       Devhelp2 files are use in the 'devhelp' documentation browser.
     </xsd:documentation>
-  </xsd:annotation>  
+  </xsd:annotation>
 
   <xsd:simpleType name="keyword-type">
     <xsd:annotation>
       <xsd:documentation>
         Known keyword types.
       </xsd:documentation>
-    </xsd:annotation>  
+    </xsd:annotation>
     <xsd:restriction base="xsd:string">
       <xsd:enumeration value="constant"/>
       <xsd:enumeration value="enum"/>
@@ -33,15 +33,16 @@ xsltproc -o devhelp2.xsd.html $HOME/download/xs3p-1.1.3/xs3p.xsl devhelp2.xsd
       <xsd:enumeration value="typedef"/>
       <xsd:enumeration value="union"/>
       <xsd:enumeration value="variable"/>
+       <xsd:enumeration value=""/>
     </xsd:restriction>
   </xsd:simpleType>
-  
+
   <xsd:simpleType name="language-type">
     <xsd:annotation>
       <xsd:documentation>
         Known programing languages.
       </xsd:documentation>
-    </xsd:annotation>  
+    </xsd:annotation>
     <xsd:restriction base="xsd:string">
       <xsd:enumeration value="c"/>
       <xsd:enumeration value="c++"/>
@@ -59,7 +60,7 @@ xsltproc -o devhelp2.xsd.html $HOME/download/xs3p-1.1.3/xs3p.xsl devhelp2.xsd
       <xsd:documentation>
         Title of the reference manual.
       </xsd:documentation>
-    </xsd:annotation>  
+    </xsd:annotation>
   </xsd:attribute>
   <xsd:attribute name="link" type="xsd:string">
     <xsd:annotation>
@@ -67,35 +68,35 @@ xsltproc -o devhelp2.xsd.html $HOME/download/xs3p-1.1.3/xs3p.xsl devhelp2.xsd
         Entry point to the manual. Can be given as a relative path to the
         location of the devhelp2 file..
       </xsd:documentation>
-    </xsd:annotation>  
+    </xsd:annotation>
   </xsd:attribute>
   <xsd:attribute name="author" type="xsd:string">
     <xsd:annotation>
       <xsd:documentation>
         Author of the document. Multiple authors are separated by ','.
       </xsd:documentation>
-    </xsd:annotation>  
+    </xsd:annotation>
   </xsd:attribute>
   <xsd:attribute name="name" type="xsd:string">
     <xsd:annotation>
       <xsd:documentation>
         Short name of the manual.
       </xsd:documentation>
-    </xsd:annotation>  
+    </xsd:annotation>
   </xsd:attribute>
   <xsd:attribute name="version" type="xsd:integer">
     <xsd:annotation>
       <xsd:documentation>
         Version of the devhelp xml specification (2).
       </xsd:documentation>
-    </xsd:annotation>  
+    </xsd:annotation>
   </xsd:attribute>
   <xsd:attribute name="language" type="language-type">
     <xsd:annotation>
       <xsd:documentation>
         Programing language this manual refers to.
       </xsd:documentation>
-    </xsd:annotation>  
+    </xsd:annotation>
   </xsd:attribute>
 
   <xsd:attribute name="type" type="keyword-type">
@@ -103,21 +104,28 @@ xsltproc -o devhelp2.xsd.html $HOME/download/xs3p-1.1.3/xs3p.xsl devhelp2.xsd
       <xsd:documentation>
         Type of the keyword.
       </xsd:documentation>
-    </xsd:annotation>  
+    </xsd:annotation>
   </xsd:attribute>
   <xsd:attribute name="since" type="xsd:string">
     <xsd:annotation>
       <xsd:documentation>
         Version since that the keyword is part of the API.
       </xsd:documentation>
-    </xsd:annotation>  
+    </xsd:annotation>
   </xsd:attribute>
-  <xsd:attribute name="deprecated" type="xsd:boolean">
+  <xsd:attribute name="deprecated" type="xsd:string">
     <xsd:annotation>
       <xsd:documentation>
         Marks the keyword as deprecated.
       </xsd:documentation>
-    </xsd:annotation>  
+    </xsd:annotation>
+  </xsd:attribute>
+  <xsd:attribute name="stability" type="xsd:string">
+    <xsd:annotation>
+      <xsd:documentation>
+        Document the stability status.
+      </xsd:documentation>
+    </xsd:annotation>
   </xsd:attribute>
 
 
@@ -162,6 +170,7 @@ xsltproc -o devhelp2.xsd.html $HOME/download/xs3p-1.1.3/xs3p.xsl devhelp2.xsd
        <xsd:attribute ref="link" use="required"/>
        <xsd:attribute ref="since"/>
        <xsd:attribute ref="deprecated"/>
+       <xsd:attribute ref="stability"/>
     </xsd:complexType>
   </xsd:element>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]