org.apache.xpath.functions

Class FuncNormalizeSpace

public class FuncNormalizeSpace extends FunctionDef1Arg

Execute the normalize-space() function.

UNKNOWN: advanced

Method Summary
XObjectexecute(XPathContext xctxt)
Execute the function.
voidexecuteCharsToContentHandler(XPathContext xctxt, ContentHandler handler)
Execute an expression in the XPath runtime context, and return the result of the expression.

Method Detail

execute

public XObject execute(XPathContext xctxt)
Execute the function. The function must return a valid object.

Parameters: xctxt The current execution context.

Returns: A valid XObject.

Throws: javax.xml.transform.TransformerException

executeCharsToContentHandler

public void executeCharsToContentHandler(XPathContext xctxt, ContentHandler handler)
Execute an expression in the XPath runtime context, and return the result of the expression.

Parameters: xctxt The XPath runtime context.

Returns: The result of the expression in the form of a XObject.

Throws: javax.xml.transform.TransformerException if a runtime exception occurs.

Copyright © 2005 Apache XML Project. All Rights Reserved.