/[drupal]/contributions/modules/word2web/empty.xsl
ViewVC logotype

Diff of /contributions/modules/word2web/empty.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2, Mon Jul 7 20:26:27 2008 UTC revision 1.2.2.1, Wed Nov 11 21:18:08 2009 UTC
# Line 13  Line 13 
13          encoding="UTF-8"          encoding="UTF-8"
14    indent="yes" />    indent="yes" />
15    
16  <xsl:strip-space elements="*"/>  <xsl:strip-space elements="not(span)"/>
17    
18  <xsl:template match='/'>  <xsl:template match='/'>
19    <xsl:apply-templates match="*" />    <xsl:apply-templates select="*" />
20  </xsl:template>  </xsl:template>
21    
22    <!-- This is a fairly broad match where we clean up as many elements as possible -->
23  <xsl:template match="*">  <xsl:template match="*">
24    <xsl:if test="normalize-space(.)">    <xsl:if test="normalize-space(.)">
25      <xsl:element name="{name()}">      <xsl:element name="{name()}">
# Line 28  Line 29 
29    </xsl:if>    </xsl:if>
30  </xsl:template>  </xsl:template>
31    
32    <!-- Overide the * match for spans so we don't destroy inline spacing -->
33    <xsl:template match="span">
34      <xsl:if test="not(normalize-space(.))">
35        <xsl:value-of select="." />
36      </xsl:if>
37    </xsl:template>
38    
39  <!--  <!--
40  <xsl:template match="img" priority="-1">  <xsl:template match="img" priority="-1">
41      <xsl:element name="{name()}">      <xsl:element name="{name()}">

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.2.2.1

  ViewVC Help
Powered by ViewVC 1.1.2