<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:f="http://fxsl.sf.net/"
exclude-result-prefixes="f"
>
   <xsl:import href="../f/func-maxDepth.xsl"/>
   
   <xsl:output omit-xml-declaration="yes"/>
   <xsl:strip-space elements="*"/> 
   
   <!-- This transformation must be applied to:
        ../data/testMaximum3.xml 

        Expected result: 2
    -->
    
    <xsl:template match="/">
      <xsl:value-of select="f:maxDepth(/*/folder[@name=1])"/>
    </xsl:template>

</xsl:stylesheet>
