blob: 2396c9d99fe1ac858d2a888490271e934569bae6 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Xalan-C++ API : Main Page</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<!-- The head section is copied from Doxygen 1.7.1 generated default output -->
<body>
<h2 align="center">Xalan-C++ API Documentation</h2>
<h3 align="center"><a href="../index.html">The Xalan C++ XSLT Processor Version 1.11</a></h3>
<hr/>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> </div>
<div class="headertitle">
<h1>ElemForEach Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="ElemForEach" --><!-- doxytag: inherits="ElemTemplateElement" -->
<p><code>#include &lt;<a class="el" href="ElemForEach_8hpp_source.html">ElemForEach.hpp</a>&gt;</code></p>
<p>Inherits <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a>.</p>
<p>Inherited by <a class="el" href="classElemApplyTemplates.html">ElemApplyTemplates</a>.</p>
<div class="dynheader">
Collaboration diagram for ElemForEach:</div>
<div class="dyncontent">
<div class="center"><img src="classElemForEach__coll__graph.png" border="0" usemap="#ElemForEach_coll__map" alt="Collaboration graph"/></div>
<map name="ElemForEach_coll__map" id="ElemForEach_coll__map">
<area shape="rect" id="node2" href="classElemTemplateElement.html" title="ElemTemplateElement" alt="" coords="2279,517,2444,547"/><area shape="rect" id="node25" href="classElemTextLiteral.html" title="ElemTextLiteral" alt="" coords="2875,441,2992,471"/><area shape="rect" id="node43" href="classElemTemplate.html" title="ElemTemplate" alt="" coords="2877,645,2989,675"/><area shape="rect" id="node95" href="classStylesheetRoot.html" title="This acts as the stylesheet root of the stylesheet tree, and holds values that are shared by all styl..." alt="" coords="3753,916,3871,945"/><area shape="rect" id="node4" href="classPrefixResolver.html" title="This class defines an interface for classes that resolve namespace prefixes to their URIs..." alt="" coords="1901,756,2011,785"/><area shape="rect" id="node66" href="classStylesheet.html" title="This class represents the base stylesheet or an &quot;import&quot; stylesheet." alt="" coords="3381,915,3472,944"/><area shape="rect" id="node6" href="classNamespacesHandler.html" title="NamespacesHandler" alt="" coords="1879,891,2033,920"/><area shape="rect" id="node8" href="classXalanVector.html" title="XalanVector\&lt; Namespace \&gt;" alt="" coords="1295,813,1500,843"/><area shape="rect" id="node10" href="classXalanMap.html" title="XalanMap\&lt; const XalanDOMString *, const XalanDOMString * \&gt;" alt="" coords="1180,867,1615,896"/><area shape="rect" id="node12" href="classXalanVector.html" title="XalanVector\&lt; BucketType, ConstructWithMemoryManagerTraits\&lt; BucketType \&gt; \&gt;" alt="" coords="433,1403,977,1432"/><area shape="rect" id="node69" href="classXalanMap.html" title="XalanMap\&lt; XalanDOMString, ExtensionNSHandler * \&gt;" alt="" coords="1212,1223,1583,1252"/><area shape="rect" id="node83" href="classXalanMap.html" title="XalanMap\&lt; XalanDOMString, PatternTableVectorType \&gt;" alt="" coords="1208,1101,1587,1131"/><area shape="rect" id="node98" href="classXalanMap.html" title="XalanMap\&lt; const XalanQName *, AttributeSetVectorType \&gt;" alt="" coords="1193,1548,1601,1577"/><area shape="rect" id="node109" href="classXalanMap.html" title="XalanMap\&lt; XalanQNameByReference, const ElemTemplate * \&gt;" alt="" coords="1183,1425,1612,1455"/><area shape="rect" id="node14" href="structXalanMapKeyTraits_3_01const_01XalanDOMString_01_5_01_4.html" title="XalanMapKeyTraits\&lt; const XalanDOMString * \&gt;" alt="" coords="541,867,869,896"/><area shape="rect" id="node16" href="classXalanList.html" title="XalanList\&lt; Entry \&gt;" alt="" coords="633,1289,777,1319"/><area shape="rect" id="node18" href="structXalanList_1_1Node.html" title="XalanList\&lt; Type \&gt;::Node" alt="" coords="44,1289,225,1319"/><area shape="rect" id="node21" href="classXalanVector.html" title="XalanVector\&lt; const XalanDOMString * \&gt;" alt="" coords="1255,920,1540,949"/><area shape="rect" id="node23" href="classXalanVector.html" title="XalanVector\&lt; NamespaceExtended \&gt;" alt="" coords="1264,973,1531,1003"/><area shape="rect" id="node28" href="classXalanQNameByReference.html" title="XalanQNameByReference" alt="" coords="1863,391,2049,420"/><area shape="rect" id="node30" href="classXalanQName.html" title="Class to represent a qualified name." alt="" coords="1344,428,1451,457"/><area shape="rect" id="node32" href="classXalanDOMString.html" title="XalanDOMString" alt="" coords="641,327,769,356"/><area shape="rect" id="node37" href="classElemTemplateElement_1_1LocatorProxy.html" title="ElemTemplateElement::LocatorProxy" alt="" coords="1269,489,1525,519"/><area shape="rect" id="node46" href="classXPath.html" title="XPath" alt="" coords="1925,647,1987,676"/><area shape="rect" id="node54" href="classXPathExpression.html" title="XPathExpression" alt="" coords="1332,623,1463,652"/><area shape="rect" id="node121" href="classXalanNamespace.html" title="XalanNamespace" alt="" coords="1329,241,1465,271"/><area shape="rect" id="node34" href="classXalanVector.html" title="XalanVector\&lt; XalanDOMChar \&gt;" alt="" coords="21,327,248,356"/><area shape="rect" id="node39" href="classXalanLocator.html" title="This class defines a base class for Locator derivations in Xalan." alt="" coords="652,489,759,519"/><area shape="rect" id="node48" href="classXPathFunctionTable.html" title="Class defines a table of functions that can be called in XPath expresions." alt="" coords="1324,736,1471,765"/><area shape="rect" id="node50" href="classFunction.html" title="Function" alt="" coords="668,801,743,831"/><area shape="rect" id="node52" href="structXPathFunctionTable_1_1FunctionNameTableEntry.html" title="XPathFunctionTable::FunctionNameTableEntry" alt="" coords="548,736,863,765"/><area shape="rect" id="node56" href="classXalanVector.html" title="XalanVector\&lt; XToken \&gt;" alt="" coords="617,676,793,705"/><area shape="rect" id="node58" href="classXalanVector.html" title="XalanVector\&lt; int \&gt;" alt="" coords="632,569,779,599"/><area shape="rect" id="node60" href="classXalanVector.html" title="XalanVector\&lt; double \&gt;" alt="" coords="619,623,792,652"/><area shape="rect" id="node73" href="structXalanMapKeyTraits_3_01XalanDOMString_01_4.html" title="XalanMapKeyTraits\&lt; XalanDOMString \&gt;" alt="" coords="567,1021,844,1051"/><area shape="rect" id="node76" href="classXalanVector.html" title="XalanVector\&lt; Stylesheet * \&gt;" alt="" coords="2829,929,3037,959"/><area shape="rect" id="node78" href="classXalanVector.html" title="XalanVector\&lt; ElemVariable * \&gt;" alt="" coords="2821,775,3045,804"/><area shape="rect" id="node81" href="classXalanVector.html" title="XalanVector\&lt; XalanSpaceNodeTester \&gt;" alt="" coords="2793,1087,3073,1116"/><area shape="rect" id="node88" href="classXalanVector.html" title="XalanVector\&lt; Type, ConstructionTraits \&gt;" alt="" coords="2792,1200,3075,1229"/><area shape="rect" id="node90" href="classXalanVector.html" title="XalanVector\&lt; XalanDOMString \&gt;" alt="" coords="2816,983,3051,1012"/><area shape="rect" id="node93" href="classXalanVector.html" title="XalanVector\&lt; ElemDecimalFormat * \&gt;" alt="" coords="2799,1253,3068,1283"/><area shape="rect" id="node100" href="structXalanMapKeyTraits_3_01const_01XalanQName_01_5_01_4.html" title="XalanMapKeyTraits\&lt; const XalanQName * \&gt;" alt="" coords="551,1695,860,1724"/><area shape="rect" id="node106" href="classXalanVector.html" title="XalanVector\&lt; const XalanQName * \&gt;" alt="" coords="3293,1512,3560,1541"/><area shape="rect" id="node112" href="structXalanMapKeyTraits_3_01XalanQNameByReference_01_4.html" title="XalanMapKeyTraits\&lt; XalanQNameByReference \&gt;" alt="" coords="536,1581,875,1611"/><area shape="rect" id="node114" href="structXalanMapKeyTraits_3_01XalanQName_01_4.html" title="XalanMapKeyTraits\&lt; XalanQName \&gt;" alt="" coords="5,1581,264,1611"/><area shape="rect" id="node117" href="classXalanDeque.html" title="Xalan implementation of deque." alt="" coords="2485,309,2768,339"/><area shape="rect" id="node119" href="classXalanVector.html" title="XalanVector\&lt; BlockType * \&gt;" alt="" coords="1855,241,2057,271"/><area shape="rect" id="node124" href="classXalanVector.html" title="XalanVector\&lt; KeyDeclaration \&gt;" alt="" coords="2820,1408,3047,1437"/><area shape="rect" id="node126" href="classXalanVector.html" title="XalanVector\&lt; ElemSort * \&gt;" alt="" coords="2261,775,2461,804"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="classElemForEach-members.html">List of all members.</a></p>
<h2><a name="pub-types"></a>
Public Types</h2>
<ul>
<li>typedef <a class="el" href="classXalanVector.html">XalanVector</a>&lt; <a class="el" href="classElemSort.html">ElemSort</a> * &gt; <a class="el" href="classElemForEach.html#a5b13cdf4799aa8117ff353caa80c4d7b">SortElemsVectorType</a>
</ul>
<h2><a name="pub-methods"></a>
Public Member Functions</h2>
<ul>
<li><a class="el" href="classElemForEach.html#ae59e4f47a7202d299fe58cd286911339">ElemForEach</a> (<a class="el" href="classStylesheetConstructionContext.html">StylesheetConstructionContext</a> &amp;constructionContext, <a class="el" href="classStylesheet.html">Stylesheet</a> &amp;stylesheetTree, const <a class="el" href="XalanSourceTreeContentHandler_8hpp.html#ab5db67e0ad48b82d8a0476b99c377fdb">AttributeListType</a> &amp;atts, XalanFileLoc lineNumber, XalanFileLoc columnNumber)
<dl class="el"><dd class="mdescRight">Construct an object corresponding to an "xsl:for-each" element. <a href="#ae59e4f47a7202d299fe58cd286911339"></a><br/></dl><li>virtual <a class="el" href="classElemForEach.html#a7c7fde8945ee0a78e2da685831413f93">~ElemForEach</a> ()
<li>virtual const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <a class="el" href="classElemForEach.html#ad9a87ac35e43a831bf308fb63bc1cf0a">getElementName</a> () const
<dl class="el"><dd class="mdescRight">Get a string for the name of the element. <a href="#ad9a87ac35e43a831bf308fb63bc1cf0a"></a><br/></dl><li>virtual void <a class="el" href="classElemForEach.html#aaf4d426eaf1e9ae1c40439f8c0268473">processSortElement</a> (<a class="el" href="classStylesheetConstructionContext.html">StylesheetConstructionContext</a> &amp;constructionContext, <a class="el" href="classStylesheet.html">Stylesheet</a> &amp;theStylesheet, const <a class="el" href="XalanSourceTreeContentHandler_8hpp.html#ab5db67e0ad48b82d8a0476b99c377fdb">AttributeListType</a> &amp;atts, const Locator *locator=0)
<dl class="el"><dd class="mdescRight">Called during compilation to process xsl:sort elements in the stylesheet. <a href="#aaf4d426eaf1e9ae1c40439f8c0268473"></a><br/></dl><li>virtual void <a class="el" href="classElemForEach.html#a4a1277dca65c78c535b0576e3e3d574c">postConstruction</a> (<a class="el" href="classStylesheetConstructionContext.html">StylesheetConstructionContext</a> &amp;constructionContext, const <a class="el" href="classNamespacesHandler.html">NamespacesHandler</a> &amp;theParentHandler)
<dl class="el"><dd class="mdescRight">Called after construction is completed. <a href="#a4a1277dca65c78c535b0576e3e3d574c"></a><br/></dl><li>virtual const <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a> * <a class="el" href="classElemForEach.html#ae7c521dd7899d5e2e1596f04d810710a">startElement</a> (<a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;executionContext) const
<dl class="el"><dd class="mdescRight">Completes "pre-processing" before any sub-elements are invoked (i.e. <a href="#ae7c521dd7899d5e2e1596f04d810710a"></a><br/></dl><li>virtual void <a class="el" href="classElemForEach.html#a32b9daf6db7440e63f4c8da47797d152">endElement</a> (<a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;executionContext) const
<dl class="el"><dd class="mdescRight">Completes "post-processing" afer any sub-elements are invoked (i.e. <a href="#a32b9daf6db7440e63f4c8da47797d152"></a><br/></dl><li>virtual const <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a> * <a class="el" href="classElemForEach.html#a9cb68a9e4766a297aed3cf938687e780">getNextChildElemToExecute</a> (<a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;executionContext, const <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a> *currentElem) const
<dl class="el"><dd class="mdescRight">Returns the next sub-element (i.e. <a href="#a9cb68a9e4766a297aed3cf938687e780"></a><br/></dl><li>virtual const <a class="el" href="classXPath.html">XPath</a> * <a class="el" href="classElemForEach.html#ab3c275d65f2fd5cc645e3cae57bb34e2">getXPath</a> (XalanSize_t index) const
<dl class="el"><dd class="mdescRight">Get <a class="el" href="classXPath.html">XPath</a> pattern/expression of one of the element atribute. <a href="#ab3c275d65f2fd5cc645e3cae57bb34e2"></a><br/></dl></ul>
<h2><a name="pro-methods"></a>
Protected Member Functions</h2>
<ul>
<li><a class="el" href="classElemForEach.html#a9a80838e91c2acbee0828f65d387c69d">ElemForEach</a> (<a class="el" href="classStylesheetConstructionContext.html">StylesheetConstructionContext</a> &amp;constructionContext, <a class="el" href="classStylesheet.html">Stylesheet</a> &amp;stylesheetTree, XalanFileLoc lineNumber, XalanFileLoc columnNumber, int xslToken)
<dl class="el"><dd class="mdescRight">Construct an object derived from <a class="el" href="classElemForEach.html">ElemForEach</a>. <a href="#a9a80838e91c2acbee0828f65d387c69d"></a><br/></dl><li>virtual const <a class="el" href="classNodeRefListBase.html">NodeRefListBase</a> * <a class="el" href="classElemForEach.html#a60a94b5801670d58e46a695282922596">createSelectedAndSortedNodeList</a> (<a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;executionContext) const
<li>virtual void <a class="el" href="classElemForEach.html#ab5afc85ece8be75098ed894a756429a1">releaseSelectedAndSortedNodeList</a> (<a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;executionContext) const
<li>virtual const <a class="el" href="classNodeRefListBase.html">NodeRefListBase</a> * <a class="el" href="classElemForEach.html#ab326c97609c65b4ffcee181f558232c4">sortChildren</a> (<a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;executionContext, const <a class="el" href="classNodeRefListBase.html">NodeRefListBase</a> &amp;selectedNodeList, <a class="el" href="classMutableNodeRefList.html">MutableNodeRefList</a> &amp;sortedNodeList) const
</ul>
<h2><a name="pro-attribs"></a>
Protected Attributes</h2>
<ul>
<li>const <a class="el" href="classXPath.html">XPath</a> * <a class="el" href="classElemForEach.html#a51ec948b06b3d6f49eba99ce9863899f">m_selectPattern</a>
</ul>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Definition at line <a class="el" href="ElemForEach_8hpp_source.html#l00058">58</a> of file <a class="el" href="ElemForEach_8hpp_source.html">ElemForEach.hpp</a>.</p>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a5b13cdf4799aa8117ff353caa80c4d7b"></a><!-- doxytag: member="ElemForEach::SortElemsVectorType" ref="a5b13cdf4799aa8117ff353caa80c4d7b" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="el" href="classXalanVector.html">XalanVector</a>&lt;<a class="el" href="classElemSort.html">ElemSort</a>*&gt; <a class="el" href="classXalanVector.html">ElemForEach::SortElemsVectorType</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="ElemForEach_8hpp_source.html#l00081">81</a> of file <a class="el" href="ElemForEach_8hpp_source.html">ElemForEach.hpp</a>.</p>
</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ae59e4f47a7202d299fe58cd286911339"></a><!-- doxytag: member="ElemForEach::ElemForEach" ref="ae59e4f47a7202d299fe58cd286911339" args="(StylesheetConstructionContext &amp;constructionContext, Stylesheet &amp;stylesheetTree, const AttributeListType &amp;atts, XalanFileLoc lineNumber, XalanFileLoc columnNumber)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ElemForEach::ElemForEach </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classStylesheetConstructionContext.html">StylesheetConstructionContext</a> &amp;&nbsp;</td>
<td class="paramname"> <em>constructionContext</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classStylesheet.html">Stylesheet</a> &amp;&nbsp;</td>
<td class="paramname"> <em>stylesheetTree</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="XalanSourceTreeContentHandler_8hpp.html#ab5db67e0ad48b82d8a0476b99c377fdb">AttributeListType</a> &amp;&nbsp;</td>
<td class="paramname"> <em>atts</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">XalanFileLoc&nbsp;</td>
<td class="paramname"> <em>lineNumber</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">XalanFileLoc&nbsp;</td>
<td class="paramname"> <em>columnNumber</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Construct an object corresponding to an "xsl:for-each" element. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>constructionContext</em>&nbsp;</td><td>context for construction of object </td></tr>
<tr><td valign="top"></td><td valign="top"><em>stylesheetTree</em>&nbsp;</td><td>stylesheet containing element </td></tr>
<tr><td valign="top"></td><td valign="top"><em>atts</em>&nbsp;</td><td>list of attributes for element </td></tr>
<tr><td valign="top"></td><td valign="top"><em>lineNumber</em>&nbsp;</td><td>line number in document </td></tr>
<tr><td valign="top"></td><td valign="top"><em>columnNumber</em>&nbsp;</td><td>column number in document </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a7c7fde8945ee0a78e2da685831413f93"></a><!-- doxytag: member="ElemForEach::~ElemForEach" ref="a7c7fde8945ee0a78e2da685831413f93" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual ElemForEach::~ElemForEach </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a9a80838e91c2acbee0828f65d387c69d"></a><!-- doxytag: member="ElemForEach::ElemForEach" ref="a9a80838e91c2acbee0828f65d387c69d" args="(StylesheetConstructionContext &amp;constructionContext, Stylesheet &amp;stylesheetTree, XalanFileLoc lineNumber, XalanFileLoc columnNumber, int xslToken)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ElemForEach::ElemForEach </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classStylesheetConstructionContext.html">StylesheetConstructionContext</a> &amp;&nbsp;</td>
<td class="paramname"> <em>constructionContext</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classStylesheet.html">Stylesheet</a> &amp;&nbsp;</td>
<td class="paramname"> <em>stylesheetTree</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">XalanFileLoc&nbsp;</td>
<td class="paramname"> <em>lineNumber</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">XalanFileLoc&nbsp;</td>
<td class="paramname"> <em>columnNumber</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&nbsp;</td>
<td class="paramname"> <em>xslToken</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Construct an object derived from <a class="el" href="classElemForEach.html">ElemForEach</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>constructionContext</em>&nbsp;</td><td>context for construction of object </td></tr>
<tr><td valign="top"></td><td valign="top"><em>stylesheetTree</em>&nbsp;</td><td>stylesheet containing element </td></tr>
<tr><td valign="top"></td><td valign="top"><em>lineNumber</em>&nbsp;</td><td>line number in document </td></tr>
<tr><td valign="top"></td><td valign="top"><em>columnNumber</em>&nbsp;</td><td>column number in document </td></tr>
<tr><td valign="top"></td><td valign="top"><em>xslToken</em>&nbsp;</td><td>an integer representing the type of instance. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a60a94b5801670d58e46a695282922596"></a><!-- doxytag: member="ElemForEach::createSelectedAndSortedNodeList" ref="a60a94b5801670d58e46a695282922596" args="(StylesheetExecutionContext &amp;executionContext) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const <a class="el" href="classNodeRefListBase.html">NodeRefListBase</a>* ElemForEach::createSelectedAndSortedNodeList </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;&nbsp;</td>
<td class="paramname"> <em>executionContext</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a32b9daf6db7440e63f4c8da47797d152"></a><!-- doxytag: member="ElemForEach::endElement" ref="a32b9daf6db7440e63f4c8da47797d152" args="(StylesheetExecutionContext &amp;executionContext) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void ElemForEach::endElement </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;&nbsp;</td>
<td class="paramname"> <em>executionContext</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Completes "post-processing" afer any sub-elements are invoked (i.e. </p>
<p>children, attribute sets and templates). If there are no sub-elements it does nothing</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>executionContext</em>&nbsp;</td><td>context to execute this element </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented from <a class="el" href="classElemTemplateElement.html#aa4fdafe3998e32c8faef569d5c76dc3c">ElemTemplateElement</a>.</p>
<p>Reimplemented in <a class="el" href="classElemApplyTemplates.html#a7c37dc300aa6cd6a51882d27adafafd7">ElemApplyTemplates</a>.</p>
</div>
</div>
<a class="anchor" id="ad9a87ac35e43a831bf308fb63bc1cf0a"></a><!-- doxytag: member="ElemForEach::getElementName" ref="ad9a87ac35e43a831bf308fb63bc1cf0a" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const <a class="el" href="classXalanDOMString.html">XalanDOMString</a>&amp; ElemForEach::getElementName </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get a string for the name of the element. </p>
<p>Useful for debugging purposes, and error reporting.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A string containing the name of the element. </dd></dl>
<p>Implements <a class="el" href="classElemTemplateElement.html#a781239726cc49828a0a493f1d47ee60e">ElemTemplateElement</a>.</p>
<p>Reimplemented in <a class="el" href="classElemApplyTemplates.html#aca81ba9b71a97083bccd92e18c648e11">ElemApplyTemplates</a>.</p>
</div>
</div>
<a class="anchor" id="a9cb68a9e4766a297aed3cf938687e780"></a><!-- doxytag: member="ElemForEach::getNextChildElemToExecute" ref="a9cb68a9e4766a297aed3cf938687e780" args="(StylesheetExecutionContext &amp;executionContext, const ElemTemplateElement *currentElem) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a>* ElemForEach::getNextChildElemToExecute </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;&nbsp;</td>
<td class="paramname"> <em>executionContext</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a> *&nbsp;</td>
<td class="paramname"> <em>currentElem</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the next sub-element (i.e. </p>
<p>children, attribute-sets, templates) to execute.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>executionContext</em>&nbsp;</td><td>context to execute element </td></tr>
<tr><td valign="top"></td><td valign="top"><em>currentElem</em>&nbsp;</td><td>the last sub-element to be executed </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>next sub-element to execute, 0 only if no more sub-elements to execute </dd></dl>
<p>Reimplemented from <a class="el" href="classElemTemplateElement.html#a375fe35d3b3021e45bd826e45f298801">ElemTemplateElement</a>.</p>
<p>Reimplemented in <a class="el" href="classElemApplyTemplates.html#af80325cf18d4c46372eea6b1daa57780">ElemApplyTemplates</a>.</p>
</div>
</div>
<a class="anchor" id="ab3c275d65f2fd5cc645e3cae57bb34e2"></a><!-- doxytag: member="ElemForEach::getXPath" ref="ab3c275d65f2fd5cc645e3cae57bb34e2" args="(XalanSize_t index) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const <a class="el" href="classXPath.html">XPath</a>* ElemForEach::getXPath </td>
<td>(</td>
<td class="paramtype">XalanSize_t&nbsp;</td>
<td class="paramname"> <em>index</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get <a class="el" href="classXPath.html">XPath</a> pattern/expression of one of the element atribute. </p>
<p>number of the attribute. If an attribute has more then one attribute with pattern/expression,the order of the returned expressions are undefined</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>pointer or null </dd></dl>
<p>Reimplemented from <a class="el" href="classElemTemplateElement.html#a851fb1e059af9727c212661de87536c4">ElemTemplateElement</a>.</p>
</div>
</div>
<a class="anchor" id="a4a1277dca65c78c535b0576e3e3d574c"></a><!-- doxytag: member="ElemForEach::postConstruction" ref="a4a1277dca65c78c535b0576e3e3d574c" args="(StylesheetConstructionContext &amp;constructionContext, const NamespacesHandler &amp;theParentHandler)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void ElemForEach::postConstruction </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classStylesheetConstructionContext.html">StylesheetConstructionContext</a> &amp;&nbsp;</td>
<td class="paramname"> <em>constructionContext</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classNamespacesHandler.html">NamespacesHandler</a> &amp;&nbsp;</td>
<td class="paramname"> <em>theParentHandler</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Called after construction is completed. </p>
<p>Reimplemented from <a class="el" href="classElemTemplateElement.html#a112415447b2bd9d8e5410045ff3754b9">ElemTemplateElement</a>.</p>
</div>
</div>
<a class="anchor" id="aaf4d426eaf1e9ae1c40439f8c0268473"></a><!-- doxytag: member="ElemForEach::processSortElement" ref="aaf4d426eaf1e9ae1c40439f8c0268473" args="(StylesheetConstructionContext &amp;constructionContext, Stylesheet &amp;theStylesheet, const AttributeListType &amp;atts, const Locator *locator=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void ElemForEach::processSortElement </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classStylesheetConstructionContext.html">StylesheetConstructionContext</a> &amp;&nbsp;</td>
<td class="paramname"> <em>constructionContext</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classStylesheet.html">Stylesheet</a> &amp;&nbsp;</td>
<td class="paramname"> <em>theStylesheet</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="XalanSourceTreeContentHandler_8hpp.html#ab5db67e0ad48b82d8a0476b99c377fdb">AttributeListType</a> &amp;&nbsp;</td>
<td class="paramname"> <em>atts</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const Locator *&nbsp;</td>
<td class="paramname"> <em>locator</em> = <code>0</code></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Called during compilation to process xsl:sort elements in the stylesheet. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>constructionContext</em>&nbsp;</td><td>The current construction context </td></tr>
<tr><td valign="top"></td><td valign="top"><em>theStylesheet</em>&nbsp;</td><td>The owning stylesheet </td></tr>
<tr><td valign="top"></td><td valign="top"><em>atts</em>&nbsp;</td><td>The list of attributes for the sort element </td></tr>
<tr><td valign="top"></td><td valign="top"><em>locator</em>&nbsp;</td><td>A Locator instance for error reporting, if available.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>nothing </dd></dl>
<p>Reimplemented from <a class="el" href="classElemTemplateElement.html#a20d3ce7b0be8a066c68c156d5ef9be78">ElemTemplateElement</a>.</p>
</div>
</div>
<a class="anchor" id="ab5afc85ece8be75098ed894a756429a1"></a><!-- doxytag: member="ElemForEach::releaseSelectedAndSortedNodeList" ref="ab5afc85ece8be75098ed894a756429a1" args="(StylesheetExecutionContext &amp;executionContext) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void ElemForEach::releaseSelectedAndSortedNodeList </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;&nbsp;</td>
<td class="paramname"> <em>executionContext</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="ab326c97609c65b4ffcee181f558232c4"></a><!-- doxytag: member="ElemForEach::sortChildren" ref="ab326c97609c65b4ffcee181f558232c4" args="(StylesheetExecutionContext &amp;executionContext, const NodeRefListBase &amp;selectedNodeList, MutableNodeRefList &amp;sortedNodeList) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const <a class="el" href="classNodeRefListBase.html">NodeRefListBase</a>* ElemForEach::sortChildren </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;&nbsp;</td>
<td class="paramname"> <em>executionContext</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classNodeRefListBase.html">NodeRefListBase</a> &amp;&nbsp;</td>
<td class="paramname"> <em>selectedNodeList</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classMutableNodeRefList.html">MutableNodeRefList</a> &amp;&nbsp;</td>
<td class="paramname"> <em>sortedNodeList</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="ae7c521dd7899d5e2e1596f04d810710a"></a><!-- doxytag: member="ElemForEach::startElement" ref="ae7c521dd7899d5e2e1596f04d810710a" args="(StylesheetExecutionContext &amp;executionContext) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a>* ElemForEach::startElement </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;&nbsp;</td>
<td class="paramname"> <em>executionContext</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Completes "pre-processing" before any sub-elements are invoked (i.e. </p>
<p>children, attribute sets and templates). If there are no sub-elements it executes the primary function of the element.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>executionContext</em>&nbsp;</td><td>context to execute this element </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented from <a class="el" href="classElemTemplateElement.html#a07944df95cd470ad8b3283f307bb9caf">ElemTemplateElement</a>.</p>
<p>Reimplemented in <a class="el" href="classElemApplyTemplates.html#a559efd13235e11c0267a2bb6d09dfe64">ElemApplyTemplates</a>.</p>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a51ec948b06b3d6f49eba99ce9863899f"></a><!-- doxytag: member="ElemForEach::m_selectPattern" ref="a51ec948b06b3d6f49eba99ce9863899f" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classXPath.html">XPath</a>* <a class="el" href="classElemForEach.html#a51ec948b06b3d6f49eba99ce9863899f">ElemForEach::m_selectPattern</a><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="ElemForEach_8hpp_source.html#l00220">220</a> of file <a class="el" href="ElemForEach_8hpp_source.html">ElemForEach.hpp</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="ElemForEach_8hpp_source.html">ElemForEach.hpp</a></li>
</ul>
</div>
<p align="center"><a href="graph_legend.html">Interpreting class diagrams</a></p>
<p><font color="#000000" face="arial,helvetica,sanserif" size="-1">
<i><a href="http://www.doxygen.org/">Doxygen</a> and
<a href="http://www.graphviz.org/">GraphViz</a> are
used to generate this API documentation from the Xalan-C header files.</i></font></p>
<table border="0" cellpadding="0" cellspacing="0" width="80%">
<tr>
<td width="80%" valign="top">
<p align="center"><b>Xalan-C++ XSLT Processor Version 1.11</b><br/>
Copyright &copy; 1999-2012 The Apache Software Foundation.<br/>
All Rights Reserved.</p>
</td>
</tr>
<tr>
<td width="100%">
<p align="center"><img src="asf_logo_wide.gif" width="268" height="25" align="bottom" border="0" alt="Apache Logo">
</td>
</tr>
</table>
</body>
</html>