All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.kvisco.xsl.XSLNumber

com.kvisco.xsl.XSLObject
   |
   +----com.kvisco.xsl.XSLNumber

public class XSLNumber
extends XSLObject
Represents the xsl:number element. Handles numbering in the source tree
Section 2.7.10 of the W3C XSL Working Draft 1.0 (19981216)
Section 9.7 of the W3C XSLT Working Draft 1.0 (1990421)

Author:
Keith Visco

Constructor Index

 o XSLNumber(XSLStylesheet)
Creates a new XSLNumber Object

Method Index

 o doNumbering(Element, ProcessorState)
Performs the numbering of the given Element
 o getFormattedNumber(Element, ProcessorState)
Performs the numbering of the given Element and returns the number using the format of this XSLNumber.
 o setAttribute(String, String)
 o setCountAttr(String)
Sets the count expression of this XSLNumber
 o setFormatAttr(String)
Sets the format pattern of this XSLNumber
 o setFromAttr(String)
 o setLevel(String)
Sets the level of numbering for this XSLNumber

Constructors

 o XSLNumber
 public XSLNumber(XSLStylesheet parentStylesheet)
Creates a new XSLNumber Object

Methods

 o doNumbering
 public int[] doNumbering(Element element,
                          ProcessorState ps) throws InvalidExprException
Performs the numbering of the given Element

Parameters:
element - the Element to get the number of
Returns:
an array of integers which represent the multi-level number of the given element. Single level numbering will return an array of 1.
 o getFormattedNumber
 public String getFormattedNumber(Element element,
                                  ProcessorState ps)
Performs the numbering of the given Element and returns the number using the format of this XSLNumber.

Parameters:
element - the Element to get the number of
Returns:
the formatted number as a String
 o setAttribute
 public void setAttribute(String name,
                          String value) throws XSLException
Overrides:
setAttribute in class XSLObject
See Also:
XSLObject
 o setCountAttr
 public void setCountAttr(String count)
Sets the count expression of this XSLNumber

Parameters:
count - the String value to use as the count expr expression of this XSLNumber
 o setFormatAttr
 public void setFormatAttr(String format)
Sets the format pattern of this XSLNumber

Parameters:
format - the Number Format to use
 o setFromAttr
 public void setFromAttr(String from)
 o setLevel
 public void setLevel(String level)
Sets the level of numbering for this XSLNumber

Parameters:
level - the desired level.
  Levels are "single", "multi", or "any"
 

All Packages  Class Hierarchy  This Package  Previous  Next  Index