1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright (c) 2002 Douglas Gregor <doug.gregor -at- gmail.com>
5 Distributed under the Boost Software License, Version 1.0.
6 (See accompanying file LICENSE_1_0.txt or copy at
7 http://www.boost.org/LICENSE_1_0.txt)
9 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
11 <xsl:template match="testsuite">
15 <xsl:attribute name="id">
16 <xsl:value-of select="@id"/>
19 <xsl:when test="../@id">
20 <xsl:attribute name="id">
21 <xsl:value-of select="concat(../@id, '.tests')"/>
26 <title>Testsuite</title>
28 <xsl:if test="compile-test|link-test|run-test">
31 <xsl:attribute name="id">
32 <xsl:value-of select="@id"/>
33 <xsl:text>.acceptance</xsl:text>
37 <title>Acceptance tests</title>
40 <colspec colnum="2" colwidth="1in"/>
45 <entry>Description</entry>
46 <entry>If failing...</entry>
50 <xsl:apply-templates select="compile-test|link-test|run-test"/>
57 <xsl:if test="compile-fail-test|link-fail-test|run-fail-test">
60 <xsl:attribute name="id">
61 <xsl:value-of select="@id"/>
62 <xsl:text>.negative</xsl:text>
65 <title>Negative tests</title>
68 <colspec colnum="2" colwidth="1in"/>
73 <entry>Description</entry>
74 <entry>If failing...</entry>
79 select="compile-fail-test|link-fail-test|run-fail-test"/>
88 <xsl:template match="compile-test|link-test|run-test|
89 compile-fail-test|link-fail-test|run-fail-test">
94 <xsl:attribute name="url">
96 select="concat('../../libs/',
97 ancestor::library/attribute::dirname, '/test/',
100 <xsl:value-of select="@filename"/>
106 <xsl:value-of select="substring-before(local-name(.), '-test')"/>
109 <entry><xsl:apply-templates select="purpose/*"/></entry>
110 <entry><xsl:apply-templates select="if-fails/*"/></entry>
114 <xsl:template match="snippet">
115 <xsl:variable name="snippet-name" select="@name"/>
116 <xsl:apply-templates select="//programlisting[@name=$snippet-name]"/>