code: public boolean shouldStripWhiteSpace(
            XPathContext support, int targetElement) throws TransformerException
    {
      if (null != m_whiteSpaceInfoList)
      {
        while(DTM.NULL != targetElement)
        {
          DTM dtm = support.getDTM(targetElement);
          WhiteSpaceInfo info = (WhiteSpaceInfo) m_whiteSpaceInfoList.getTemplate(support,
                  targetElement, null, false, dtm);
          if(null != info)
            return info.getShouldStripSpace();
          
          int parent = dtm.getParent(targetElement);
          if(DTM.NULL != parent && DTM.ELEMENT_NODE == dtm.getNodeType(parent))
            targetElement = parent;
          else
            targetElement = DTM.NULL;
        }
      }
      return false;
    }
docs: Get information about whether or not an element should strip whitespace.
  @see <a href="http://www.w3.org/TR/xslt#strip">strip in XSLT Specification</a>
  
  @param support The XPath runtime state.
  @param targetElement Element to check
  
  @return true if the whitespace should be stripped.
  
  @throws TransformerException