32 lines
905 B
Diff
32 lines
905 B
Diff
|
|
From 503f788e84f1c1f1d769c2c7258d77faee94b5a3 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Nick Wellnhofer <wellnhofer@aevum.de>
|
||
|
|
Date: Thu, 13 Feb 2025 16:48:53 +0100
|
||
|
|
Subject: [PATCH] pattern: Fix compilation of explicit child axis
|
||
|
|
|
||
|
|
The child axis is the default axis and should generate XML_OP_ELEM like
|
||
|
|
the case without an axis.
|
||
|
|
---
|
||
|
|
pattern.c | 4 ++--
|
||
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/pattern.c b/pattern.c
|
||
|
|
index 55ae2d3e5..b0f7f1601 100644
|
||
|
|
--- a/pattern.c
|
||
|
|
+++ b/pattern.c
|
||
|
|
@@ -1164,10 +1164,10 @@ xmlCompileStepPattern(xmlPatParserContextPtr ctxt) {
|
||
|
|
goto error;
|
||
|
|
}
|
||
|
|
} else {
|
||
|
|
- PUSH(XML_OP_CHILD, token, URL);
|
||
|
|
+ PUSH(XML_OP_ELEM, token, URL);
|
||
|
|
}
|
||
|
|
} else
|
||
|
|
- PUSH(XML_OP_CHILD, name, NULL);
|
||
|
|
+ PUSH(XML_OP_ELEM, name, NULL);
|
||
|
|
return;
|
||
|
|
} else if (xmlStrEqual(name, (const xmlChar *) "attribute")) {
|
||
|
|
XML_PAT_FREE_STRING(ctxt, name)
|
||
|
|
--
|
||
|
|
GitLab
|
||
|
|
|