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.
This commit is contained in:
Harald Welte 2016-02-13 14:41:02 +01:00
parent 57f253a792
commit 1cc66f093f
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@
<xsl:copy> <xsl:copy>
<xsl:apply-templates select="@*|node()" /> <xsl:apply-templates select="@*|node()" />
<xsl:for-each select="$info/*"> <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:for-each>
</xsl:copy> </xsl:copy>
</xsl:if> </xsl:if>