class _ToStan(handler.ContentHandler, handler.EntityResolver): (source)
Method | __init__ |
|
Method | characters |
Called when we receive some characters. CDATA characters get passed through as is. |
Method | comment |
Add an XML comment which we've encountered. |
Method | endCDATA |
We're no longer in a CDATA element. Collect up the characters we've parsed and put them in a new CDATA object. |
Method | endDocument |
Document ended. |
Method | endDTD |
DTDs are ignored. |
Method | endElementNS |
A namespace tag is closed. Pop the stack, if there's anything left in it, otherwise return to the document's namespace. |
Method | endPrefixMapping |
"Pops the stack" on the prefix mapping. |
Method | processingInstruction |
Processing instructions are ignored. |
Method | setDocumentLocator |
Set the document locator, which knows about line and character numbers. |
Method | startCDATA |
We're starting to be in a CDATA element, make a note of this. |
Method | startDocument |
Initialise the document. |
Method | startDTD |
DTDs are ignored. |
Method | startElementNS |
Gets called when we encounter a new xmlns attribute. |
Method | startPrefixMapping |
Set up the prefix mapping, which maps fully qualified namespace URIs onto namespace prefixes. |
Instance Variable | current |
Undocumented |
Instance Variable | document |
Undocumented |
Instance Variable | inCDATA |
Undocumented |
Instance Variable | locator |
Undocumented |
Instance Variable | prefixMap |
Undocumented |
Instance Variable | sourceFilename |
Undocumented |
Instance Variable | stack |
Undocumented |
Instance Variable | xmlnsAttrs |
Undocumented |
Parameters | |
ch:string | Undocumented |
Parameters | |
namespaceAndName | a (namespace, name) tuple, where name determines which type of action to take, if the namespace matches TEMPLATE_NAMESPACE . |
qname | ignored. |
attrs | attributes on the element being started. |