def startElementNS(self, elementName, qName, attrs):
     if self.depth == 0:
         (namespace, localName) = elementName
         if namespace == MathNS:
             self.output = self.mathOutput
             self.depth = 1
     else: self.depth += 1
     ContentFilter.startElementNS(self, elementName, qName, attrs)
Exemple #2
0
 def startElementNS(self, elementName, qName, attrs):
     if self.depth == 0:
         (namespace, localName) = elementName
         if namespace == MathNS:
             self.output = self.mathOutput
             self.depth = 1
     else:
         self.depth += 1
     ContentFilter.startElementNS(self, elementName, qName, attrs)