org.apache.xalan.templates
public class ElemSort extends ElemTemplateElement
Method Summary | |
---|---|
Node | appendChild(Node newChild)
Add a child to the child list.
|
void | compose(StylesheetRoot sroot)
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. |
AVT | getCaseOrder()
Get the "case-order" attribute.
case-order has the value upper-first or lower-first; this applies
when data-type="text", and specifies that upper-case letters should
sort before lower-case letters or vice-versa respectively.
|
AVT | getDataType()
Get the "data-type" attribute.
|
AVT | getLang()
Get the "lang" attribute.
lang specifies the language of the sort keys; 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.
|
String | getNodeName()
Return the node name.
|
AVT | getOrder()
Get the "order" attribute.
order specifies whether the strings should be sorted in ascending
or descending order; ascending specifies ascending order; descending
specifies descending order; the default is ascending.
|
XPath | getSelect()
Get the "select" attribute.
xsl:sort has a select attribute whose value is an expression.
|
int | getXSLToken()
Get an int constant identifying the type of element. |
void | setCaseOrder(AVT v)
Set the "case-order" attribute.
case-order has the value upper-first or lower-first; this applies
when data-type="text", and specifies that upper-case letters should
sort before lower-case letters or vice-versa respectively.
|
void | setDataType(AVT v)
Set the "data-type" attribute.
|
void | setLang(AVT v)
Set the "lang" attribute.
lang specifies the language of the sort keys; 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.
|
void | setOrder(AVT v)
Set the "order" attribute.
order specifies whether the strings should be sorted in ascending
or descending order; ascending specifies ascending order; descending
specifies descending order; the default is ascending.
|
void | setSelect(XPath v)
Set the "select" attribute.
xsl:sort has a select attribute whose value is an expression.
|
Parameters: newChild Child to add to the child list
Returns: Child just added to the child list
Throws: DOMException
Returns: The value of the "case-order" attribute
data-type
specifies the data type of the
strings; the following values are allowed:
text
specifies that the sort keys should be
sorted lexicographically in the culturally correct manner for the
language specified by lang
.
number
specifies that the sort keys should be
converted to numbers and then sorted according to the numeric value;
the sort key is converted to a number as if by a call to the
number function; the lang
attribute is ignored.
The default value is text
.
NOTE: The XSL Working Group plans that future versions of XSLT will leverage XML Schemas to define further values for this attribute.
Returns: The value of the "data-type" attribute
Returns: The value of the "lang" attribute
Returns: The element's name
Returns: The value of the "order" attribute
Returns: The value of the "select" attribute
Serial:
Parameters: v The value to set for the "case-order" attribute
data-type
specifies the data type of the
strings; the following values are allowed:
text
specifies that the sort keys should be
sorted lexicographically in the culturally correct manner for the
language specified by lang
.
number
specifies that the sort keys should be
converted to numbers and then sorted according to the numeric value;
the sort key is converted to a number as if by a call to the
number function; the lang
attribute is ignored.
The default value is text
.
NOTE: The XSL Working Group plans that future versions of XSLT will leverage XML Schemas to define further values for this attribute.
Parameters: v Value to set for the "data-type" attribute
Parameters: v The value to set for the "lang" attribute
Parameters: v The value to set for the "order" attribute
Parameters: v Value to set for the "select" attribute