|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xalan.xslt.UnImplNode | +--weblogic.apache.xalan.xslt.ElemTemplateElement | +--weblogic.apache.xalan.xslt.ElemNumber
Implement xsl:number.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Field Summary | |
XPath |
m_countMatchPattern
Only nodes are counted that match this pattern. |
AVT |
m_format_avt
|
XPath |
m_fromMatchPattern
Specifies where to count from. |
AVT |
m_groupingSeparator_avt
|
AVT |
m_groupingSize_avt
|
AVT |
m_lang_avt
|
AVT |
m_lettervalue_avt
|
int |
m_level
When level="single", it goes up to the first node in the ancestor-or-self axis that matches the count pattern, and constructs a list of length one containing one plus the number of preceding siblings of that ancestor that match the count pattern. |
XPath |
m_valueExpr
The value attribute contains an expression. |
Fields inherited from class weblogic.apache.xalan.xslt.ElemTemplateElement |
m_columnNumber,
m_defaultSpace,
m_elemName,
m_excludedNamespaces,
m_finishedConstruction,
m_firstChild,
m_lineNumber,
m_namespaces,
m_parentNode,
m_stylesheet |
Constructor Summary | |
ElemNumber(XSLTEngineImpl processor,
Stylesheet stylesheetTree,
java.lang.String name,
org.xml.sax.AttributeList atts,
int lineNumber,
int columnNumber)
|
Method Summary | |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
Add a child to the child list. |
void |
execute(XSLTEngineImpl processor,
org.w3c.dom.Node sourceTree,
org.w3c.dom.Node sourceNode,
QName mode)
|
int |
getXSLToken()
|
protected void |
int2alphaCount(int val,
char[] aTable,
java.lang.StringBuffer stringBuf)
Convert a long integer into alphabetic counting, in other words count using the sequence A B C ... |
protected java.lang.String |
int2singlealphaCount(int val,
char[] table)
Convert a long integer into alphabetic counting, in other words count using the sequence A B C ... |
protected java.lang.String |
long2roman(long val,
boolean prefixesAreOK)
Convert a long integer into roman numerals. |
protected java.lang.String |
tradAlphaCount(int val,
XSLTResourceBundle thisBundle)
Convert a long integer into traditional alphabetic counting, in other words count using the traditional numbering. |
Methods inherited from class weblogic.apache.xalan.xslt.ElemTemplateElement |
childrenToString,
error,
executeChildren,
getBaseIdentifier,
getChildNodes,
getFirstChild,
getLastChild,
getLength,
getNamespaceForPrefix,
getNamespaceForPrefix,
getNextSibling,
getNodeName,
getNodeType,
getOwnerDocument,
getParentNode,
getTagName,
hasChildNodes,
isSpace,
isWhiteSpace,
item,
processLocatedNode,
processPrefixControl,
shouldExcludeResultNamespaceNode,
transformSelectedChildren |
Methods inherited from class weblogic.apache.xalan.xslt.UnImplNode |
cloneNode,
getAttribute,
getAttributeNode,
getAttributeNodeNS,
getAttributeNS,
getAttributes,
getElementsByTagName,
getElementsByTagNameNS,
getLocalName,
getNamespaceURI,
getNodeValue,
getPrefix,
getPreviousSibling,
hasAttribute,
hasAttributeNS,
hasAttributes,
insertBefore,
normalize,
removeAttribute,
removeAttributeNode,
removeAttributeNS,
removeChild,
replaceChild,
setAttribute,
setAttributeNode,
setAttributeNodeNS,
setAttributeNS,
setNodeValue,
setPrefix,
supports |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public XPath m_countMatchPattern
public XPath m_fromMatchPattern
public int m_level
public XPath m_valueExpr
public AVT m_format_avt
public AVT m_lang_avt
public AVT m_lettervalue_avt
public AVT m_groupingSeparator_avt
public AVT m_groupingSize_avt
Constructor Detail |
public ElemNumber(XSLTEngineImpl processor, Stylesheet stylesheetTree, java.lang.String name, org.xml.sax.AttributeList atts, int lineNumber, int columnNumber) throws org.xml.sax.SAXException
Method Detail |
public int getXSLToken()
public void execute(XSLTEngineImpl processor, org.w3c.dom.Node sourceTree, org.w3c.dom.Node sourceNode, QName mode) throws XSLProcessorException, java.net.MalformedURLException, java.io.FileNotFoundException, java.io.IOException, org.xml.sax.SAXException
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
protected java.lang.String int2singlealphaCount(int val, char[] table)
val
- Value to convert -- must be greater than zero.table
- a table containing one character for each digit in the radixprotected void int2alphaCount(int val, char[] aTable, java.lang.StringBuffer stringBuf)
val
- Value to convert -- must be greater than zero.table
- a table containing one character for each digit in the radixprotected java.lang.String tradAlphaCount(int val, XSLTResourceBundle thisBundle)
val
- Value to convert -- must be greater than zero.table
- a table containing one character for each digit in the radixprotected java.lang.String long2roman(long val, boolean prefixesAreOK)
val
- Value to convert.prefixesAreOK
- true_ to enable prefix notation (e.g. 4 = "IV"),
false_ to disable prefix notation (e.g. 4 = "IIII").DecimalToRoman
,
m_romanConvertTable
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |