net.sf.saxon.om
Class StylesheetSpaceStrippingRule
java.lang.Object
net.sf.saxon.om.StylesheetSpaceStrippingRule
- All Implemented Interfaces:
- SpaceStrippingRule
public class StylesheetSpaceStrippingRule
- extends Object
- implements SpaceStrippingRule
A whitespace stripping rule that strips whitespace according to the rules defined for XSLT stylesheets
Method Summary |
byte |
isSpacePreserving(NodeName elementName)
Decide whether an element is in the set of white-space preserving element types |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StylesheetSpaceStrippingRule
public StylesheetSpaceStrippingRule(NamePool pool)
isSpacePreserving
public byte isSpacePreserving(NodeName elementName)
- Decide whether an element is in the set of white-space preserving element types
- Specified by:
isSpacePreserving
in interface SpaceStrippingRule
- Parameters:
elementName
- identifies the element being tested
- Returns:
Stripper.ALWAYS_PRESERVE
if the element is in the set of white-space preserving
element types, Stripper.ALWAYS_STRIP
if the element is to be stripped regardless of the
xml:space setting, and Stripper.STRIP_DEFAULT
otherwise
Copyright (c) 2004-2011 Saxonica Limited. All rights reserved.