Xalan-C++ API Documentation
Go to the documentation of this file.
18 #if !defined(XALAN_ELEMNUMBER_HEADER_GUARD)
19 #define XALAN_ELEMNUMBER_HEADER_GUARD
47 XALAN_CPP_NAMESPACE_BEGIN
100 XalanFileLoc lineNumber,
101 XalanFileLoc columnNumber,
106 MemoryManager& theManager,
110 XalanFileLoc lineNumber,
111 XalanFileLoc columnNumber,
122 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
169 const XPath* fromMatchPattern,
170 const XPath* countMatchPattern,
187 const XPath* fromMatchPattern,
188 const XPath* countMatchPattern,
231 bool stopAtFirstFound,
289 const XalanDOMChar table[],
310 evaluateLetterValueAVT(
315 traditionalAlphaCount(
326 XalanDOMChar numberType,
331 const XPath* m_countMatchPattern;
332 const XPath* m_fromMatchPattern;
333 const XPath* m_valueExpr;
337 const AVT* m_format_avt;
338 const AVT* m_lang_avt;
339 const AVT* m_lettervalue_avt;
340 const AVT* m_groupingSeparator_avt;
341 const AVT* m_groupingSize_avt;
343 const unsigned long m_id;
348 static const XalanDOMChar s_atString[];
368 static const XalanDOMChar s_piString[];
373 static const XalanDOMChar s_levelString[];
378 static const XalanDOMChar s_multipleString[];
383 static const XalanDOMChar s_anyString[];
388 static const XalanDOMChar s_singleString[];
393 static const XalanDOMChar s_alphabeticString[];
398 static const XalanDOMChar s_traditionalString[];
403 static const XalanDOMChar s_errorString[];
408 static const XalanDOMChar s_alphaCountTable[];
412 static const XalanDOMChar s_elalphaCountTable[];
423 static const size_t s_romanConvertTableSize;
463 m_currentPosition = 0;
483 return m_currentPosition >= m_maxPosition ? false :
true;
508 XALAN_CPP_NAMESPACE_END
512 #endif // XALAN_ELEMNUMBER_HEADER_GUARD
static void toRoman(CountType val, bool prefixesAreOK, XalanDOMString &theResult)
Convert an integral into roman numerals.
XalanNumberFormat * getNumberFormatter(StylesheetExecutionContext &executionContext) const
Get a formatter.
CountersTable::CountType CountType
XalanVector< CountType > CountTypeArrayType
XalanDOMString::size_type length(const XalanDOMString &theString)
Get the length of a XalanDOMString.
const XPath * getCountMatchPattern(StylesheetExecutionContext &executionContext, XalanNode *contextNode) const
Get the count match pattern, or a default value.
<meta name="usage" content="internal"> This is a table of counters, keyed by ElemNumber objects,...
static void terminate()
Perform static shut down.
void formatNumberList(StylesheetExecutionContext &executionContext, const CountType theList[], NodeRefListBase::size_type theListLength, XalanDOMString &formattedNumber) const
Format an array of integrals into a formatted string.
XalanNode * findPrecedingOrAncestorOrSelf(StylesheetExecutionContext &executionContext, const XPath *fromMatchPattern, const XPath *countMatchPattern, XalanNode *context) const
Given a 'from' pattern (ala xsl:number), a match pattern and a context, find the first ancestor that ...
virtual const XalanDOMString & getElementName() const
Get a string for the name of the element.
void getMatchingAncestors(StylesheetExecutionContext &executionContext, XalanNode *node, bool stopAtFirstFound, MutableNodeRefList &ancestors) const
Get the ancestors, up to the root, that match the pattern.
static void initialize(MemoryManager &theManager)
Perform static initialization.
XalanNode * getTargetNode(StylesheetExecutionContext &executionContext, XalanNode *sourceNode) const
Get the target node that will be counted.
This class represents the base stylesheet or an "import" stylesheet.
virtual void execute(StylesheetExecutionContext &executionContext) const
Execute the element.
Class to hold an Attribute Value Template.
Counter::CountType CountType
ElemNumber(StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, const AttributeListType &atts, XalanFileLoc lineNumber, XalanFileLoc columnNumber, unsigned long id)
Construct an object corresponding to an "xsl:number" element.
unsigned long getID() const
static void int2singlealphaCount(CountType val, const XalanDOMString &table, XalanDOMString &theResult)
Convert an intergral into alphabetic counting, in other words count using the sequence A B C ....
static void int2alphaCount(CountType val, const XalanDOMChar table[], XalanDOMString::size_type length, XalanDOMString &theResult)
Convert an integral into alphabetic counting, in other words count using the sequence A B C ....
XalanNode * getPreviousNode(StylesheetExecutionContext &executionContext, XalanNode *pos) const
Get the previous node to be counted.
XalanNode * findAncestor(StylesheetExecutionContext &executionContext, const XPath *fromMatchPattern, const XPath *countMatchPattern, XalanNode *context) const
Given a 'from' pattern (ala xsl:number), a match pattern and a context, find the first ancestor that ...
static ElemNumber * create(MemoryManager &theManager, StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, const AttributeListType &atts, XalanFileLoc lineNumber, XalanFileLoc columnNumber, unsigned long id)
void getCountString(StylesheetExecutionContext &executionContext, XalanDOMString &theResult) const
Given an XML source node, get the count according to the parameters set up by the xsl:number attribut...
virtual const XPath * getXPath(XalanSize_t index) const
Get XPath pattern/expression of one of the element atribute.
XERCES_CPP_NAMESPACE_QUALIFIER AttributeList AttributeListType
virtual const ElemTemplateElement * startElement(StylesheetExecutionContext &executionContext) const
Completes "pre-processing" before any sub-elements are invoked (i.e.
Local implementation of MutableNodeRefList.
Structure to help in converting integrals to roman numerals.
Interpreting class diagrams
Doxygen and
GraphViz are
used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.
|
|