code: public short getShouldStripSpace(int elementHandle, DTM dtm)
    {
  
      try
      {
        org.apache.xalan.templates.WhiteSpaceInfo info =
          m_stylesheetRoot.getWhiteSpaceInfo(m_xcontext, elementHandle, dtm);
  
        if (null == info)
        {
          return DTMWSFilter.INHERIT;
        }
        else
        {
  
          // System.out.println("getShouldStripSpace: "+info.getShouldStripSpace());
          return info.getShouldStripSpace()
                 ? DTMWSFilter.STRIP : DTMWSFilter.NOTSTRIP;
        }
      }
      catch (TransformerException se)
      {
        return DTMWSFilter.INHERIT;
      }
    }
docs: Test whether whitespace-only text nodes are visible in the logical
  view of <code>DTM</code>. Normally, this function
  will be called by the implementation of <code>DTM</code>;
  it is not normally called directly from
  user code.
  
  @param elementHandle int Handle of the element.
  @return one of NOTSTRIP, STRIP, or INHERIT.