diff options
author | Daniel Veillard <veillard@redhat.com> | 2012-08-07 11:26:43 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2012-08-07 11:26:43 +0800 |
commit | e6a0bc8081271f33b9899eb78e1da1a2a0428419 (patch) | |
tree | 0d253a398c14338c3978911000d8c4b18efee55d | |
parent | 8785a2ffd0d146df0395ab71ce4734d0a8ba0f7e (diff) | |
download | libxslt-e6a0bc8081271f33b9899eb78e1da1a2a0428419.tar.gz libxslt-e6a0bc8081271f33b9899eb78e1da1a2a0428419.tar.bz2 libxslt-e6a0bc8081271f33b9899eb78e1da1a2a0428419.zip |
Fix a bug in selecting XSLT elements
-rw-r--r-- | libxslt/xsltutils.h | 4 |
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: |