com.icl.saxon.output

Class NamespaceEmitter

public class NamespaceEmitter extends ProxyEmitter

NamespaceEmitter is a ProxyEmitter responsible for removing duplicate namespace declarations. It also ensures that an xmlns="" undeclaration is output when necessary.
Field Summary
protected NamePoolnamePool
protected intnscodeNull
protected intnscodeXML
Method Summary
voidendElement(int nameCode)
endElement: Discard the namespaces declared on this element.
voidsetNamePool(NamePool pool)
Set the name pool to be used for all name codes
voidstartElement(int nameCode, Attributes attList, int[] namespaceCodes, int nrOfCodes)
startElement.

Field Detail

namePool

protected NamePool namePool

nscodeNull

protected int nscodeNull

nscodeXML

protected int nscodeXML

Method Detail

endElement

public void endElement(int nameCode)
endElement: Discard the namespaces declared on this element.

setNamePool

public void setNamePool(NamePool pool)
Set the name pool to be used for all name codes

startElement

public void startElement(int nameCode, Attributes attList, int[] namespaceCodes, int nrOfCodes)
startElement. This call removes redundant namespace declarations, and possibly adds an xmlns="" undeclaration.