OLD | NEW |
1 #define IN_LIBEXSLT | 1 #define IN_LIBEXSLT |
2 #include "libexslt/libexslt.h" | 2 #include "libexslt/libexslt.h" |
3 | 3 |
4 #if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__) | 4 #if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__) |
5 #include <win32config.h> | 5 #include <win32config.h> |
6 #else | 6 #else |
7 #include "config.h" | 7 #include "config.h" |
8 #endif | 8 #endif |
9 | 9 |
10 #include <libxml/tree.h> | 10 #include <libxml/tree.h> |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 xsltRegisterExtModuleFunction ((const xmlChar *) "has-same-node", | 283 xsltRegisterExtModuleFunction ((const xmlChar *) "has-same-node", |
284 EXSLT_SETS_NAMESPACE, | 284 EXSLT_SETS_NAMESPACE, |
285 exsltSetsHasSameNodesFunction); | 285 exsltSetsHasSameNodesFunction); |
286 xsltRegisterExtModuleFunction ((const xmlChar *) "leading", | 286 xsltRegisterExtModuleFunction ((const xmlChar *) "leading", |
287 EXSLT_SETS_NAMESPACE, | 287 EXSLT_SETS_NAMESPACE, |
288 exsltSetsLeadingFunction); | 288 exsltSetsLeadingFunction); |
289 xsltRegisterExtModuleFunction ((const xmlChar *) "trailing", | 289 xsltRegisterExtModuleFunction ((const xmlChar *) "trailing", |
290 EXSLT_SETS_NAMESPACE, | 290 EXSLT_SETS_NAMESPACE, |
291 exsltSetsTrailingFunction); | 291 exsltSetsTrailingFunction); |
292 } | 292 } |
| 293 |
| 294 /** |
| 295 * exsltSetsXpathCtxtRegister: |
| 296 * |
| 297 * Registers the EXSLT - Sets module for use outside XSLT |
| 298 */ |
| 299 int |
| 300 exsltSetsXpathCtxtRegister (xmlXPathContextPtr ctxt, const xmlChar *prefix) |
| 301 { |
| 302 if (ctxt |
| 303 && prefix |
| 304 && !xmlXPathRegisterNs(ctxt, |
| 305 prefix, |
| 306 (const xmlChar *) EXSLT_SETS_NAMESPACE) |
| 307 && !xmlXPathRegisterFuncNS(ctxt, |
| 308 (const xmlChar *) "difference", |
| 309 (const xmlChar *) EXSLT_SETS_NAMESPACE, |
| 310 exsltSetsDifferenceFunction) |
| 311 && !xmlXPathRegisterFuncNS(ctxt, |
| 312 (const xmlChar *) "intersection", |
| 313 (const xmlChar *) EXSLT_SETS_NAMESPACE, |
| 314 exsltSetsIntersectionFunction) |
| 315 && !xmlXPathRegisterFuncNS(ctxt, |
| 316 (const xmlChar *) "distinct", |
| 317 (const xmlChar *) EXSLT_SETS_NAMESPACE, |
| 318 exsltSetsDistinctFunction) |
| 319 && !xmlXPathRegisterFuncNS(ctxt, |
| 320 (const xmlChar *) "has-same-node", |
| 321 (const xmlChar *) EXSLT_SETS_NAMESPACE, |
| 322 exsltSetsHasSameNodesFunction) |
| 323 && !xmlXPathRegisterFuncNS(ctxt, |
| 324 (const xmlChar *) "leading", |
| 325 (const xmlChar *) EXSLT_SETS_NAMESPACE, |
| 326 exsltSetsLeadingFunction) |
| 327 && !xmlXPathRegisterFuncNS(ctxt, |
| 328 (const xmlChar *) "trailing", |
| 329 (const xmlChar *) EXSLT_SETS_NAMESPACE, |
| 330 exsltSetsTrailingFunction)) { |
| 331 return 0; |
| 332 } |
| 333 return -1; |
| 334 } |
OLD | NEW |