com.icl.saxon.output
Class NamespaceEmitter

java.lang.Object
  |
  +--com.icl.saxon.output.ProxyEmitter
        |
        +--com.icl.saxon.output.NamespaceEmitter
All Implemented Interfaces:
Emitter

public class NamespaceEmitter
extends ProxyEmitter

NamespaceEmitter is a ProxyEmitter responsible for removing duplicate namespace declarations


Field Summary
protected  NamePool namePool
           
protected  int nscodeNull
           
protected  int nscodeXML
           
 
Fields inherited from class com.icl.saxon.output.ProxyEmitter
baseEmitter, characterSet, outputDetails, writer
 
Constructor Summary
NamespaceEmitter()
           
 
Method Summary
 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, org.xml.sax.Attributes attList, int[] namespaceCodes, int nscount)
          startElement.
 
Methods inherited from class com.icl.saxon.output.ProxyEmitter
characters, comment, endDocument, processingInstruction, setCharacterSet, setDocumentLocator, setEscaping, setOutputDetails, setUnderlyingEmitter, setUnparsedEntity, setWriter, startDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

namePool

protected NamePool namePool

nscodeXML

protected int nscodeXML

nscodeNull

protected int nscodeNull
Constructor Detail

NamespaceEmitter

public NamespaceEmitter()
Method Detail

setNamePool

public void setNamePool(NamePool pool)
Set the name pool to be used for all name codes
Overrides:
setNamePool in class ProxyEmitter

startElement

public void startElement(int nameCode,
                         org.xml.sax.Attributes attList,
                         int[] namespaceCodes,
                         int nscount)
                  throws org.xml.sax.SAXException
startElement. This call removes redundant namespace declarations.
Overrides:
startElement in class ProxyEmitter
Following copied from interface: com.icl.saxon.output.Emitter
Parameters:
namespaces - Array of namespace codes identifying the namespace prefix/uri pairs associated with this element
nscount - Number of significant entries within namespaces array

endElement

public void endElement(int nameCode)
                throws org.xml.sax.SAXException
endElement: Discard the namespaces declared on this element.
Overrides:
endElement in class ProxyEmitter