summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2012-08-07 11:26:43 +0800
committerDaniel Veillard <veillard@redhat.com>2012-08-07 11:26:43 +0800
commite6a0bc8081271f33b9899eb78e1da1a2a0428419 (patch)
tree0d253a398c14338c3978911000d8c4b18efee55d
parent8785a2ffd0d146df0395ab71ce4734d0a8ba0f7e (diff)
downloadlibxslt-e6a0bc8081271f33b9899eb78e1da1a2a0428419.tar.gz
libxslt-e6a0bc8081271f33b9899eb78e1da1a2a0428419.tar.bz2
libxslt-e6a0bc8081271f33b9899eb78e1da1a2a0428419.zip
Fix a bug in selecting XSLT elements
-rw-r--r--libxslt/xsltutils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libxslt/xsltutils.h b/libxslt/xsltutils.h
index 3886be34..c986a9c7 100644
--- a/libxslt/xsltutils.h
+++ b/libxslt/xsltutils.h
@@ -52,8 +52,8 @@ extern "C" {
* 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: