Fix up page and group F1 lookup IDs in the Atmel Studio help. Fix struct namespacing...
[pub/USBasp.git] / LUFA / StudioIntegration / HV1 / lufa_docbook_transform.xslt
index fc16f61..d543bc0 100644 (file)
@@ -88,7 +88,7 @@
                        </xsl:attribute>
 
                        <xsl:variable name="name">
-                               <xsl:text>LUFA.Page.</xsl:text>
+                               <xsl:text>LUFA.</xsl:text>
                                <xsl:value-of select="translate(compoundname, '_', '/')"/>
                        </xsl:variable>
 
                        </title>
 
                        <xsl:variable name="name">
-                               <xsl:text>LUFA.Group.</xsl:text>
+                               <xsl:text>LUFA.</xsl:text>
                                <xsl:value-of select="translate(compoundname, '_', '/')"/>
                        </xsl:variable>
 
                                                                                <xsl:if test="starts-with(argsstring, '[')">
                                                                                        <xsl:text>[]</xsl:text>
                                                                                </xsl:if>
-                                                                               <indexterm id="{$keyword.namespace}.{$name}.{name}"/>
+
+                                                                               <xsl:variable name="struct.element.name">
+                                                                                       <xsl:value-of select="$name"/>
+                                                                                       <xsl:text>.</xsl:text>
+                                                                                       <xsl:value-of select="name"/>
+                                                                               </xsl:variable>
+
+                                                                               <xsl:call-template name="generate.index.id">
+                                                                                       <xsl:with-param name="name" select="$struct.element.name"/>
+                                                                               </xsl:call-template>
                                                                        </entry>
                                                                        <entry>
                                                                                <xsl:apply-templates select="detaileddescription"/>
                                                                <entry>
                                                                        <para id="{@id}" xreflabel="{name}">
                                                                                <xsl:value-of select="name"/>
-                                                                               <indexterm id="{$keyword.namespace}.{name}"/>
+
+                                                                               <xsl:call-template name="generate.index.id">
+                                                                                       <xsl:with-param name="name" select="name"/>
+                                                                               </xsl:call-template>
                                                                        </para>
                                                                </entry>
                                                                <entry>