net.sf.saxon.event
Class HTMLIndenter
- Receiver, Result
public class HTMLIndenter
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 three spaces, but may be set using the
indent-chars property
void | characters(CharSequence chars, int locationId, int properties) - Output character data
|
protected int | classifyTag(int nameCode) - Classify an element name as inline, formatted, or both or neither.
|
void | comment(CharSequence chars, int locationId, int properties) - Output a comment
|
void | endElement() - Output element end tag
|
void | setOutputProperties(Properties props) - Set the properties for this indenter
|
void | startElement(int nameCode, int typeCode, int locationId, int properties) - Output element start tag
|
append , attribute , characters , close , comment , endDocument , endElement , getConfiguration , getDocumentLocator , getNamePool , getUnderlyingReceiver , namespace , open , processingInstruction , setPipelineConfiguration , setSystemId , setUnderlyingReceiver , setUnparsedEntity , startContent , startDocument , startElement |
IS_FORMATTED
protected static final int IS_FORMATTED
IS_INLINE
protected static final int IS_INLINE
formattedTags
protected static String[] formattedTags
inlineTags
protected static String[] inlineTags
HTMLIndenter
public HTMLIndenter()
classifyTag
protected int classifyTag(int nameCode)
Classify an element name as inline, formatted, or both or neither.
This method is overridden in the XHTML indenter
nameCode
- the element name
- a bit-significant integer containing flags IS_INLINE and/or IS_FORMATTED
setOutputProperties
public void setOutputProperties(Properties props)
Set the properties for this indenter