callChildVisitors
public void callChildVisitors(XSLTVisitor visitor,
boolean callAttrs)
Call the children visitors.
visitor
- The visitor whose appropriate method will be called.
compose
public void compose(StylesheetRoot sroot)
throws TransformerException
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
- compose in interface ElemTemplateElement
getCount
public XPath getCount()
Get the "count" attribute.
The count attribute is a pattern that specifies what nodes
should be counted at those levels. If count attribute is not
specified, then it defaults to the pattern that matches any
node with the same node type as the current node and, if the
current node has an expanded-name, with the same expanded-name
as the current node.
- Value of "count" attribute.
getFormat
public AVT getFormat()
Get the "format" attribute.
The "format" attribute is used to control conversion of a list of
numbers into a string.
- Value of "format" attribute.
convert in XSLT Specification
getFrom
public XPath getFrom()
Get the "from" attribute.
For level="single" or level="multiple":
Only ancestors that are searched are
those that are descendants of the nearest ancestor that matches
the from pattern.
For level="any:
Only nodes after the first node before the
current node that match the from pattern are considered.
- Value of "from" attribute.
getGroupingSeparator
public AVT getGroupingSeparator()
Get the "grouping-separator" attribute.
The grouping-separator attribute gives the separator
used as a grouping (e.g. thousands) separator in decimal
numbering sequences.
- Value of "grouping-separator" attribute.
convert in XSLT Specification
getGroupingSize
public AVT getGroupingSize()
Get the "grouping-size" attribute.
The optional grouping-size specifies the size (normally 3) of the grouping.
- Value of "grouping-size" attribute.
convert in XSLT Specification
getLang
public AVT getLang()
Get the "lang" attribute.
When numbering with an alphabetic sequence, the lang attribute
specifies which language's alphabet is to be used; it has the same
range of values as xml:lang [XML]; if no lang value is specified,
the language should be determined from the system environment.
Implementers should document for which languages they support numbering.
- Value ofr "lang" attribute.
convert in XSLT Specification
getLetterValue
public AVT getLetterValue()
Get the "letter-value" attribute.
The letter-value attribute disambiguates between numbering sequences
that use letters.
- Value to set for "letter-value" attribute.
convert in XSLT Specification
getLevel
public int getLevel()
Get the "level" attribute.
The level attribute specifies what levels of the source tree should
be considered; it has the values single, multiple or any. The default
is single.
- Value of "level" attribute.
getValue
public XPath getValue()
Get the "value" attribute.
The value attribute contains an expression. The expression is evaluated
and the resulting object is converted to a number as if by a call to the
number function.
- Value of "value" attribute.
getXSLToken
public int getXSLToken()
Get an int constant identifying the type of element.
- getXSLToken in interface ElemTemplateElement
- The token ID for this element
Constants
setCount
public void setCount(XPath v)
Set the "count" attribute.
The count attribute is a pattern that specifies what nodes
should be counted at those levels. If count attribute is not
specified, then it defaults to the pattern that matches any
node with the same node type as the current node and, if the
current node has an expanded-name, with the same expanded-name
as the current node.
v
- Value to set for "count" attribute.
setFormat
public void setFormat(AVT v)
Set the "format" attribute.
The "format" attribute is used to control conversion of a list of
numbers into a string.
v
- Value to set for "format" attribute.
convert in XSLT Specification
setFrom
public void setFrom(XPath v)
Set the "from" attribute. Specifies where to count from.
For level="single" or level="multiple":
Only ancestors that are searched are
those that are descendants of the nearest ancestor that matches
the from pattern.
For level="any:
Only nodes after the first node before the
current node that match the from pattern are considered.
v
- Value to set for "from" attribute.
setGroupingSeparator
public void setGroupingSeparator(AVT v)
Set the "grouping-separator" attribute.
The grouping-separator attribute gives the separator
used as a grouping (e.g. thousands) separator in decimal
numbering sequences.
v
- Value to set for "grouping-separator" attribute.
convert in XSLT Specification
setGroupingSize
public void setGroupingSize(AVT v)
Set the "grouping-size" attribute.
The optional grouping-size specifies the size (normally 3) of the grouping.
v
- Value to set for "grouping-size" attribute.
convert in XSLT Specification
setLang
public void setLang(AVT v)
Set the "lang" attribute.
When numbering with an alphabetic sequence, the lang attribute
specifies which language's alphabet is to be used; it has the same
range of values as xml:lang [XML]; if no lang value is specified,
the language should be determined from the system environment.
Implementers should document for which languages they support numbering.
v
- Value to set for "lang" attribute.
convert in XSLT Specification
setLetterValue
public void setLetterValue(AVT v)
Set the "letter-value" attribute.
The letter-value attribute disambiguates between numbering sequences
that use letters.
v
- Value to set for "letter-value" attribute.
convert in XSLT Specification
setLevel
public void setLevel(int v)
Set the "level" attribute.
The level attribute specifies what levels of the source tree should
be considered; it has the values single, multiple or any. The default
is single.
v
- Value to set for "level" attribute.
setValue
public void setValue(XPath v)
Set the "value" attribute.
The value attribute contains an expression. The expression is evaluated
and the resulting object is converted to a number as if by a call to the
number function.
v
- Value to set for "value" attribute.