diff options
author | Jean-Sebastien Pedron <jean-sebastien@rabbitmq.com> | 2014-12-03 15:27:45 +0100 |
---|---|---|
committer | Jean-Sebastien Pedron <jean-sebastien@rabbitmq.com> | 2014-12-03 15:27:45 +0100 |
commit | b4cfde3f0930f953bb8da3a4e70c37740ce9c75d (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /docs/usage.xsl | |
parent | 008476172f305e1e6b12f9e2701a39e0b9f06ecf (diff) | |
parent | 2b4eddb2a587f1555ec1ec835e7304fd430bba29 (diff) | |
download | rabbitmq-server-junk.tar.gz |
Junked bug26446junk
Diffstat (limited to 'docs/usage.xsl')
-rw-r--r-- | docs/usage.xsl | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/docs/usage.xsl b/docs/usage.xsl deleted file mode 100644 index 586f8303..00000000 --- a/docs/usage.xsl +++ /dev/null @@ -1,74 +0,0 @@ -<?xml version='1.0'?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - version='1.0'> - -<xsl:param name="modulename"/> - -<xsl:output method="text" - encoding="UTF-8" - indent="no"/> -<xsl:strip-space elements="*"/> -<xsl:preserve-space elements="cmdsynopsis arg" /> - -<xsl:template match="/"> -<!-- Pull out cmdsynopsis to show the command usage line. -->%% Generated, do not edit! --module(<xsl:value-of select="$modulename" />). --export([usage/0]). -usage() -> %QUOTE%Usage: -<xsl:value-of select="refentry/refsynopsisdiv/cmdsynopsis/command"/> -<xsl:text> </xsl:text> -<xsl:for-each select="refentry/refsynopsisdiv/cmdsynopsis/arg"> - <xsl:apply-templates select="." /> - <xsl:text> </xsl:text> -</xsl:for-each> - -<xsl:text> </xsl:text> - -<!-- List options (any variable list in a section called "Options"). --> -<xsl:for-each select=".//*[title='Options']/variablelist"> - <xsl:if test="position() = 1"> Options: </xsl:if> - <xsl:for-each select="varlistentry"> - <xsl:text> </xsl:text> - <xsl:for-each select=".//term"> - <xsl:value-of select="."/> - <xsl:if test="not(position() = last())">, </xsl:if> - </xsl:for-each><xsl:text> </xsl:text> - </xsl:for-each> -</xsl:for-each> - -<!-- Any paragraphs which have been marked as role="usage" (principally for global flags). --> -<xsl:text> </xsl:text> -<xsl:for-each select=".//*[title='Options']//para[@role='usage']"> -<xsl:value-of select="normalize-space(.)"/><xsl:text> </xsl:text> -</xsl:for-each> - -<!-- List commands (any first-level variable list in a section called "Commands"). --> -<xsl:for-each select=".//*[title='Commands']/variablelist | .//*[title='Commands']/refsect2/variablelist"> - <xsl:if test="position() = 1">Commands: </xsl:if> - <xsl:for-each select="varlistentry"> - <xsl:text> </xsl:text> - <xsl:apply-templates select="term"/> - <xsl:text> </xsl:text> - </xsl:for-each> - <xsl:text> </xsl:text> -</xsl:for-each> - -<xsl:apply-templates select=".//*[title='Commands']/refsect2" mode="command-usage" /> -%QUOTE%. -</xsl:template> - -<!-- Option lists in command usage --> -<xsl:template match="varlistentry[@role='usage-has-option-list']" mode="command-usage"><<xsl:value-of select="term/cmdsynopsis/arg[@role='usage-option-list']/replaceable"/>> must be a member of the list [<xsl:for-each select="listitem/variablelist/varlistentry"><xsl:apply-templates select="term"/><xsl:if test="not(position() = last())">, </xsl:if></xsl:for-each>].<xsl:text> </xsl:text></xsl:template> - -<!-- Usage paras in command usage --> -<xsl:template match="para[@role='usage']" mode="command-usage"> -<xsl:value-of select="normalize-space(.)"/><xsl:text> </xsl:text> -</xsl:template> - -<!-- Don't show anything else in command usage --> -<xsl:template match="text()" mode="command-usage"/> - -<xsl:template match="arg[@choice='opt']">[<xsl:apply-templates/>]</xsl:template> -<xsl:template match="replaceable"><<xsl:value-of select="."/>></xsl:template> - -</xsl:stylesheet> |