Index: third_party/libxslt/libxslt/keys.c |
diff --git a/third_party/libxslt/libxslt/keys.c b/third_party/libxslt/libxslt/keys.c |
index b8f14556c4ada9fe4aa47a70838000554e654301..43a343eb2c0ca4fb423e6cb1fcc775a7fd0e00b5 100644 |
--- a/third_party/libxslt/libxslt/keys.c |
+++ b/third_party/libxslt/libxslt/keys.c |
@@ -759,6 +759,7 @@ fprintf(stderr, "xsltInitCtxtKey %s : %d\n", keyDef->name, ctxt->keyInitLevel); |
cur = matchList->nodeTab[i]; |
if (! IS_XSLT_REAL_NODE(cur)) |
continue; |
+ ctxt->node = cur; |
xpctxt->node = cur; |
/* |
* Process the 'use' of the xsl:key. |