diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-02-13 14:41:02 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-03-11 22:05:25 +0700 |
commit | 1cc66f093f2ecd85b3dfb9ba411c45102cc1ac65 (patch) | |
tree | c68359f3cdc45592152673907a9bd8193cedeead /doc | |
parent | 57f253a792d07e6f3f921c9cb28e4081393054d4 (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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/vty/merge_doc.xsl | 4 |
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> |