[gtk-doc] devhelp: fix missing enum values



commit 6d82b2651bac715be19a4d5fbb03052a6c000549
Author: Stefan Sauer <ensonic users sf net>
Date:   Mon Jan 5 18:44:04 2015 +0100

    devhelp: fix missing enum values
    
    When changing the layout with the markup parser we broke the constants.

 devhelp2.xsl |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/devhelp2.xsl b/devhelp2.xsl
index 76a20b7..b441df7 100644
--- a/devhelp2.xsl
+++ b/devhelp2.xsl
@@ -57,7 +57,7 @@
       <functions>
         <xsl:apply-templates select="$gtkdoc.refsect2"
                              mode="generate.devhelp2.index.mode"/>
-        <xsl:apply-templates select="$gtkdoc.refsect2/variablelist[ role='enum']/varlistentry"
+        <xsl:apply-templates select="$gtkdoc.refsect2/refsect3[ 
role='enum_members']/informaltable/tgroup/tbody/row[ role='constant']"
                              mode="generate.devhelp2.index.mode"/>
       </functions>
     </book>
@@ -90,8 +90,8 @@
   </xsl:template>
 
   <xsl:template match="*" mode="generate.devhelp2.index.mode">
-    <xsl:variable name="title" select="title|term/literal"/>
-    <xsl:variable name="anchor" select="title/anchor"/>
+    <xsl:variable name="title" select="title|term/literal|entry[ role='enum_member_name']/para"/>
+    <xsl:variable name="anchor" select="title/anchor|entry[ role='enum_member_name']/para"/>
     <xsl:variable name="type" select="@role"/>
     <xsl:variable name="condition" select="@condition"/>
     <xsl:variable name="target">


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