org.exolab.adaptx.xslt
public class XSLNumber extends XSLObject
Version: $Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $
Constructor Summary | |
---|---|
XSLNumber()
Creates a new XSLNumber Object
|
Method Summary | |
---|---|
int[] | doNumbering(XPathNode node, ProcessorState ps)
Performs the numbering of the given XPathNode
|
String | getFormattedNumber(XPathNode node, ProcessorState ps)
Performs the numbering of the given XPathNode and
returns the number using the format of this XSLNumber.
|
void | setAttribute(String name, String value) |
void | setCountAttr(String count)
Sets the count expression of this XSLNumber |
void | setFormatAttr(String format)
Sets the format pattern of this XSLNumber |
void | setFromAttr(String from) |
void | setLevel(String level)
Sets the level of numbering for this XSLNumber |
Parameters: XPathNode the XPathNode to perform numbering on. [This must be of type XPathNode.ELEMENT]
Returns: an array of integers which represent the multi-level number of the given element. Single-level numbering will return an array of size 1.
Parameters: node the XPathNode to get the number of. This node must be of type XPathNode.ELEMENT.
Returns: the formatted number as a String
Parameters: count the String value to use as the count expr expression of this XSLNumber
Parameters: format the Number Format to use
Parameters: level the desired level.
Levels are "single", "multi", or "any"