diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2005-08-30 18:55:48 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2005-08-30 18:55:48 +0000 |
commit | 3fb3bedc9180bab9dc8c2dc784c9327bd1cc8109 (patch) | |
tree | 04a02ce3c744ea29061b696ecff51d69342d038b | |
parent | 89d82b662da00096b70e70a7a102b294acaae6dd (diff) | |
download | gstreamer-common-3fb3bedc9180bab9dc8c2dc784c9327bd1cc8109.tar.gz |
make module a param
Original commit message from CVS:
* common/gtk-doc-plugins.mak:
* common/plugins.xsl:
* docs/plugins/Makefile.am:
make module a param
-rw-r--r-- | gtk-doc-plugins.mak | 3 | ||||
-rw-r--r-- | plugins.xsl | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gtk-doc-plugins.mak b/gtk-doc-plugins.mak index eccedf0..c867a72 100644 --- a/gtk-doc-plugins.mak +++ b/gtk-doc-plugins.mak @@ -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) \ diff --git a/plugins.xsl b/plugins.xsl index bf35d39..fc593aa 100644 --- a/plugins.xsl +++ b/plugins.xsl @@ -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"> |