com.icl.saxon.output

Class HTMLIndenter

public class HTMLIndenter extends ProxyEmitter

HTMLIndenter: This ProxyEmitter indents HTML elements, by adding whitespace character data where appropriate. The character data is never added when within an inline element. The string used for indentation defaults to four spaces, but may be set using the indent-chars property Author Michael H. Kay
Constructor Summary
HTMLIndenter()
Method Summary
voidcharacters(char[] chars, int start, int len)
Output character data
voidcomment(char[] chars, int start, int len)
Output a comment
voidendDocument()
End of document
voidendElement(int nameCode)
Output element end tag
voidignorableWhitespace(char[] chars, int start, int len)
Output ignorable white space
voidprocessingInstruction(String target, String data)
Output a processing instruction
voidstartDocument()
Start of document
voidstartElement(int nameCode, Attributes atts, int[] namespaces, int nscount)
Output element start tag

Constructor Detail

HTMLIndenter

public HTMLIndenter()

Method Detail

characters

public void characters(char[] chars, int start, int len)
Output character data

comment

public void comment(char[] chars, int start, int len)
Output a comment

endDocument

public void endDocument()
End of document

endElement

public void endElement(int nameCode)
Output element end tag

ignorableWhitespace

public void ignorableWhitespace(char[] chars, int start, int len)
Output ignorable white space

processingInstruction

public void processingInstruction(String target, String data)
Output a processing instruction

startDocument

public void startDocument()
Start of document

startElement

public void startElement(int nameCode, Attributes atts, int[] namespaces, int nscount)
Output element start tag