Top Description Fields Methods
com.sun.org.apache.xml.internal.dtm

public Interface DTMWSFilter

Known Direct Implementers
com.sun.org.apache.xalan.internal.xsltc.dom.DOMWSFilter

This interface is meant to be implemented by a client of the DTM, and allows stripping of whitespace nodes.

Field Summary

Modifier and TypeField and Description
public static final short
INHERIT

Inherit whitespace stripping behavior of the parent node.

public static final short
NOTSTRIP

Do not strip whitespace child nodes of this element.

public static final short
STRIP

Strip whitespace child nodes of this element.

Method Summary

Modifier and TypeMethod and Description
public short

Returns:

one of NOTSTRIP, STRIP, or INHERIT.
getShouldStripSpace
(int
int Handle of the element.
elementHandle
,
DTM dtm)

Test whether whitespace-only text nodes are visible in the logical view of DTM.

Field Detail

INHERITback to summary
public static final short INHERIT

Inherit whitespace stripping behavior of the parent node.

NOTSTRIPback to summary
public static final short NOTSTRIP

Do not strip whitespace child nodes of this element.

STRIPback to summary
public static final short STRIP

Strip whitespace child nodes of this element.

Method Detail

getShouldStripSpaceback to summary
public short getShouldStripSpace(int elementHandle, DTM dtm)

Test whether whitespace-only text nodes are visible in the logical view of DTM. Normally, this function will be called by the implementation of DTM; it is not normally called directly from user code.

Parameters
elementHandle:int

int Handle of the element.

Returns:short

one of NOTSTRIP, STRIP, or INHERIT.