Index: third_party/libxslt/libxslt/xsltutils.h |
=================================================================== |
--- third_party/libxslt/libxslt/xsltutils.h (revision 139969) |
+++ third_party/libxslt/libxslt/xsltutils.h (working copy) |
@@ -52,8 +52,8 @@ |
* Checks that the element pertains to XSLT namespace. |
*/ |
#define IS_XSLT_ELEM(n) \ |
- (((n) != NULL) && ((n)->ns != NULL) && \ |
- (xmlStrEqual((n)->ns->href, XSLT_NAMESPACE))) |
+ (((n) != NULL) && ((n)->type == XML_ELEMENT_NODE) && \ |
+ ((n)->ns != NULL) && (xmlStrEqual((n)->ns->href, XSLT_NAMESPACE))) |
/** |
* IS_XSLT_NAME: |