<xsl:stylesheet xmlns:WeaveComment="java:ifa.xweaver.WeaveComment" xmlns:src="http://www.sdml.info/srcML/src" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
    
<xsl:output method="text" encoding="ISO-8859-1" />
    
<xsl:preserve-space elements="*" />
    
    
<!-- Root template -->
    
<xsl:template match="/src:unit">
      
<!-- <xsl:text>text()[1]:</xsl:text><xsl:copy-of select="text()[1]"/> -->
      
<xsl:apply-templates />
      
<!--<xsl:value-of select="substring-after(child::text()[1],'&#xA;')"></xsl:value-of>
      <xsl:apply-templates select="child::text()[1]/following-sibling::node()"/>  
-->
    
</xsl:template>
    
    
<!-- Output all text nodes -->
    
<xsl:template match="text()">
        
<xsl:value-of select="." />
    
</xsl:template>
    
    
<!-- Do not output elements, but process subelements -->
    
<xsl:template match="*">
      
<xsl:apply-templates />
    
</xsl:template>
    
    
<!-- Delete all XML comments -->
    
<xsl:template match="comment()" />
    
    
<!-- Delete all remaining advises and output a warning message for each -->
    
<xsl:template match="advice">
        
<xsl:message>WARNING: The following advice '<xsl:value-of select="@name" />' was not treated
            by the weaver! 
</xsl:message>
    
</xsl:template>
</xsl:stylesheet>






































v