Lines Matching refs:cur

56 xsltCopyNamespaceListInternal(xmlNodePtr node, xmlNsPtr cur);
494 xmlDocPtr tmp, cur = cache->RVT; in xsltTransformCacheFree() local
495 while (cur) { in xsltTransformCacheFree()
496 tmp = cur; in xsltTransformCacheFree()
497 cur = (xmlDocPtr) cur->next; in xsltTransformCacheFree()
512 xsltStackElemPtr tmp, cur = cache->stackItems; in xsltTransformCacheFree() local
513 while (cur) { in xsltTransformCacheFree()
514 tmp = cur; in xsltTransformCacheFree()
515 cur = cur->next; in xsltTransformCacheFree()
537 xsltTransformContextPtr cur; in xsltNewTransformContext() local
543 cur = (xsltTransformContextPtr) xmlMalloc(sizeof(xsltTransformContext)); in xsltNewTransformContext()
544 if (cur == NULL) { in xsltNewTransformContext()
549 memset(cur, 0, sizeof(xsltTransformContext)); in xsltNewTransformContext()
551 cur->cache = xsltTransformCacheCreate(); in xsltNewTransformContext()
552 if (cur->cache == NULL) in xsltNewTransformContext()
558 cur->dict = xmlDictCreateSub(style->dict); in xsltNewTransformContext()
559 cur->internalized = ((style->internalized) && (cur->dict != NULL)); in xsltNewTransformContext()
568 cur->templTab = (xsltTemplatePtr *) in xsltNewTransformContext()
570 if (cur->templTab == NULL) { in xsltNewTransformContext()
575 cur->templNr = 0; in xsltNewTransformContext()
576 cur->templMax = 5; in xsltNewTransformContext()
577 cur->templ = NULL; in xsltNewTransformContext()
578 cur->maxTemplateDepth = xsltMaxDepth; in xsltNewTransformContext()
583 cur->varsTab = (xsltStackElemPtr *) in xsltNewTransformContext()
585 if (cur->varsTab == NULL) { in xsltNewTransformContext()
590 cur->varsNr = 0; in xsltNewTransformContext()
591 cur->varsMax = 10; in xsltNewTransformContext()
592 cur->vars = NULL; in xsltNewTransformContext()
593 cur->varsBase = 0; in xsltNewTransformContext()
594 cur->maxTemplateVars = xsltMaxVars; in xsltNewTransformContext()
599 cur->profTab = NULL; in xsltNewTransformContext()
600 cur->profNr = 0; in xsltNewTransformContext()
601 cur->profMax = 0; in xsltNewTransformContext()
602 cur->prof = 0; in xsltNewTransformContext()
604 cur->style = style; in xsltNewTransformContext()
605 cur->xpathCtxt = xmlXPathNewContext(doc); in xsltNewTransformContext()
606 if (cur->xpathCtxt == NULL) { in xsltNewTransformContext()
614 if (xmlXPathContextSetCache(cur->xpathCtxt, 1, -1, 0) == -1) in xsltNewTransformContext()
620 cur->extrasMax = style->extrasNr + 20; in xsltNewTransformContext()
621 cur->extras = (xsltRuntimeExtraPtr) in xsltNewTransformContext()
622 xmlMalloc(cur->extrasMax * sizeof(xsltRuntimeExtra)); in xsltNewTransformContext()
623 if (cur->extras == NULL) { in xsltNewTransformContext()
628 cur->extrasNr = style->extrasNr; in xsltNewTransformContext()
629 for (i = 0;i < cur->extrasMax;i++) { in xsltNewTransformContext()
630 cur->extras[i].info = NULL; in xsltNewTransformContext()
631 cur->extras[i].deallocate = NULL; in xsltNewTransformContext()
632 cur->extras[i].val.ptr = NULL; in xsltNewTransformContext()
635 cur->extras = NULL; in xsltNewTransformContext()
636 cur->extrasNr = 0; in xsltNewTransformContext()
637 cur->extrasMax = 0; in xsltNewTransformContext()
640 XSLT_REGISTER_VARIABLE_LOOKUP(cur); in xsltNewTransformContext()
641 XSLT_REGISTER_FUNCTION_LOOKUP(cur); in xsltNewTransformContext()
642 cur->xpathCtxt->nsHash = style->nsHash; in xsltNewTransformContext()
646 xsltInitCtxtExts(cur); in xsltNewTransformContext()
657 cur->parserOptions = XSLT_PARSE_OPTIONS; in xsltNewTransformContext()
658 docu = xsltNewDocument(cur, doc); in xsltNewTransformContext()
660 xsltTransformError(cur, NULL, (xmlNodePtr)doc, in xsltNewTransformContext()
665 cur->document = docu; in xsltNewTransformContext()
666 cur->inst = NULL; in xsltNewTransformContext()
667 cur->outputFile = NULL; in xsltNewTransformContext()
668 cur->sec = xsltGetDefaultSecurityPrefs(); in xsltNewTransformContext()
669 cur->debugStatus = xslDebugStatus; in xsltNewTransformContext()
670 cur->traceCode = (unsigned long*) &xsltDefaultTrace; in xsltNewTransformContext()
671 cur->xinclude = xsltGetXIncludeDefault(); in xsltNewTransformContext()
672 cur->keyInitLevel = 0; in xsltNewTransformContext()
674 return(cur); in xsltNewTransformContext()
677 if (cur != NULL) in xsltNewTransformContext()
678 xsltFreeTransformContext(cur); in xsltNewTransformContext()
751 xsltAddChild(xmlNodePtr parent, xmlNodePtr cur) { in xsltAddChild() argument
754 if (cur == NULL) in xsltAddChild()
757 xmlFreeNode(cur); in xsltAddChild()
760 ret = xmlAddChild(parent, cur); in xsltAddChild()
946 xmlNodePtr cur, int interned) in xsltCopyText() argument
950 if ((cur->type != XML_TEXT_NODE) && in xsltCopyText()
951 (cur->type != XML_CDATA_SECTION_NODE)) in xsltCopyText()
953 if (cur->content == NULL) in xsltCopyText()
957 if (cur->type == XML_CDATA_SECTION_NODE) { in xsltCopyText()
960 cur->content)); in xsltCopyText()
961 } else if (cur->name == xmlStringTextNoenc) { in xsltCopyText()
964 cur->content)); in xsltCopyText()
968 cur->content)); in xsltCopyText()
1008 copy = xsltAddTextString(ctxt, target->last, cur->content, in xsltCopyText()
1009 xmlStrlen(cur->content)); in xsltCopyText()
1014 len = xmlStrlen(cur->content); in xsltCopyText()
1015 copy = xmlNewCDataBlock(ctxt->output, cur->content, len); in xsltCopyText()
1026 (target->last->name == cur->name)) || in xsltCopyText()
1029 (cur->name == xmlStringTextNoenc))))) in xsltCopyText()
1034 copy = xsltAddTextString(ctxt, target->last, cur->content, in xsltCopyText()
1035 xmlStrlen(cur->content)); in xsltCopyText()
1047 if (cur->name == xmlStringTextNoenc) in xsltCopyText()
1055 if (xmlDictOwns(ctxt->dict, cur->content)) in xsltCopyText()
1056 copy->content = cur->content; in xsltCopyText()
1058 if ((copy->content = xmlStrdup(cur->content)) == NULL) in xsltCopyText()
1070 len = xmlStrlen(cur->content); in xsltCopyText()
1071 copy = xmlNewTextLen(cur->content, len); in xsltCopyText()
1074 if (cur->name == xmlStringTextNoenc) in xsltCopyText()
1862 xmlNodePtr cur; in xsltDefaultProcessOneNode() local
1907 cur = node->children; in xsltDefaultProcessOneNode()
1908 while ((cur != NULL) && (cur->type != XML_TEXT_NODE)) in xsltDefaultProcessOneNode()
1909 cur = cur->next; in xsltDefaultProcessOneNode()
1910 if (cur == NULL) { in xsltDefaultProcessOneNode()
1915 if (cur->content == NULL) { in xsltDefaultProcessOneNode()
1921 cur->content)); in xsltDefaultProcessOneNode()
1924 copy = xsltCopyText(ctxt, ctxt->insert, cur, 0); in xsltDefaultProcessOneNode()
1937 cur = node->children; in xsltDefaultProcessOneNode()
1938 while (cur != NULL) { in xsltDefaultProcessOneNode()
1939 if (IS_XSLT_REAL_NODE(cur)) in xsltDefaultProcessOneNode()
1941 cur = cur->next; in xsltDefaultProcessOneNode()
1952 cur = node->children; in xsltDefaultProcessOneNode()
1953 while (cur != NULL) { in xsltDefaultProcessOneNode()
1955 switch (cur->type) { in xsltDefaultProcessOneNode()
1961 xsltProcessOneNode(ctxt, cur, params); in xsltDefaultProcessOneNode()
1964 template = xsltGetTemplate(ctxt, cur, NULL); in xsltDefaultProcessOneNode()
1969 cur->content)); in xsltDefaultProcessOneNode()
1974 xsltApplyXSLTTemplate(ctxt, cur, template->content, in xsltDefaultProcessOneNode()
1980 cur->content)); in xsltDefaultProcessOneNode()
1982 copy = xsltCopyText(ctxt, ctxt->insert, cur, 0); in xsltDefaultProcessOneNode()
1984 xsltTransformError(ctxt, NULL, cur, in xsltDefaultProcessOneNode()
1990 template = xsltGetTemplate(ctxt, cur, NULL); in xsltDefaultProcessOneNode()
1995 cur->content)); in xsltDefaultProcessOneNode()
2002 xsltApplyXSLTTemplate(ctxt, cur, template->content, in xsltDefaultProcessOneNode()
2006 if (cur->content == NULL) { in xsltDefaultProcessOneNode()
2012 cur->content)); in xsltDefaultProcessOneNode()
2015 copy = xsltCopyText(ctxt, ctxt->insert, cur, 0); in xsltDefaultProcessOneNode()
2017 xsltTransformError(ctxt, NULL, cur, in xsltDefaultProcessOneNode()
2024 template = xsltGetTemplate(ctxt, cur, NULL); in xsltDefaultProcessOneNode()
2027 if (cur->type == XML_PI_NODE) { in xsltDefaultProcessOneNode()
2030 cur->name)); in xsltDefaultProcessOneNode()
2031 } else if (cur->type == XML_COMMENT_NODE) { in xsltDefaultProcessOneNode()
2041 xsltApplyXSLTTemplate(ctxt, cur, template->content, in xsltDefaultProcessOneNode()
2048 cur = cur->next; in xsltDefaultProcessOneNode()
2228 xmlDocPtr cur = ctxt->localRVT, tmp; in xsltReleaseLocalRVTs() local
2230 if (cur == base) in xsltReleaseLocalRVTs()
2232 if (cur->prev != NULL) in xsltReleaseLocalRVTs()
2241 tmp = cur; in xsltReleaseLocalRVTs()
2242 cur = (xmlDocPtr) cur->next; in xsltReleaseLocalRVTs()
2259 } while (cur != base); in xsltReleaseLocalRVTs()
2283 xmlNodePtr cur, insert, copy = NULL; in xsltApplySequenceConstructor() local
2343 cur = list; in xsltApplySequenceConstructor()
2344 while (cur != NULL) { in xsltApplySequenceConstructor()
2347 xsltTransformError(ctxt, NULL, cur, in xsltApplySequenceConstructor()
2356 ctxt->inst = cur; in xsltApplySequenceConstructor()
2379 if ((ctxt->debugStatus != XSLT_DEBUG_NONE) && (debuggedNode != cur)) in xsltApplySequenceConstructor()
2380 xslHandleDebugger(cur, contextNode, templ, ctxt); in xsltApplySequenceConstructor()
2384 if (cur->type == XML_ELEMENT_NODE) { in xsltApplySequenceConstructor()
2385 info = (xsltStylePreCompPtr) cur->psvi; in xsltApplySequenceConstructor()
2400 if (IS_XSLT_ELEM_FAST(cur) && IS_XSLT_NAME(cur, "message")) { in xsltApplySequenceConstructor()
2401 xsltMessage(ctxt, contextNode, cur); in xsltApplySequenceConstructor()
2407 xsltTransformError(ctxt, NULL, cur, in xsltApplySequenceConstructor()
2411 cur->name); in xsltApplySequenceConstructor()
2426 "element '%s'\n", cur->name)); in xsltApplySequenceConstructor()
2434 copy = xmlDocCopyNode(cur, insert->doc, 0); in xsltApplySequenceConstructor()
2436 xsltTransformError(ctxt, NULL, cur, in xsltApplySequenceConstructor()
2439 cur->name); in xsltApplySequenceConstructor()
2470 xsltTransformError(ctxt, NULL, cur, in xsltApplySequenceConstructor()
2492 if (cur->ns != NULL) { in xsltApplySequenceConstructor()
2498 copy->ns = xsltGetSpecialNamespace(ctxt, cur, in xsltApplySequenceConstructor()
2499 cur->ns->href, cur->ns->prefix, copy); in xsltApplySequenceConstructor()
2520 xsltGetSpecialNamespace(ctxt, cur, in xsltApplySequenceConstructor()
2532 if (cur->properties != NULL) { in xsltApplySequenceConstructor()
2533 xsltAttrListTemplateProcess(ctxt, copy, cur->properties); in xsltApplySequenceConstructor()
2535 } else if (IS_XSLT_ELEM_FAST(cur)) { in xsltApplySequenceConstructor()
2546 if (!xsltApplyFallbacks(ctxt, contextNode, cur)) { in xsltApplySequenceConstructor()
2547 xsltTransformError(ctxt, NULL, cur, in xsltApplySequenceConstructor()
2550 cur->name); in xsltApplySequenceConstructor()
2559 info->func(ctxt, contextNode, cur, in xsltApplySequenceConstructor()
2572 xsltParseStylesheetVariable(ctxt, cur); in xsltApplySequenceConstructor()
2587 xsltMessage(ctxt, contextNode, cur); in xsltApplySequenceConstructor()
2589 xsltTransformError(ctxt, NULL, cur, in xsltApplySequenceConstructor()
2590 "Unexpected XSLT element '%s'.\n", cur->name); in xsltApplySequenceConstructor()
2600 if (cur->psvi == xsltExtMarker) { in xsltApplySequenceConstructor()
2609 func = xsltExtElementLookup(ctxt, cur->name, in xsltApplySequenceConstructor()
2610 cur->ns->href); in xsltApplySequenceConstructor()
2612 func = ((xsltElemPreCompPtr) cur->psvi)->func; in xsltApplySequenceConstructor()
2623 cur->name)); in xsltApplySequenceConstructor()
2626 if (!xsltApplyFallbacks(ctxt, contextNode, cur)) { in xsltApplySequenceConstructor()
2627 xsltTransformError(ctxt, NULL, cur, in xsltApplySequenceConstructor()
2629 cur->ns->href, cur->name); in xsltApplySequenceConstructor()
2639 cur->name)); in xsltApplySequenceConstructor()
2649 if (cur->psvi == xsltExtMarker) { in xsltApplySequenceConstructor()
2655 func(ctxt, contextNode, cur, cur->psvi); in xsltApplySequenceConstructor()
2668 } else if (XSLT_IS_TEXT_NODE(cur)) { in xsltApplySequenceConstructor()
2674 if (cur->name == xmlStringTextNoenc) { in xsltApplySequenceConstructor()
2678 cur->content)); in xsltApplySequenceConstructor()
2683 cur->content)); in xsltApplySequenceConstructor()
2686 if (xsltCopyText(ctxt, insert, cur, ctxt->internalized) == NULL) in xsltApplySequenceConstructor()
2692 if (IS_XSLT_ELEM(cur)) { in xsltApplySequenceConstructor()
2696 xsltStylePreCompPtr info = (xsltStylePreCompPtr) cur->psvi; in xsltApplySequenceConstructor()
2699 if (IS_XSLT_NAME(cur, "message")) { in xsltApplySequenceConstructor()
2700 xsltMessage(ctxt, contextNode, cur); in xsltApplySequenceConstructor()
2706 if (!xsltApplyFallbacks(ctxt, contextNode, cur)) { in xsltApplySequenceConstructor()
2709 cur->name); in xsltApplySequenceConstructor()
2718 ctxt->inst = cur; in xsltApplySequenceConstructor()
2721 info->func(ctxt, contextNode, cur, (xsltElemPreCompPtr) info); in xsltApplySequenceConstructor()
2734 if (IS_XSLT_NAME(cur, "variable")) { in xsltApplySequenceConstructor()
2738 ctxt->inst = cur; in xsltApplySequenceConstructor()
2740 xsltParseStylesheetVariable(ctxt, cur); in xsltApplySequenceConstructor()
2753 } else if (IS_XSLT_NAME(cur, "message")) { in xsltApplySequenceConstructor()
2754 xsltMessage(ctxt, contextNode, cur); in xsltApplySequenceConstructor()
2756 xsltTransformError(ctxt, NULL, cur, in xsltApplySequenceConstructor()
2757 "Unexpected XSLT element '%s'.\n", cur->name); in xsltApplySequenceConstructor()
2760 } else if ((cur->type == XML_TEXT_NODE) || in xsltApplySequenceConstructor()
2761 (cur->type == XML_CDATA_SECTION_NODE)) { in xsltApplySequenceConstructor()
2769 if (cur->type == XML_CDATA_SECTION_NODE) { in xsltApplySequenceConstructor()
2772 cur->content)); in xsltApplySequenceConstructor()
2773 } else if (cur->name == xmlStringTextNoenc) { in xsltApplySequenceConstructor()
2776 cur->content)); in xsltApplySequenceConstructor()
2780 cur->content)); in xsltApplySequenceConstructor()
2783 if (xsltCopyText(ctxt, insert, cur, ctxt->internalized) == NULL) in xsltApplySequenceConstructor()
2785 } else if ((cur->type == XML_ELEMENT_NODE) && in xsltApplySequenceConstructor()
2786 (cur->ns != NULL) && (cur->psvi != NULL)) { in xsltApplySequenceConstructor()
2790 ctxt->inst = cur; in xsltApplySequenceConstructor()
2794 if (cur->psvi == xsltExtMarker) in xsltApplySequenceConstructor()
2795 function = xsltExtElementLookup(ctxt, cur->name, in xsltApplySequenceConstructor()
2796 cur->ns->href); in xsltApplySequenceConstructor()
2798 function = ((xsltElemPreCompPtr) cur->psvi)->func; in xsltApplySequenceConstructor()
2807 cur->name)); in xsltApplySequenceConstructor()
2813 child = cur->children; in xsltApplySequenceConstructor()
2827 xsltTransformError(ctxt, NULL, cur, in xsltApplySequenceConstructor()
2829 cur->name); in xsltApplySequenceConstructor()
2835 cur->name)); in xsltApplySequenceConstructor()
2846 if (cur->psvi == xsltExtMarker) { in xsltApplySequenceConstructor()
2852 function(ctxt, contextNode, cur, cur->psvi); in xsltApplySequenceConstructor()
2864 } else if (cur->type == XML_ELEMENT_NODE) { in xsltApplySequenceConstructor()
2868 cur->name)); in xsltApplySequenceConstructor()
2871 ctxt->inst = cur; in xsltApplySequenceConstructor()
2873 if ((copy = xsltShallowCopyElem(ctxt, cur, insert, 1)) == NULL) in xsltApplySequenceConstructor()
2925 copy->ns = xsltGetNamespace(ctxt, cur, copy->ns, copy); in xsltApplySequenceConstructor()
2931 if (cur->properties != NULL) { in xsltApplySequenceConstructor()
2932 xsltAttrListTemplateProcess(ctxt, copy, cur->properties); in xsltApplySequenceConstructor()
2941 if (cur->children != NULL) { in xsltApplySequenceConstructor()
2942 if (cur->children->type != XML_ENTITY_DECL) { in xsltApplySequenceConstructor()
2943 cur = cur->children; in xsltApplySequenceConstructor()
2960 if (cur->next != NULL) { in xsltApplySequenceConstructor()
2961 cur = cur->next; in xsltApplySequenceConstructor()
2966 cur = cur->parent; in xsltApplySequenceConstructor()
2976 if (cur == NULL) in xsltApplySequenceConstructor()
2978 if (cur == list->parent) { in xsltApplySequenceConstructor()
2979 cur = NULL; in xsltApplySequenceConstructor()
2982 if (cur->next != NULL) { in xsltApplySequenceConstructor()
2983 cur = cur->next; in xsltApplySequenceConstructor()
2986 } while (cur != NULL); in xsltApplySequenceConstructor()
3033 xmlNodePtr cur; in xsltApplyXSLTTemplate() local
3117 cur = list; in xsltApplyXSLTTemplate()
3119 if (cur->type == XML_TEXT_NODE) { in xsltApplyXSLTTemplate()
3120 cur = cur->next; in xsltApplyXSLTTemplate()
3123 if ((cur->type != XML_ELEMENT_NODE) || in xsltApplyXSLTTemplate()
3124 (cur->name[0] != 'p') || in xsltApplyXSLTTemplate()
3125 (cur->psvi == NULL) || in xsltApplyXSLTTemplate()
3126 (! xmlStrEqual(cur->name, BAD_CAST "param")) || in xsltApplyXSLTTemplate()
3127 (! IS_XSLT_ELEM(cur))) in xsltApplyXSLTTemplate()
3132 list = cur->next; in xsltApplyXSLTTemplate()
3135 iparam = (xsltStyleItemParamPtr) cur->psvi; in xsltApplyXSLTTemplate()
3137 iparam = (xsltStylePreCompPtr) cur->psvi; in xsltApplyXSLTTemplate()
3172 xsltParseStylesheetParam(ctxt, cur); in xsltApplyXSLTTemplate()
3174 cur = cur->next; in xsltApplyXSLTTemplate()
3175 } while (cur != NULL); in xsltApplyXSLTTemplate()
4394 xmlNodePtr cur; in xsltCopyOf() local
4400 cur = list->nodeTab[i]; in xsltCopyOf()
4401 if (cur == NULL) in xsltCopyOf()
4403 if ((cur->type == XML_DOCUMENT_NODE) || in xsltCopyOf()
4404 (cur->type == XML_HTML_DOCUMENT_NODE)) in xsltCopyOf()
4407 cur->children, ctxt->insert, 0, 0); in xsltCopyOf()
4408 } else if (cur->type == XML_ATTRIBUTE_NODE) { in xsltCopyOf()
4410 ctxt->insert, (xmlAttrPtr) cur); in xsltCopyOf()
4412 xsltCopyTree(ctxt, inst, cur, ctxt->insert, 0, 0); in xsltCopyOf()
4724 xmlNodePtr cur; in xsltCallTemplate() local
4727 cur = inst->children; in xsltCallTemplate()
4728 while (cur != NULL) { in xsltCallTemplate()
4731 xslHandleDebugger(cur, node, comp->templ, ctxt); in xsltCallTemplate()
4739 if (IS_XSLT_ELEM(cur)) { in xsltCallTemplate()
4740 if (IS_XSLT_NAME(cur, "with-param")) { in xsltCallTemplate()
4741 param = xsltParseStylesheetCallerParam(ctxt, cur); in xsltCallTemplate()
4748 "xsl:call-template: misplaced xsl:%s\n", cur->name); in xsltCallTemplate()
4752 "xsl:call-template: misplaced %s element\n", cur->name); in xsltCallTemplate()
4754 cur = cur->next; in xsltCallTemplate()
4792 xmlNodePtr cur, oldContextNode; in xsltApplyTemplates() local
4922 cur = node->children; in xsltApplyTemplates()
4924 cur = NULL; in xsltApplyTemplates()
4925 while (cur != NULL) { in xsltApplyTemplates()
4926 if (IS_XSLT_REAL_NODE(cur)) in xsltApplyTemplates()
4927 xmlXPathNodeSetAddUnique(list, cur); in xsltApplyTemplates()
4928 cur = cur->next; in xsltApplyTemplates()
4956 cur = inst->children; in xsltApplyTemplates()
4957 while (cur) { in xsltApplyTemplates()
4961 xslHandleDebugger(cur, node, NULL, ctxt); in xsltApplyTemplates()
4965 if (cur->type == XML_TEXT_NODE) { in xsltApplyTemplates()
4966 cur = cur->next; in xsltApplyTemplates()
4969 if (! IS_XSLT_ELEM(cur)) in xsltApplyTemplates()
4971 if (IS_XSLT_NAME(cur, "with-param")) { in xsltApplyTemplates()
4972 param = xsltParseStylesheetCallerParam(ctxt, cur); in xsltApplyTemplates()
4978 if (IS_XSLT_NAME(cur, "sort")) { in xsltApplyTemplates()
4984 sorts[nbsorts++] = cur; in xsltApplyTemplates()
4985 cur = cur->next; in xsltApplyTemplates()
4987 while (cur) { in xsltApplyTemplates()
4991 xslHandleDebugger(cur, node, NULL, ctxt); in xsltApplyTemplates()
4996 if (cur->type == XML_TEXT_NODE) { in xsltApplyTemplates()
4997 cur = cur->next; in xsltApplyTemplates()
5001 if (! IS_XSLT_ELEM(cur)) in xsltApplyTemplates()
5003 if (IS_XSLT_NAME(cur, "with-param")) { in xsltApplyTemplates()
5004 param = xsltParseStylesheetCallerParam(ctxt, cur); in xsltApplyTemplates()
5010 if (IS_XSLT_NAME(cur, "sort")) { in xsltApplyTemplates()
5012 xsltTransformError(ctxt, NULL, cur, in xsltApplyTemplates()
5019 sorts[nbsorts++] = cur; in xsltApplyTemplates()
5022 cur = cur->next; in xsltApplyTemplates()
5035 cur = cur->next; in xsltApplyTemplates()
5043 cur = list->nodeTab[i]; in xsltApplyTemplates()
5047 ctxt->node = cur; in xsltApplyTemplates()
5052 if ((cur->type != XML_NAMESPACE_DECL) && (cur->doc != NULL)) in xsltApplyTemplates()
5053 xpctxt->doc = cur->doc; in xsltApplyTemplates()
5059 xsltProcessOneNode(ctxt, cur, withParams); in xsltApplyTemplates()
5099 xmlNodePtr cur; in xsltChoose() local
5108 cur = inst->children; in xsltChoose()
5109 if (cur == NULL) { in xsltChoose()
5120 if ((! IS_XSLT_ELEM(cur)) || (! IS_XSLT_NAME(cur, "when"))) { in xsltChoose()
5139 while (IS_XSLT_ELEM(cur) && IS_XSLT_NAME(cur, "when")) { in xsltChoose()
5140 wcomp = cur->psvi; in xsltChoose()
5145 xsltTransformError(ctxt, NULL, cur, in xsltChoose()
5157 xslHandleDebugger(cur, contextNode, NULL, ctxt); in xsltChoose()
5206 cur = cur->next; in xsltChoose()
5212 if (IS_XSLT_ELEM(cur) && IS_XSLT_NAME(cur, "otherwise")) { in xsltChoose()
5216 xslHandleDebugger(cur, contextNode, NULL, ctxt); in xsltChoose()
5237 xsltApplySequenceConstructor(ctxt, ctxt->node, cur->children, in xsltChoose()
5371 xmlNodePtr cur, curInst; in xsltForEach() local
5503 cur = list->nodeTab[i]; in xsltForEach()
5507 ctxt->node = cur; in xsltForEach()
5512 if ((cur->type != XML_NAMESPACE_DECL) && (cur->doc != NULL)) in xsltForEach()
5513 xpctxt->doc = cur->doc; in xsltForEach()
5517 xsltApplySequenceConstructor(ctxt, cur, curInst, NULL); in xsltForEach()
5624 xmlNodePtr delete = NULL, cur = current->children; in xsltApplyStripSpaces() local
5626 while (cur != NULL) { in xsltApplyStripSpaces()
5627 if (IS_BLANK_NODE(cur)) in xsltApplyStripSpaces()
5628 delete = cur; in xsltApplyStripSpaces()
5630 cur = cur->next; in xsltApplyStripSpaces()
5760 xmlNodePtr cur = (xmlNodePtr) doc->intSubset; in xsltApplyStylesheetInternal() local
5761 if (cur->next != NULL) in xsltApplyStylesheetInternal()
5762 cur->next->prev = cur->prev; in xsltApplyStylesheetInternal()
5763 if (cur->prev != NULL) in xsltApplyStylesheetInternal()
5764 cur->prev->next = cur->next; in xsltApplyStylesheetInternal()
5765 if (doc->children == cur) in xsltApplyStylesheetInternal()
5766 doc->children = cur->next; in xsltApplyStylesheetInternal()
5767 if (doc->last == cur) in xsltApplyStylesheetInternal()
5768 doc->last = cur->prev; in xsltApplyStylesheetInternal()
5769 cur->prev = cur->next = NULL; in xsltApplyStylesheetInternal()