--- third_party/blink/renderer/core/xml/xslt_processor.h.orig	2026-03-15 18:32:51 UTC
+++ third_party/blink/renderer/core/xml/xslt_processor.h
@@ -89,7 +89,11 @@ class XSLTProcessor final : public ScriptWrappable {
 
   void reset();
 
+#if (LIBXML_VERSION >= 21200)
   static void ParseErrorFunc(void* user_data, const xmlError*);
+#else
+  static void ParseErrorFunc(void* user_data, xmlError*);
+#endif
   static void GenericErrorFunc(void* user_data, const char* msg, ...);
 
   // Only for libXSLT callbacks
