summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-02-13 14:41:02 +0100
committerHarald Welte <laforge@gnumonks.org>2016-03-11 22:05:25 +0700
commit1cc66f093f2ecd85b3dfb9ba411c45102cc1ac65 (patch)
treec68359f3cdc45592152673907a9bd8193cedeead
parent57f253a792d07e6f3f921c9cb28e4081393054d4 (diff)
merge_doc.xsl: Don't copy the 'descripiton' element of commands
If a vty_additions.xml file contained a <description> element inside a command> element, then the description was copied twice (once during the <node> copy, and once during the <command> copy). Let's avoid one of the two copies.
-rw-r--r--doc/vty/merge_doc.xsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/vty/merge_doc.xsl b/doc/vty/merge_doc.xsl
index caea1103..adbc1c14 100644
--- a/doc/vty/merge_doc.xsl
+++ b/doc/vty/merge_doc.xsl
@@ -18,7 +18,9 @@
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
<xsl:for-each select="$info/*">
- <xsl:copy-of select="." />
+ <xsl:if test="not($info/vty:description)">
+ <xsl:copy-of select="." />
+ </xsl:if>
</xsl:for-each>
</xsl:copy>
</xsl:if>