OLD | NEW |
1 /* | 1 /* |
2 * Summary: set of utilities for the XSLT engine | 2 * Summary: set of utilities for the XSLT engine |
3 * Description: interfaces for the utilities module of the XSLT engine. | 3 * Description: interfaces for the utilities module of the XSLT engine. |
4 * things like message handling, profiling, and other | 4 * things like message handling, profiling, and other |
5 * generally useful routines. | 5 * generally useful routines. |
6 * | 6 * |
7 * Copy: See Copyright for the status of this software. | 7 * Copy: See Copyright for the status of this software. |
8 * | 8 * |
9 * Author: Daniel Veillard | 9 * Author: Daniel Veillard |
10 */ | 10 */ |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 xsltGenericError(xsltGenericErrorContext, \ | 45 xsltGenericError(xsltGenericErrorContext, \ |
46 "Internal error at %s:%d\n", \ | 46 "Internal error at %s:%d\n", \ |
47 __FILE__, __LINE__); | 47 __FILE__, __LINE__); |
48 | 48 |
49 /** | 49 /** |
50 * IS_XSLT_ELEM: | 50 * IS_XSLT_ELEM: |
51 * | 51 * |
52 * Checks that the element pertains to XSLT namespace. | 52 * Checks that the element pertains to XSLT namespace. |
53 */ | 53 */ |
54 #define IS_XSLT_ELEM(n) \ | 54 #define IS_XSLT_ELEM(n) \ |
55 (((n) != NULL) && ((n)->ns != NULL) &&» » » » \ | 55 (((n) != NULL) && ((n)->type == XML_ELEMENT_NODE) && \ |
56 (xmlStrEqual((n)->ns->href, XSLT_NAMESPACE))) | 56 ((n)->ns != NULL) && (xmlStrEqual((n)->ns->href, XSLT_NAMESPACE))) |
57 | 57 |
58 /** | 58 /** |
59 * IS_XSLT_NAME: | 59 * IS_XSLT_NAME: |
60 * | 60 * |
61 * Checks the value of an element in XSLT namespace. | 61 * Checks the value of an element in XSLT namespace. |
62 */ | 62 */ |
63 #define IS_XSLT_NAME(n, val) \ | 63 #define IS_XSLT_NAME(n, val) \ |
64 (xmlStrEqual((n)->name, (const xmlChar *) (val))) | 64 (xmlStrEqual((n)->name, (const xmlChar *) (val))) |
65 | 65 |
66 /** | 66 /** |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 XSLTPUBFUN void XSLTCALL | 300 XSLTPUBFUN void XSLTCALL |
301 xslDropCall (void); | 301 xslDropCall (void); |
302 | 302 |
303 #ifdef __cplusplus | 303 #ifdef __cplusplus |
304 } | 304 } |
305 #endif | 305 #endif |
306 | 306 |
307 #endif /* __XML_XSLTUTILS_H__ */ | 307 #endif /* __XML_XSLTUTILS_H__ */ |
308 | 308 |
309 | 309 |
OLD | NEW |