com.icl.saxon.output
Class NamespaceEmitter
- Result
public class NamespaceEmitter
NamespaceEmitter is a ProxyEmitter responsible for removing duplicate namespace
declarations. It also ensures that an xmlns="" undeclaration is output when
necessary.
void | endElement(int nameCode) - endElement: Discard the namespaces declared on this element.
|
void | setNamePool(NamePool pool) - Set the name pool to be used for all name codes
|
void | startElement(int nameCode, Attributes attList, int[] namespaceCodes, int nrOfCodes) - startElement.
|
characters , comment , endDocument , endElement , processingInstruction , setDocumentLocator , setEscaping , setNamePool , setOutputProperties , setUnderlyingEmitter , setUnparsedEntity , setWriter , startDocument , startElement |
characters , comment , endDocument , endElement , getNamePool , getOutputProperties , getOutputStream , getSystemId , getWriter , makeEmitter , processingInstruction , setDocumentLocator , setEscaping , setNamePool , setOutputProperties , setOutputStream , setSystemId , setUnparsedEntity , setWriter , startDocument , startElement , usesWriter |
nscodeNull
protected int nscodeNull
nscodeXML
protected int nscodeXML
endElement
public void endElement(int nameCode)
throws TransformerException
endElement: Discard the namespaces declared on this element.
- endElement in interface ProxyEmitter
startElement
public void startElement(int nameCode,
Attributes attList,
int[] namespaceCodes,
int nrOfCodes)
throws TransformerException
startElement. This call removes redundant namespace declarations, and
possibly adds an xmlns="" undeclaration.
- startElement in interface ProxyEmitter