Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.4

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ElemForEach Class Reference

#include <ElemForEach.hpp>

Inheritance diagram for ElemForEach:

ElemTemplateElement XalanElement PrefixResolver XalanNode ElemApplyTemplates Collaboration diagram for ElemForEach:

List of all members.

Public Types

Public Methods

Protected Methods

Protected Attributes


Detailed Description


Member Typedef Documentation

typedef std::vector<ElemSort*> ElemForEach::SortElemsVectorType


Constructor & Destructor Documentation

ElemForEach::ElemForEach ( StylesheetConstructionContext & constructionContext,
Stylesheet & stylesheetTree,
const AttributeList & atts,
int lineNumber,
int columnNumber)

Construct an object corresponding to an "xsl:for-each" element.

Parameters:
constructionContext   context for construction of object
stylesheetTree   stylesheet containing element
atts   list of attributes for element
lineNumber   line number in document
columnNumber   column number in document

virtual ElemForEach::~ElemForEach () [virtual]

ElemForEach::ElemForEach ( StylesheetConstructionContext & constructionContext,
Stylesheet & stylesheetTree,
int lineNumber,
int columnNumber,
int xslToken) [protected]

Construct an object derived from ElemForEach.

Parameters:
constructionContext   context for construction of object
stylesheetTree   stylesheet containing element
lineNumber   line number in document
columnNumber   column number in document
xslToken   an integer representing the type of instance.

Member Function Documentation

virtual void ElemForEach::execute ( StylesheetExecutionContext & executionContext) const [virtual]

Execute the element's primary function.

Subclasses of this function may recursively execute down the element tree.

Parameters:
executionContext   The current execution context

Reimplemented from ElemTemplateElement.

Reimplemented in ElemApplyTemplates.

virtual const XalanDOMString& ElemForEach::getElementName () const [virtual]

Reimplemented from ElemTemplateElement.

Reimplemented in ElemApplyTemplates.

const XPath * ElemForEach::getSelectExpression () const

SortElemsVectorType & ElemForEach::getSortElems ()

const SortElemsVectorType & ElemForEach::getSortElems () const

virtual void ElemForEach::postConstruction ( StylesheetConstructionContext & constructionContext,
const NamespacesHandler & theParentHandler) [virtual]

Called after construction is completed.

Reimplemented from ElemTemplateElement.

void ElemForEach::transformSelectedChildren ( StylesheetExecutionContext & executionContext,
const ElemTemplateElement * theTemplate,
const NodeRefListBase & sourceNodes,
NodeRefListBase::size_type sourceNodesCount) const [protected]

Perform a query if needed, and call transformChild for each child.

Parameters:
executionContext   The current execution context
theTemplate   The owning template context.
sourceNodes   The source nodes to transform.
sourceNodesCount   The count of source nodes to transform.

void ElemForEach::transformSelectedChildren ( StylesheetExecutionContext & executionContext,
const ElemTemplateElement * theTemplate,
XalanNode * sourceNodeContext,
NodeSorter * sorter,
int selectStackFrameIndex) const [protected]

Perform a query if needed, and call transformChild for each child.

Parameters:
executionContext   The current execution context
template   The owning template context.
sourceNodeContext   The current source node context.
selectStackFrameIndex   stack frame context for executing the select statement

void ElemForEach::transformSelectedChildren ( StylesheetExecutionContext & executionContext,
const ElemTemplateElement * theTemplate,
XalanNode * sourceNodeContext,
int selectStackFrameIndex) const [protected]

Perform a query if needed, and call transformChild for each child.

Parameters:
executionContext   The current execution context
template   The owning template context.
sourceNodeContext   The current source node context.
selectStackFrameIndex   stack frame context for executing the select statement

Member Data Documentation

const XPath * ElemForEach::m_selectPattern [protected]


The documentation for this class was generated from the following file:

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.4
Copyright © 2000, 2001, 2002 The Apache Software Foundation. All Rights Reserved.