make module a param
authorThomas Vander Stichele <thomas@apestaart.org>
Tue, 30 Aug 2005 18:55:48 +0000 (18:55 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Tue, 30 Aug 2005 18:55:48 +0000 (18:55 +0000)
Original commit message from CVS:
* common/gtk-doc-plugins.mak:
* common/plugins.xsl:
* docs/plugins/Makefile.am:
make module a param

gtk-doc-plugins.mak
plugins.xsl

index eccedf0..c867a72 100644 (file)
@@ -136,7 +136,8 @@ sgml-build.stamp: tmpl.stamp inspect.stamp $(CFILE_GLOB) $(top_srcdir)/common/pl
        @echo '*** Building XML ***'
        @-mkdir -p xml
        @for a in inspect/*.xml; do \
-            xsltproc $(top_srcdir)/common/plugins.xsl $$a > xml/`basename $$a`; done
+            xsltproc --stringparam module $(MODULE) \
+               $(top_srcdir)/common/plugins.xsl $$a > xml/`basename $$a`; done
        gtkdoc-mkdb \
                --module=$(DOC_MODULE) \
                --source-dir=$(DOC_SOURCE_DIR) \
index bf35d39..fc593aa 100644 (file)
@@ -9,11 +9,12 @@
             doctype-public ="-//OASIS//DTD DocBook XML V4.1.2//EN"
             doctype-system = "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"/> 
 
+<xsl:param name="module" />
   <xsl:template match="element">
     <xsl:element name="varlistentry">
       <xsl:element name="term">
         <xsl:element name="link">
-          <xsl:attribute name="linkend">gst-plugins-base-plugins-<xsl:value-of select="name"/></xsl:attribute>
+          <xsl:attribute name="linkend"><xsl:value-of select="$module" />-plugins-<xsl:value-of select="name"/></xsl:attribute>
           <xsl:value-of select="name" />
         </xsl:element>
       </xsl:element>
@@ -59,7 +60,7 @@
 
   <xsl:template match="plugin">
     <xsl:element name="refentry">
-      <xsl:attribute name="id">gst-plugins-base-plugins-plugin-<xsl:value-of select="name"/></xsl:attribute>
+      <xsl:attribute name="id"><xsl:value-of select="$module" />-plugins-plugin-<xsl:value-of select="name"/></xsl:attribute>
 
       <xsl:element name="refmeta">
         <xsl:element name="refentrytitle">