![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/share/boostbook/xsl/testing/ |
Upload File : |
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright (c) 2002 Douglas Gregor <doug.gregor -at- gmail.com> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="testsuite"> <section> <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> <xsl:if test="compile-test|link-test|run-test"> <section> <xsl:if test="@id"> <xsl:attribute name="id"> <xsl:value-of select="@id"/> <xsl:text>.acceptance</xsl:text> </xsl:attribute> </xsl:if> <title>Acceptance tests</title> <informaltable> <tgroup cols="3"> <colspec colnum="2" colwidth="1in"/> <thead> <row> <entry>Test</entry> <entry>Type</entry> <entry>Description</entry> <entry>If failing...</entry> </row> </thead> <tbody> <xsl:apply-templates select="compile-test|link-test|run-test"/> </tbody> </tgroup> </informaltable> </section> </xsl:if> <xsl:if test="compile-fail-test|link-fail-test|run-fail-test"> <section> <xsl:if test="@id"> <xsl:attribute name="id"> <xsl:value-of select="@id"/> <xsl:text>.negative</xsl:text> </xsl:attribute> </xsl:if> <title>Negative tests</title> <informaltable> <tgroup cols="3"> <colspec colnum="2" colwidth="1in"/> <thead> <row> <entry>Test</entry> <entry>Type</entry> <entry>Description</entry> <entry>If failing...</entry> </row> </thead> <tbody> <xsl:apply-templates select="compile-fail-test|link-fail-test|run-fail-test"/> </tbody> </tgroup> </informaltable> </section> </xsl:if> </section> </xsl:template> <xsl:template match="compile-test|link-test|run-test| compile-fail-test|link-fail-test|run-fail-test"> <row> <entry> <simpara> <ulink> <xsl:attribute name="url"> <xsl:value-of select="concat('../../libs/', ancestor::library/attribute::dirname, '/test/', @filename)"/> </xsl:attribute> <xsl:value-of select="@filename"/> </ulink> </simpara> </entry> <entry> <simpara> <xsl:value-of select="substring-before(local-name(.), '-test')"/> </simpara> </entry> <entry><xsl:apply-templates select="purpose/*"/></entry> <entry><xsl:apply-templates select="if-fails/*"/></entry> </row> </xsl:template> <xsl:template match="snippet"> <xsl:variable name="snippet-name" select="@name"/> <xsl:apply-templates select="//programlisting[@name=$snippet-name]"/> </xsl:template> </xsl:stylesheet>