|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
-->
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
|
|
Packit |
e4b6da |
xmlns:gt="http://docbook2x.sourceforge.net/xsl/gentext"
|
|
Packit |
e4b6da |
exclude-result-prefixes="doc gt"
|
|
Packit |
e4b6da |
version='1.0'
|
|
Packit |
e4b6da |
xml:lang="en">
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
$Id: cmdsynopsis.xsl,v 1.4 2004/08/09 02:32:58 stevecheng Exp $
|
|
Packit |
e4b6da |
********************************************************************
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
© 2000 Steve Cheng <stevecheng@users.sourceforge.net>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
Part of docbook2X. Handle cmdsynopsis attributes.
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
******************************************************************** -->
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
attributes on our own, or make the user use a DTD.
|
|
Packit |
e4b6da |
However it is needed to work around a misfeature in libxml.
|
|
Packit |
e4b6da |
-->
|
|
Packit |
e4b6da |
<xsl:template name="cmdsynopsis-gentext-sepchar">
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
select="ancestor-or-self::*[@sepchar]" />
|
|
Packit |
e4b6da |
<xsl:variable name="sepchar" select="$scopes[1]/@sepchar" />
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:choose>
|
|
Packit |
e4b6da |
<xsl:when test="$sepchar != ''"><xsl:value-of select="$sepchar"/></xsl:when>
|
|
Packit |
e4b6da |
<xsl:otherwise>
|
|
Packit |
e4b6da |
<xsl:call-template name="gentext-text">
|
|
Packit |
e4b6da |
<xsl:with-param name="key" select="'cmdsynopsis-default-sepchar'" />
|
|
Packit |
e4b6da |
</xsl:call-template>
|
|
Packit |
e4b6da |
</xsl:otherwise>
|
|
Packit |
e4b6da |
</xsl:choose>
|
|
Packit |
e4b6da |
</xsl:template>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:template name="arg-gentext-choice-start">
|
|
Packit |
e4b6da |
<xsl:call-template name="gentext-text">
|
|
Packit |
e4b6da |
<xsl:with-param name="key">
|
|
Packit |
e4b6da |
<xsl:choose>
|
|
Packit |
e4b6da |
<xsl:when test="@choice != ''">
|
|
Packit |
e4b6da |
<xsl:value-of select="concat('arg-choice-',@choice,'-start')" />
|
|
Packit |
e4b6da |
</xsl:when>
|
|
Packit |
e4b6da |
<xsl:otherwise>
|
|
Packit |
e4b6da |
<xsl:value-of select="'arg-choice-default-start'" />
|
|
Packit |
e4b6da |
</xsl:otherwise>
|
|
Packit |
e4b6da |
</xsl:choose>
|
|
Packit |
e4b6da |
</xsl:with-param>
|
|
Packit |
e4b6da |
</xsl:call-template>
|
|
Packit |
e4b6da |
</xsl:template>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:template name="arg-gentext-choice-end">
|
|
Packit |
e4b6da |
<xsl:call-template name="gentext-text">
|
|
Packit |
e4b6da |
<xsl:with-param name="key">
|
|
Packit |
e4b6da |
<xsl:choose>
|
|
Packit |
e4b6da |
<xsl:when test="@choice != ''">
|
|
Packit |
e4b6da |
<xsl:value-of select="concat('arg-choice-',@choice,'-end')" />
|
|
Packit |
e4b6da |
</xsl:when>
|
|
Packit |
e4b6da |
<xsl:otherwise>
|
|
Packit |
e4b6da |
<xsl:value-of select="'arg-choice-opt-end'" />
|
|
Packit |
e4b6da |
</xsl:otherwise>
|
|
Packit |
e4b6da |
</xsl:choose>
|
|
Packit |
e4b6da |
</xsl:with-param>
|
|
Packit |
e4b6da |
</xsl:call-template>
|
|
Packit |
e4b6da |
</xsl:template>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:template name="arg-gentext-rep">
|
|
Packit |
e4b6da |
<xsl:call-template name="gentext-text">
|
|
Packit |
e4b6da |
<xsl:with-param name="key">
|
|
Packit |
e4b6da |
<xsl:choose>
|
|
Packit |
e4b6da |
<xsl:when test="@rep != ''">
|
|
Packit |
e4b6da |
<xsl:value-of select="concat('arg-rep-',@rep)" />
|
|
Packit |
e4b6da |
</xsl:when>
|
|
Packit |
e4b6da |
<xsl:otherwise>
|
|
Packit |
e4b6da |
<xsl:value-of select="'arg-rep-default'" />
|
|
Packit |
e4b6da |
</xsl:otherwise>
|
|
Packit |
e4b6da |
</xsl:choose>
|
|
Packit |
e4b6da |
</xsl:with-param>
|
|
Packit |
e4b6da |
</xsl:call-template>
|
|
Packit |
e4b6da |
</xsl:template>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:template name="arg-gentext-or-separator">
|
|
Packit |
e4b6da |
<xsl:call-template name="gentext-text">
|
|
Packit |
e4b6da |
<xsl:with-param name="key" select="'arg-or-separator'" />
|
|
Packit |
e4b6da |
</xsl:call-template>
|
|
Packit |
e4b6da |
</xsl:template>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
<xsl:template name="arg-gentext-or-separator-nospace">
|
|
Packit |
e4b6da |
<xsl:call-template name="gentext-text">
|
|
Packit |
e4b6da |
<xsl:with-param name="key" select="'arg-or-separator-nospace'" />
|
|
Packit |
e4b6da |
</xsl:call-template>
|
|
Packit |
e4b6da |
</xsl:template>
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
|
|
Packit |
e4b6da |
</xsl:stylesheet>
|