com.icl.saxon.output
Class DTDEmitter

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

public class DTDEmitter
extends XMLEmitter

DTDEmitter is an Emitter that generates output in DTD format from special elements such as dtd:doctype and dtd:element.


Fields inherited from class com.icl.saxon.output.XMLEmitter
characterSet, declarationIsWritten, empty, escaping, openStartTag, outputDetails, writer
 
Constructor Summary
DTDEmitter()
           
 
Method Summary
 void endElement(Name fullname)
          End of an element.
 void startElement(Name fullname, AttributeCollection attributes)
          Start of an element.
 void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
          Start a namespace prefix mapping.
protected  void writeDocType(java.lang.String type, java.lang.String systemId, java.lang.String publicId)
          Output the document type declaration.
 
Methods inherited from class com.icl.saxon.output.XMLEmitter
characters, closeStartTag, comment, emptyElementTagCloser, endDocument, outputCharacterReference, processingInstruction, setCharacterSet, setDocumentLocator, setEscaping, setOutputDetails, setWriter, startDocument, testCharacters, testCharacters, unwindNamespaces, writeAttribute, writeDeclaration, writeEscape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDEmitter

public DTDEmitter()
Method Detail

writeDocType

protected void writeDocType(java.lang.String type,
                            java.lang.String systemId,
                            java.lang.String publicId)
                     throws org.xml.sax.SAXException
Output the document type declaration. This does nothing, because the real DTD will be constructed from the elements written later.
Overrides:
writeDocType in class XMLEmitter

startElement

public void startElement(Name fullname,
                         AttributeCollection attributes)
                  throws org.xml.sax.SAXException
Start of an element.
Overrides:
startElement in class XMLEmitter

startPrefixMapping

public void startPrefixMapping(java.lang.String prefix,
                               java.lang.String uri)
                        throws org.xml.sax.SAXException
Start a namespace prefix mapping. Suppress the DTD namespace
Overrides:
startPrefixMapping in class XMLEmitter

endElement

public void endElement(Name fullname)
                throws org.xml.sax.SAXException
End of an element.
Overrides:
endElement in class XMLEmitter