dmarston 01/06/21 12:49:57 Added: test/tests/conf/match/err matcherr10.xsl matcherr10.xml Log: Important match-pattern error case--a variable reference Revision Changes Path 1.1 xml-xalan/test/tests/conf/match/err/matcherr10.xsl Index: matcherr10.xsl =================================================================== <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- FileName: MATCHerr10 --> <!-- Document: http://www.w3.org/TR/xslt --> <!-- DocVersion: 19991116 --> <!-- Section: 5.2 --> <!-- Creator: David Marston --> <!-- Purpose: Test variable in a match pattern --> <!-- ExpectedException: Extra illegal tokens --> <xsl:variable name="screen" select="'section1'"/> <xsl:template match="defaultcontent"> <out> <xsl:apply-templates/> </out> </xsl:template> <xsl:template match="$screen"> <xsl:value-of select="name(.)"/> </xsl:template> </xsl:stylesheet> 1.1 xml-xalan/test/tests/conf/match/err/matcherr10.xml Index: matcherr10.xml =================================================================== <?xml version="1.0"?> <doc> <defaultcontent> <section1/> <section2/> </defaultcontent> </doc> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
