was evaluating select expression twice - there was no need

This commit is contained in:
jez 2008-08-09 17:03:02 +01:00
parent 8e648de0af
commit 3511768691

View file

@ -29,7 +29,7 @@ public:
if(sel.type() != Arabica::XPath::NODE_SET)
throw SAX::SAXException("xsl:for-each must select a node set");
Arabica::XPath::NodeSet<std::string> nodes = select_->evaluateAsNodeSet(node, context.xpathContext());
Arabica::XPath::NodeSet<std::string> nodes = sel.asNodeSet();
sort(node, nodes, context);
LastFrame last(context, nodes.size());