9.2 Remove Split Arrays

<..remove empty split entries..>
 <script element="div::split-side" >
   <set name="clean-split" >
      <.open xslt script.>
      <.get content template.>
      <.clean math split.>
      <.close xslt script.>
   </set>
   <xslt name="." xml="." xsl="clean-split" />
 </script>
-_-_-

<..clean math split..>
 <xsl:template match=" div[ @class=’split-side’ ]
 " >
     <xsl:variable name="content">
        <xsl:apply-templates select="*" mode="content" />
     </xsl:variable>
     <xsl:if test="
        string-length( normalize-space( $content )) != 0
     " >
        <xsl:copy>
           <xsl:apply-templates select=" *|@*|text()|comment() " />
        </xsl:copy>
     </xsl:if>
 </xsl:template>
-_-_-