If a testsuite has no ID, give it one based on its parent id

[SVN r20144]
This commit is contained in:
Douglas Gregor 2003-09-22 03:19:35 +00:00
parent 07e23689eb
commit 47d373cc6c

View File

@ -3,11 +3,18 @@
version="1.0"> version="1.0">
<xsl:template match="testsuite"> <xsl:template match="testsuite">
<section> <section>
<xsl:if test="@id"> <xsl:choose>
<xsl:attribute name="id"> <xsl:when test="@id">
<xsl:value-of select="@id"/> <xsl:attribute name="id">
</xsl:attribute> <xsl:value-of select="@id"/>
</xsl:if> </xsl:attribute>
</xsl:when>
<xsl:when test="../@id">
<xsl:attribute name="id">
<xsl:value-of select="concat(../@id, '.tests')"/>
</xsl:attribute>
</xsl:when>
</xsl:choose>
<title>Testsuite</title> <title>Testsuite</title>