mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
If a testsuite has no ID, give it one based on its parent id
[SVN r20144]
This commit is contained in:
parent
07e23689eb
commit
47d373cc6c
@ -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>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user