mirror of https://gerrit.osmocom.org/libosmocore
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:
parent
57f253a792
commit
1cc66f093f
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue