org.apache.xpath

Interface WhitespaceStrippingElementMatcher

public interface WhitespaceStrippingElementMatcher

A class that implements this interface can tell if a given element should strip whitespace nodes from it's children.
Method Summary
booleancanStripWhiteSpace()
Get information about whether or not whitespace can be stripped.
booleanshouldStripWhiteSpace(XPathContext support, Element targetElement)
Get information about whether or not an element should strip whitespace.

Method Detail

canStripWhiteSpace

public boolean canStripWhiteSpace()
Get information about whether or not whitespace can be stripped.

Returns: true if the whitespace can be stripped.

See Also: strip in XSLT Specification

shouldStripWhiteSpace

public boolean shouldStripWhiteSpace(XPathContext support, Element targetElement)
Get information about whether or not an element should strip whitespace.

Parameters: support The XPath runtime state. targetElement Element to check

Returns: true if the whitespace should be stripped.

Throws: TransformerException

See Also: strip in XSLT Specification

Copyright © 2005 Apache XML Project. All Rights Reserved.