aboutsummaryrefslogtreecommitdiffstats
path: root/doc/vty
diff options
context:
space:
mode:
Diffstat (limited to 'doc/vty')
-rw-r--r--doc/vty/merge_doc.xsl13
1 files changed, 11 insertions, 2 deletions
diff --git a/doc/vty/merge_doc.xsl b/doc/vty/merge_doc.xsl
index c4e05203..caea1103 100644
--- a/doc/vty/merge_doc.xsl
+++ b/doc/vty/merge_doc.xsl
@@ -27,12 +27,21 @@
<!-- Copy command and add nodes -->
<xsl:template match="vty:command">
+ <xsl:variable name="info" select="document($with)/vty:vtydoc/vty:node[@id=current()/../@id]/vty:command[@id=current()/@id]/." />
+ <xsl:variable name="info_generic" select="document($with)/vty:vtydoc/vty:common/vty:command[@id=current()/@id]/." />
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
- <xsl:variable name="info" select="document($with)/vty:vtydoc/vty:node[@id=current()/../@id]/vty:command[@id=current()/@id]/." />
+
+ <!-- Copy the specific issue... -->
<xsl:for-each select="$info/*">
- <xsl:copy-of select="." />
+ <xsl:copy-of select="." />
</xsl:for-each>
+
+ <xsl:if test="not($info)">
+ <xsl:for-each select="$info_generic/*">
+ <xsl:copy-of select="." />
+ </xsl:for-each>
+ </xsl:if>
</xsl:copy>
</xsl:template>
</xsl:transform>