From: <xm...@us...> - 2007-07-04 14:35:31
|
Revision: 6952 http://svn.sourceforge.net/docbook/?rev=6952&view=rev Author: xmldoc Date: 2007-07-04 07:35:25 -0700 (Wed, 04 Jul 2007) Log Message: ----------- Made the dbfunclist PI work as intended. Also added doc for dbfunclist and dbcmdlist PIs. Modified Paths: -------------- trunk/xsl/html/formal.xsl trunk/xsl/html/pi.xsl Modified: trunk/xsl/html/formal.xsl =================================================================== --- trunk/xsl/html/formal.xsl 2007-07-04 13:48:48 UTC (rev 6951) +++ trunk/xsl/html/formal.xsl 2007-07-04 14:35:25 UTC (rev 6952) @@ -103,7 +103,9 @@ <xsl:variable name="content"> <div class="{$class}"> <xsl:if test="$spacing.paras != 0"><p/></xsl:if> - <xsl:call-template name="anchor"/> + <xsl:call-template name="anchor"> + <xsl:with-param name="conditional" select="0"/> + </xsl:call-template> <xsl:apply-templates/> <!-- HACK: This doesn't belong inside formal.object; it Modified: trunk/xsl/html/pi.xsl =================================================================== --- trunk/xsl/html/pi.xsl 2007-07-04 13:48:48 UTC (rev 6951) +++ trunk/xsl/html/pi.xsl 2007-07-04 14:35:25 UTC (rev 6952) @@ -928,28 +928,62 @@ </xsl:call-template> </xsl:template> -<xsl:template name="pi.dbfunclist"> - <xsl:variable name="funcsynopses" select="..//funcsynopsis"/> - <xsl:if test="count($funcsynopses)<1"> - <xsl:message><xsl:text>No funcsynopsis elements matched dbfunclist PI, perhaps it's nested too deep?</xsl:text> +<doc:pi name="dbcmdlist" xmlns=""> + <refpurpose>Generates a hyperlinked list of commands</refpurpose> + <refdescription> + <para>Use the <tag>dbcmdlist</tag> PI as the child of a + <tag>refsynopsisdiv</tag> containing multiple + <tag>cmdsynopsis</tag> instances; a hyperlinked navigational + “command list” will be generated at the top of the + <tag>refsynopsisdiv</tag>, enabling users to quickly jump + to to each command synopsis.</para> + </refdescription> + <refsynopsisdiv> + <synopsis><tag class="xmlpi">dbcmdlist</tag></synopsis> + </refsynopsisdiv> + <refparameter> + <para>[No parameters]</para> + </refparameter> +</doc:pi> +<xsl:template name="pi.dbcmdlist"> + <xsl:variable name="cmdsynopses" select="..//cmdsynopsis"/> + <xsl:if test="count($cmdsynopses)<1"> + <xsl:message><xsl:text>No cmdsynopsis elements matched dbcmdlist PI, perhaps it's nested too deep?</xsl:text> </xsl:message> </xsl:if> <dl> - <xsl:call-template name="process.funcsynopsis.list"> - <xsl:with-param name="funcsynopses" select="$funcsynopses"/> + <xsl:call-template name="process.cmdsynopsis.list"> + <xsl:with-param name="cmdsynopses" select="$cmdsynopses"/> </xsl:call-template> </dl> </xsl:template> -<xsl:template name="pi.dbcmdlist"> - <xsl:variable name="cmdsynopses" select="..//cmdsynopsis"/> - <xsl:if test="count($cmdsynopses)<1"> - <xsl:message><xsl:text>No cmdsynopsis elements matched dbcmdlist PI, perhaps it's nested too deep?</xsl:text> +<doc:pi name="dbfunclist" xmlns=""> + <refpurpose>Generates a hyperlinked list of functions</refpurpose> + <refdescription> + <para>Use the <tag>dbfunclist</tag> PI as the child of a + <tag>refsynopsisdiv</tag> containing multiple + <tag>funcsynopsis</tag> instances; a hyperlinked + navigational “function list” will be generated at the top of + the <tag>refsynopsisdiv</tag>, enabling users to quickly + jump to to each function synopsis.</para> + </refdescription> + <refsynopsisdiv> + <synopsis><tag class="xmlpi">dbfunclist</tag></synopsis> + </refsynopsisdiv> + <refparameter> + <para>[No parameters]</para> + </refparameter> +</doc:pi> +<xsl:template name="pi.dbfunclist"> + <xsl:variable name="funcsynopses" select="..//funcsynopsis"/> + <xsl:if test="count($funcsynopses)<1"> + <xsl:message><xsl:text>No funcsynopsis elements matched dbfunclist PI, perhaps it's nested too deep?</xsl:text> </xsl:message> </xsl:if> <dl> - <xsl:call-template name="process.cmdsynopsis.list"> - <xsl:with-param name="cmdsynopses" select="$cmdsynopses"/> + <xsl:call-template name="process.funcsynopsis.list"> + <xsl:with-param name="funcsynopses" select="$funcsynopses"/> </xsl:call-template> </dl> </xsl:template> @@ -1039,6 +1073,7 @@ <dt> <a> <xsl:attribute name="href"> + <xsl:text>#</xsl:text> <xsl:call-template name="object.id"> <xsl:with-param name="object" select="$cmdsyn"/> </xsl:call-template> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |