projects
/
platform
/
upstream
/
libxslt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8785a2f
)
Fix a bug in selecting XSLT elements
author
Daniel Veillard
<veillard@redhat.com>
Tue, 7 Aug 2012 03:26:43 +0000
(11:26 +0800)
committer
Daniel Veillard
<veillard@redhat.com>
Tue, 7 Aug 2012 03:26:43 +0000
(11:26 +0800)
libxslt/xsltutils.h
patch
|
blob
|
history
diff --git
a/libxslt/xsltutils.h
b/libxslt/xsltutils.h
index
3886be3
..
c986a9c
100644
(file)
--- 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: