mirror of
https://github.com/jezhiggins/arabica
synced 2025-02-06 20:46:18 +01:00
key as match pattern now runs - woo
This commit is contained in:
parent
0a6f2071eb
commit
4f28c8ae71
2 changed files with 12 additions and 0 deletions
|
@ -489,6 +489,15 @@ public:
|
||||||
const ExecutionContext<string_type, string_adaptor>& executionContext) const
|
const ExecutionContext<string_type, string_adaptor>& executionContext) const
|
||||||
{
|
{
|
||||||
NodeSet<string_type, string_adaptor> ns;
|
NodeSet<string_type, string_adaptor> ns;
|
||||||
|
|
||||||
|
NodeSet<string_type, string_adaptor> nodes = expr_->evaluate(context, executionContext).asNodeSet();
|
||||||
|
for(typename NodeSet<string_type, string_adaptor>::const_iterator n = nodes.begin(), ne = nodes.end(); n != ne; ++n)
|
||||||
|
if(context == *n)
|
||||||
|
{
|
||||||
|
ns.push_back(context);
|
||||||
|
break;
|
||||||
|
} // if ...
|
||||||
|
|
||||||
return XPathValue<string_type, string_adaptor>(new NodeSetValue<string_type, string_adaptor>(ns));
|
return XPathValue<string_type, string_adaptor>(new NodeSetValue<string_type, string_adaptor>(ns));
|
||||||
} // evaluate
|
} // evaluate
|
||||||
|
|
||||||
|
|
|
@ -399,7 +399,10 @@
|
||||||
<test-case id="Keys__91833" skip="yes" reason="uses generate-id() in output"/>
|
<test-case id="Keys__91833" skip="yes" reason="uses generate-id() in output"/>
|
||||||
<test-case id="Keys__91834" compare="text"/>
|
<test-case id="Keys__91834" compare="text"/>
|
||||||
<test-case id="Keys__91835" compare="text"/>
|
<test-case id="Keys__91835" compare="text"/>
|
||||||
|
<test-case id="Keys__91836" skip="yes" reason="uses entities"/>
|
||||||
<test-case id="Keys__91858" compare="text"/>
|
<test-case id="Keys__91858" compare="text"/>
|
||||||
|
<test-case id="Keys__91859" skip="yes" reason="uses entities"/>
|
||||||
|
<test-case id="Keys__91860" compare="text"/>
|
||||||
<test-case id="Keys_Bug76935" compare="fragment"/>
|
<test-case id="Keys_Bug76935" compare="fragment"/>
|
||||||
<test-case id="Keys_PerfRepro2" compiles="no" reason="needs xsl:attribute-set"/>
|
<test-case id="Keys_PerfRepro2" compiles="no" reason="needs xsl:attribute-set"/>
|
||||||
<test-case id="Keys_PerfRepro3" skip="yes" reason="Runs really slowly. Come back to this later"/>
|
<test-case id="Keys_PerfRepro3" skip="yes" reason="Runs really slowly. Come back to this later"/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue