net.sf.saxon.event

Class XHTMLIndenter

public class XHTMLIndenter extends HTMLIndenter

XHTMLIndenter: This class indents XHTML elements, by adding whitespace character data where appropriate. This class differs from its superclass, HTMLIndenter, only in the way it classifies elements as being inline or formatted elements: unlike the HTML indenter, it requires the element names to be in lower case and to be in the XHTML namespace.

Author: Michael Kay

Constructor Summary
XHTMLIndenter()
Create an XHTML indenter
Method Summary
protected intclassifyTag(int nameCode)
Classify an element name as inline, formatted, or both or neither.

Constructor Detail

XHTMLIndenter

public XHTMLIndenter()
Create an XHTML indenter

Method Detail

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

Parameters: nameCode the element name

Returns: a bit-significant integer containing flags IS_INLINE and/or IS_FORMATTED