9.1 Set for W3

<..set empty elements for the w3 browser..>
 <set name="empty-el" >
    <.open xslt script.>
    <.tags for empty templates.>
    <.close xslt script.>
 </set>
 <xslt name="." xml="." xsl="empty-el" />
-_-_-

<..tags for empty templates..>
 <xsl:template match="*[ not(child::*) ]" >
   <xsl:copy>
     <xsl:apply-templates select="@*|comment()|text()" />
     <xsl:if test=" normalize-space(.) = ’’ " >
        <xsl:comment><.comment.></xsl:comment>
     </xsl:if>
   </xsl:copy>
 </xsl:template>
-_-_-

Note: Java 5 complains when comments contain just white spaced.

<..comment..>
 .
-_-_-