php-src/ext/xslt/tests/param.xsl
Melvyn Sopacua 9bb526c283 (xslt tests) Add test for new backend API (005.phpt), new function
(006.phpt) and a crash test (007.phpt)
             006.phpt also tests handling of public entities, which is in
             essence new to the extension, since there was no way to turn
             it on.
# These new functions and backend will be added shortly.
# TODO: test for xslt_set_object
2002-10-05 19:44:26 +00:00

16 lines
531 B
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" omit-xml-declaration="yes" encoding="ISO-8859-1" />
<xsl:param name="insertion">Test failed</xsl:param>
<xsl:template match="/qa">
<xsl:apply-templates select="test" />
</xsl:template>
<xsl:template match="test">
<xsl:choose>
<xsl:when test="@type != 'simple'">
<xsl:value-of select="$insertion" />
</xsl:when>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>