1<?xml version='1.0'?> 2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 version='1.0'> 4 5<xsl:variable name="foo" select="'SUCCESS'"/> 6 7<xsl:template match="doc"> 8<xsl:value-of select="$foo"/> 9</xsl:template> 10 11<xsl:template match="/"> 12<xsl:variable name="foo" select="'FAILURE'"/> 13<xsl:apply-templates/> 14</xsl:template> 15 16</xsl:stylesheet> 17