# HG changeset patch # User Nick Wellnhofer <wellnhofer@aevum.de> # Date 1662564318 -7200 # Wed Sep 07 17:25:18 2022 +0200 # Node ID 88e6139997f8ccbdd8be1f37d230813da7e8a359 # Parent 8bc32a6faaf78e4603eefe77d25e97296445fd57 xslt: Return NULL stylesheet on attribute set errors diff --git a/libxslt/xslt.c b/libxslt/xslt.c --- a/libxslt/xslt.c +++ b/libxslt/xslt.c @@ -6681,6 +6681,9 @@ } #endif /* else of XSLT_REFACTORED */ + if (style->parent == NULL) + xsltResolveStylesheetAttributeSet(style); + if (style->errors != 0) { /* * Detach the doc from the stylesheet; otherwise the doc @@ -6695,9 +6698,6 @@ return(-1); } - if (style->parent == NULL) - xsltResolveStylesheetAttributeSet(style); - return(0); }