mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-18 22:26:32 +01:00
was evaluating select expression twice - there was no need
This commit is contained in:
parent
8e648de0af
commit
3511768691
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue