parameters: (self, node)
docstring: Traverses the subtree of a DOM node, and register a tclib message for
      all the <message> nodes.
docstring_summary: Traverses the subtree of a DOM node, and register a tclib message for
      all the <message> nodes.
docstring_tokens: Traverses the subtree of a DOM node and register a tclib message for all the <message > nodes .
function: def _ParseNode(self, node):
      '''Traverses the subtree of a DOM node, and register a tclib message for
      all the <message> nodes.
      '''
      att_text = []
      if node.attributes:
        items = node.attributes.items()
        items.sort()
        for key, value in items:
          att_text.append(' %s=\"%s\"' % (key, value))
      self._AddNontranslateableChunk("<%s%s>" %
                                     (node.tagName, ''.join(att_text)))
      if node.tagName == 'message':
        msg = tclib.Message(description=node.attributes['desc'])
        for child in node.childNodes:
          if child.nodeType == minidom.Node.TEXT_NODE:
            if msg == None:
              self._AddNontranslateableChunk(child.data)
            else:
              msg.AppendText(child.data)
          elif child.nodeType == minidom.Node.ELEMENT_NODE:
            if child.tagName == 'ph':
              self._ParsePlaceholder(child, msg)
          else:
            assert False
        self.skeleton_.append(self.uberclique.MakeClique(msg))
      else:
        for child in node.childNodes:
          if child.nodeType == minidom.Node.TEXT_NODE:
            self._AddNontranslateableChunk(child.data)
          elif node.nodeType == minidom.Node.ELEMENT_NODE:
            self._ParseNode(child)
  
      self._AddNontranslateableChunk("</%s>" % node.tagName)
function_tokens: def _ParseNode ( self , node ) : att_text = [ ] if node . attributes : items = node . attributes . items ( ) items . sort ( ) for key , value in items : att_text . append ( ' %s=\"%s\"' % ( key , value ) ) self . _AddNontranslateableChunk ( "<%s%s>" % ( node . tagName , '' . join ( att_text ) ) ) if node . tagName == 'message' : msg = tclib . Message ( description = node . attributes [ 'desc' ] ) for child in node . childNodes : if child . nodeType == minidom . Node . TEXT_NODE : if msg == None : self . _AddNontranslateableChunk ( child . data ) else : msg . AppendText ( child . data ) elif child . nodeType == minidom . Node . ELEMENT_NODE : if child . tagName == 'ph' : self . _ParsePlaceholder ( child , msg ) else : assert False self . skeleton_ . append ( self . uberclique . MakeClique ( msg ) ) else : for child in node . childNodes : if child . nodeType == minidom . Node . TEXT_NODE : self . _AddNontranslateableChunk ( child . data ) elif node . nodeType == minidom . Node . ELEMENT_NODE : self . _ParseNode ( child ) self . _AddNontranslateableChunk ( "</%s>" % node . tagName )