docs: def getPlainText(self, identify=None):
          """
          Convenience function for templates which want access
          to the raw text, without XML tags.
          """
  
          frags = getattr(self, 'frags', None)
          if frags:
              plains = []
              for frag in frags:
                  if hasattr(frag, 'text'):
                      plains.append(frag.text)
              return ''.join(plains)
          elif identify:
              text = getattr(self, 'text', None)
              if text is None: text = repr(self)
              return text
          else:
              return ''