| OLD | NEW |
| 1 /* | 1 /* |
| 2 * xpath.c: XML Path Language implementation | 2 * xpath.c: XML Path Language implementation |
| 3 * XPath is a language for addressing parts of an XML document, | 3 * XPath is a language for addressing parts of an XML document, |
| 4 * designed to be used by both XSLT and XPointer | 4 * designed to be used by both XSLT and XPointer |
| 5 *f | 5 *f |
| 6 * Reference: W3C Recommendation 16 November 1999 | 6 * Reference: W3C Recommendation 16 November 1999 |
| 7 * http://www.w3.org/TR/1999/REC-xpath-19991116 | 7 * http://www.w3.org/TR/1999/REC-xpath-19991116 |
| 8 * Public reference: | 8 * Public reference: |
| 9 * http://www.w3.org/TR/xpath | 9 * http://www.w3.org/TR/xpath |
| 10 * | 10 * |
| (...skipping 12248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12259 case XML_COMMENT_NODE: | 12259 case XML_COMMENT_NODE: |
| 12260 case XML_CDATA_SECTION_NODE: | 12260 case XML_CDATA_SECTION_NODE: |
| 12261 case XML_TEXT_NODE: | 12261 case XML_TEXT_NODE: |
| 12262 case XML_NAMESPACE_DECL: | 12262 case XML_NAMESPACE_DECL: |
| 12263 XP_TEST_HIT | 12263 XP_TEST_HIT |
| 12264 break; | 12264 break; |
| 12265 default: | 12265 default: |
| 12266 break; | 12266 break; |
| 12267 } | 12267 } |
| 12268 } else if (cur->type == type) { | 12268 } else if (cur->type == type) { |
| 12269 » » » if (type == XML_NAMESPACE_DECL) | 12269 » » » if (cur->type == XML_NAMESPACE_DECL) |
| 12270 XP_TEST_HIT_NS | 12270 XP_TEST_HIT_NS |
| 12271 else | 12271 else |
| 12272 XP_TEST_HIT | 12272 XP_TEST_HIT |
| 12273 } else if ((type == NODE_TYPE_TEXT) && | 12273 } else if ((type == NODE_TYPE_TEXT) && |
| 12274 (cur->type == XML_CDATA_SECTION_NODE)) | 12274 (cur->type == XML_CDATA_SECTION_NODE)) |
| 12275 { | 12275 { |
| 12276 XP_TEST_HIT | 12276 XP_TEST_HIT |
| 12277 } | 12277 } |
| 12278 break; | 12278 break; |
| 12279 case NODE_TEST_PI: | 12279 case NODE_TEST_PI: |
| (...skipping 2868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15148 xmlXPathTranslateFunction); | 15148 xmlXPathTranslateFunction); |
| 15149 | 15149 |
| 15150 xmlXPathRegisterFuncNS(ctxt, (const xmlChar *)"escape-uri", | 15150 xmlXPathRegisterFuncNS(ctxt, (const xmlChar *)"escape-uri", |
| 15151 (const xmlChar *)"http://www.w3.org/2002/08/xquery-functions", | 15151 (const xmlChar *)"http://www.w3.org/2002/08/xquery-functions", |
| 15152 xmlXPathEscapeUriFunction); | 15152 xmlXPathEscapeUriFunction); |
| 15153 } | 15153 } |
| 15154 | 15154 |
| 15155 #endif /* LIBXML_XPATH_ENABLED */ | 15155 #endif /* LIBXML_XPATH_ENABLED */ |
| 15156 #define bottom_xpath | 15156 #define bottom_xpath |
| 15157 #include "elfgcchack.h" | 15157 #include "elfgcchack.h" |
| OLD | NEW |