net.sf.saxon.event
Class XHTMLEmitter

java.lang.Object
  extended bynet.sf.saxon.event.Emitter
      extended bynet.sf.saxon.event.XMLEmitter
          extended bynet.sf.saxon.event.XHTMLEmitter
All Implemented Interfaces:
Receiver, Result

public class XHTMLEmitter
extends XMLEmitter

XHTMLEmitter is an Emitter that generates XHTML output. It is the same as XMLEmitter except that it follows the legacy HTML browser compatibility rules: for example, generating empty elements such as
, and using

for empty paragraphs rather than


Field Summary
 
Fields inherited from class net.sf.saxon.event.XMLEmitter
declarationIsWritten, elementCode, elementStack, empty, escaping, openStartTag, preferHex, specialInAtt, specialInText, undeclareNamespaces
 
Fields inherited from class net.sf.saxon.event.Emitter
characterSet, locator, namePool, outputProperties, outputStream, streamResult, systemId, writer
 
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
 
Constructor Summary
XHTMLEmitter()
           
 
Method Summary
protected  String emptyElementTagCloser(String displayName)
          Close an empty element tag.
 void startContent()
          Start the content of an element
 
Methods inherited from class net.sf.saxon.event.XMLEmitter
attribute, characters, closeStartTag, comment, endDocument, endElement, namespace, openDocument, outputCharacterReference, processingInstruction, setDocumentLocator, setUnparsedEntity, startDocument, startElement, testCharacters, writeAttribute, writeDeclaration, writeDocType, writeEscape
 
Methods inherited from class net.sf.saxon.event.Emitter
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, makeWriter, setNamePool, setOutputProperties, setOutputStream, setStreamResult, setSystemId, setUnparsedEntity, setWriter, usesWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XHTMLEmitter

public XHTMLEmitter()
Method Detail

emptyElementTagCloser

protected String emptyElementTagCloser(String displayName)
Close an empty element tag.

Overrides:
emptyElementTagCloser in class XMLEmitter

startContent

public void startContent()
                  throws TransformerException
Start the content of an element

Specified by:
startContent in interface Receiver
Overrides:
startContent in class XMLEmitter
Throws:
TransformerException