gtk-doc r610 - trunk



Author: stefkost
Date: Fri Oct 17 15:19:13 2008
New Revision: 610
URL: http://svn.gnome.org/viewvc/gtk-doc?rev=610&view=rev

Log:
	* devhelp2.xsd:
	* devhelp2.xsl:
	  Add new language attribute and use "c" here.



Modified:
   trunk/ChangeLog
   trunk/devhelp2.xsd
   trunk/devhelp2.xsl

Modified: trunk/devhelp2.xsd
==============================================================================
--- trunk/devhelp2.xsd	(original)
+++ trunk/devhelp2.xsd	Fri Oct 17 15:19:13 2008
@@ -1,4 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+get http://xml.fiforms.org/xs3p/ and generate docs
+xsltproc -o buzztard.xsd.html /home/ensonic/download/xs3p-1.1.3/xs3p.xsl buzztard.xsd
+-->
 <xsd:schema
   xmlns:xsd="http://www.w3.org/2001/XMLSchema";
   xmlns="urn:devhelp"
@@ -14,6 +18,19 @@
     </xsd:restriction>
   </xsd:simpleType>
   
+  <xsd:simpleType name="language-type">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="c"/>
+      <xsd:enumeration value="c++"/>
+      <xsd:enumeration value="c#"/>
+      <xsd:enumeration value="java"/>
+      <xsd:enumeration value="javascript"/>
+      <xsd:enumeration value="perl"/>
+      <xsd:enumeration value="python"/>
+      <xsd:enumeration value="vala"/>
+    </xsd:restriction>
+  </xsd:simpleType>
+
   <xsd:attribute name="title" type="xsd:string"/>
   <xsd:attribute name="link" type="xsd:string"/>
   <xsd:attribute name="author" type="xsd:string"/>
@@ -24,6 +41,8 @@
   <xsd:attribute name="since" type="xsd:float"/>
   <xsd:attribute name="deprecated" type="xsd:boolean"/>
 
+  <xsd:attribute name="language" type="language-type"/>
+
   <xsd:element name="sub">
     <xsd:complexType>
       <xsd:sequence>
@@ -71,6 +90,7 @@
       <xsd:attribute ref="author" use="required"/>
       <xsd:attribute ref="name" use="required"/>
       <xsd:attribute ref="version" use="required"/>
+      <xsd:attribute ref="language" />
     </xsd:complexType>
   </xsd:element>
 </xsd:schema>

Modified: trunk/devhelp2.xsl
==============================================================================
--- trunk/devhelp2.xsl	(original)
+++ trunk/devhelp2.xsl	Fri Oct 17 15:19:13 2008
@@ -45,7 +45,7 @@
                                            glossary|index|refentry|
                                            bridgehead|sect1"/>
 
-    <book title="{$title}" link="{$link}" author="{$author}" name="{$gtkdoc.bookname}" version="2">
+    <book title="{$title}" link="{$link}" author="{$author}" name="{$gtkdoc.bookname}" version="2" language="c">
       <xsl:if test="$toc.nodes">
         <chapters>
           <xsl:apply-templates select="$toc.nodes"



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