<xsl:stylesheet xmlns:src="http://www.sdml.info/srcML/src" xmlns:cpp="http://www.sdml.info/srcML/cpp" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:util="http://www.pnp-software.com/util" xmlns:ax="http://control.ee.ethz.ch/XWeaver/AspectX" xmlns:xslt="http://xslt" version="1.0">
  
  
     <xd:doc type="stylesheet">
    
<xd:short>XSL Variable Declarations for join point of type <code>src:class</code></xd:short>
    
<xd:detail><xd:dollarVariables /></xd:detail>
    
<xd:cvsId>$Id: unit.xsl 116 2005-07-19 14:13:22Z rohlik $</xd:cvsId>
    
<xd:author>ibirrer</xd:author>
    
<xd:copyright>2004, P&amp;P Software GmbH</xd:copyright>
  
</xd:doc>

  
  
<xsl:namespace-alias stylesheet-prefix="xslt" result-prefix="xsl" />
  
  
<xsl:template match="src:unit" mode="variableDeclarations">
    
<!-- class name -->
    
<xslt:variable name="className">    
      
<xslt:choose>
        
<xslt:when test="$declaration='this'">
          
<xslt:value-of select="//src:class[1]/src:name" />
        
</xslt:when>
        
<xslt:when test="$declaration='none'">
          
<xslt:value-of select="''" />
        
</xslt:when>
        
<xslt:when test="$inline='this' or $definition='this'">
          
<xslt:value-of select="document(resolve-uri( $declaration, escape-uri(base-uri(/), false()) ))//src:class[1]/src:name" />
        
</xslt:when>
        
<xslt:otherwise>
          
<xslt:message terminate="yes">ERROR: Caused by compilerRules/variableDeclarations/unit.xsl</xslt:message>
        
</xslt:otherwise>
      
</xslt:choose>
    
</xslt:variable>
  
</xsl:template>
</xsl:stylesheet>






































v