diff options
-rw-r--r-- | libxslt/preproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libxslt/preproc.c b/libxslt/preproc.c index 9a5e9d69..b47d8099 100644 --- a/libxslt/preproc.c +++ b/libxslt/preproc.c @@ -82,7 +82,7 @@ xsltCheckTopLevelElement(xsltStylesheetPtr style, xmlNodePtr inst, int err) { } return(0); } - if ((parent->ns == NULL) || + if ((parent->ns == NULL) || (parent->type != XML_ELEMENT_NODE) || ((parent->ns != inst->ns) && (!xmlStrEqual(parent->ns->href, inst->ns->href))) || ((!xmlStrEqual(parent->name, BAD_CAST "stylesheet")) && |