diff options
Diffstat (limited to 'test/layoutengine/testcase2checks.xsl')
-rw-r--r-- | test/layoutengine/testcase2checks.xsl | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/test/layoutengine/testcase2checks.xsl b/test/layoutengine/testcase2checks.xsl index 00fc9d47b..cb31d583a 100644 --- a/test/layoutengine/testcase2checks.xsl +++ b/test/layoutengine/testcase2checks.xsl @@ -19,15 +19,19 @@ <!-- This stylesheet extracts the checks from the testcase so the list of checks can be built in Java code. --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <xsl:template match="testcase"> - <checks> - <xsl:apply-templates select="checks/*" mode="copy"/> - </checks> - </xsl:template> +<xsl:variable name="basic-checks" select="document('basic-checks.xml')/checks/*" /> + +<xsl:template match="testcase"> + <xsl:apply-templates select="checks" /> +</xsl:template> + +<xsl:template match="checks"> + <checks> + <xsl:copy-of select="$basic-checks" /> + <xsl:copy-of select="*" /> + </checks> +</xsl:template> + +<xsl:template match="text()" /> - <xsl:template match="node()|@*" mode="copy"> - <xsl:copy> - <xsl:apply-templates select="@*|node()" mode="copy"/> - </xsl:copy> - </xsl:template> </xsl:stylesheet> |