1From 6c716d491dd2e67f08066f4dc0619efeb49e43e6 Mon Sep 17 00:00:00 2001 2From: Nick Wellnhofer <wellnhofer@aevum.de> 3Date: Thu, 13 Feb 2025 16:48:53 +0100 4Subject: [PATCH] pattern: Fix compilation of explicit child axis 5 6The child axis is the default axis and should generate XML_OP_ELEM like 7the case without an axis. 8--- 9 pattern.c | 4 ++-- 10 1 file changed, 2 insertions(+), 2 deletions(-) 11 12diff --git a/pattern.c b/pattern.c 13index 0877fc1a0..6fa88f759 100644 14--- a/pattern.c 15+++ b/pattern.c 16@@ -1035,10 +1035,10 @@ xmlCompileStepPattern(xmlPatParserContextPtr ctxt) { 17 goto error; 18 } 19 } else { 20- PUSH(XML_OP_CHILD, token, URL); 21+ PUSH(XML_OP_ELEM, token, URL); 22 } 23 } else 24- PUSH(XML_OP_CHILD, name, NULL); 25+ PUSH(XML_OP_ELEM, name, NULL); 26 return; 27 } else if (xmlStrEqual(name, (const xmlChar *) "attribute")) { 28 XML_PAT_FREE_STRING(ctxt, name) 29-- 30GitLab 31 32