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">
<xsl:template match="testsuite">
<section>
<xsl:if test="@id">
<xsl:attribute name="id">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="@id">
<xsl:attribute name="id">
<xsl:value-of select="@id"/>
</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>