|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xml.utils.UnImplNode
org.apache.xalan.templates.ElemTemplateElement
org.apache.xalan.templates.ElemSort
public class ElemSort
Implement xsl:sort.
Field Summary |
---|
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
---|---|
ElemSort()
|
Method Summary | |
---|---|
org.w3c.dom.Node |
appendChild(org.w3c.dom.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. |
java.lang.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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Constructor Detail |
---|
public ElemSort()
Method Detail |
---|
public void setSelect(XPath v)
v
- Value to set for the "select" attributepublic XPath getSelect()
public void setLang(AVT v)
v
- The value to set for the "lang" attributepublic AVT getLang()
public void setDataType(AVT v)
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.
v
- Value to set for the "data-type" attributepublic AVT getDataType()
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.
public void setOrder(AVT v)
v
- The value to set for the "order" attributepublic AVT getOrder()
public void setCaseOrder(AVT v)
v
- The value to set for the "case-order" attributepublic AVT getCaseOrder()
public int getXSLToken()
getXSLToken
in class ElemTemplateElement
Constants
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class ElemTemplateElement
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
appendChild
in interface org.w3c.dom.Node
appendChild
in class ElemTemplateElement
newChild
- Child to add to the child list
org.w3c.dom.DOMException
public void compose(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
compose
in class ElemTemplateElement
javax.xml.transform.TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |