<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xd="http://www.pnp-software.com/XSLTdoc" xmlns:f="func" xpath-default-namespace="http://www.tei-c.org/ns/1.0" exclude-result-prefixes="xs xd f" version="2.0">

  

  
<xsl:import href="identity_transform.xsl" />

  
<xsl:output encoding="UTF-8" method="xml" indent="yes" />

  
<xsl:strip-space elements="*" />



  
     <xd:doc type="stylesheet">

    
<xd:short>Whitespace normalizer</xd:short>

    
<xd:detail>

      
<p>Normalizes whitespace in a file. It might also normalize other kinds of characters in the future.</p>

      
<p>Distributor: Open-Content Text Corpus (<a href="http://OCTC.sourceforge.net/">http://OCTC.sourceforge.net/</a>)</p>

    
</xd:detail>

    
<xd:author>Piotr Bański</xd:author>

    
<xd:copyright>the author(s), 2010; license: GPL v3 or any later version (http://www.gnu.org/licenses/gpl.html).</xd:copyright>

    
<xd:svnId>$Id: normalize_whitespace.xsl 305 2010-06-21 20:34:03Z bansp $</xd:svnId>

  
</xd:doc>


  

  
<xsl:template match="text()">

    
<xsl:value-of select="normalize-space(.)" />

  
</xsl:template>



</xsl:stylesheet>













































































v