dbertoni 01/07/20 22:36:07
Modified: c/src/XSLT XalanTemplate.cpp
Log:
New template definitions.
Revision Changes Path
1.28 +32 -3 xml-xalan/c/src/XSLT/XalanTemplate.cpp
Index: XalanTemplate.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/XalanTemplate.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- XalanTemplate.cpp 2001/07/12 04:24:37 1.27
+++ XalanTemplate.cpp 2001/07/21 05:36:07 1.28
@@ -219,7 +219,7 @@
static void
-foo()
+foo(XPathExecutionContext& theExecutionContext)
{
#if !defined(XALAN_NO_NAMESPACES)
using std::for_each;
@@ -567,13 +567,42 @@
{
NodeRefList::NodeListVectorType theVector;
-
+
remove(
theVector.begin(),
theVector.end(),
NodeRefList::NodeListVectorType::value_type(0));
}
-
+
+ {
+#if !defined(XALAN_NO_NAMESPACES)
+ using std::back_inserter;
+ using std::copy;
+#endif
+
+ typedef MutableNodeRefList::addNodeInDocOrderFunctor
addNodeInDocOrderFunctor;
+
+ MutableNodeRefList theList;
+ NodeRefList::NodeListVectorType theVector;
+
+ copy(
+ nodelist.m_nodeList.rbegin(),
+ nodelist.m_nodeList.rend(),
+ back_inserter(m_nodeList));
+
+ addNodeInDocOrderFunctor theFunctor(theList,
executionContext)
+
+ for_each(
+ theVector.begin(),
+ theVector.end(),
+ theFunctor);
+
+ for_each(
+ nodelist.m_nodeList.rbegin(),
+ nodelist.m_nodeList.rend(),
+ theFunctor);
+ }
+
{
NodeSorter::NodeVectorType theVector;
NodeSorter::NodeSortKeyCompare* theComparer;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]