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, lastDisplayName, lastNameCode, lastPrefix, lastURI, namePool, openStartTag, outputDetails, preferHex, writer |
Method Summary |
void |
endElement(int nameCode)
End of an element. |
void |
startElement(int nameCode,
org.xml.sax.Attributes attributes,
int[] namespaces,
int nscount)
Start of an element. |
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, setNamePool, setOutputDetails, setUnparsedEntity, setWriter, startDocument, testCharacters, testCharacters, writeAttribute, writeDeclaration, writeEscape |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DTDEmitter
public DTDEmitter()
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(int nameCode,
org.xml.sax.Attributes attributes,
int[] namespaces,
int nscount)
throws org.xml.sax.SAXException
- Start of an element.
- Overrides:
startElement
in class XMLEmitter
- Following copied from interface:
com.icl.saxon.output.Emitter
- Parameters:
namespaces
- Array of namespace codes identifying the namespace prefix/uri
pairs associated with this elementnscount
- Number of significant entries within namespaces array
endElement
public void endElement(int nameCode)
throws org.xml.sax.SAXException
- End of an element.
- Overrides:
endElement
in class XMLEmitter