<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:html="http://www.w3.org/1999/xhtml">

<xsl:output indent="yes"
	encoding="iso-8859-1"
	doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
	doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
	
  <xsl:template match='html:li[not(translate(.//text(), " \t\n", ""))]'/>
  <xsl:template match='html:ul[not(translate(.//html:li//text(), " \t\n", ""))]'/>
  <xsl:template match='html:ol[not(translate(.//html:li//text(), " \t\n", ""))]'/>
  <xsl:template match='html:dt[not(translate(.//text(), " \t\n", ""))]'/>
  <xsl:template match='html:dd[not(translate(.//text(), " \t\n", ""))]'/>

  <!-- Copy everything else  -->
  <xsl:template match="@*|node()">
     <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
     </xsl:copy>
  </xsl:template>

</xsl:stylesheet>




