Lines Matching refs:comp
957 xsltStyleItemSortPtr comp; in xsltComputeSortResult() local
959 xsltStylePreCompPtr comp; in xsltComputeSortResult()
972 comp = sort->psvi; in xsltComputeSortResult()
973 if (comp == NULL) { in xsltComputeSortResult()
979 if ((comp->select == NULL) || (comp->comp == NULL)) in xsltComputeSortResult()
1012 if (comp->inScopeNs != NULL) { in xsltComputeSortResult()
1013 ctxt->xpathCtxt->namespaces = comp->inScopeNs->list; in xsltComputeSortResult()
1014 ctxt->xpathCtxt->nsNr = comp->inScopeNs->xpathNumber; in xsltComputeSortResult()
1020 ctxt->xpathCtxt->namespaces = comp->nsList; in xsltComputeSortResult()
1021 ctxt->xpathCtxt->nsNr = comp->nsNr; in xsltComputeSortResult()
1023 res = xmlXPathCompiledEval(comp->comp, ctxt->xpathCtxt); in xsltComputeSortResult()
1027 if (comp->number) in xsltComputeSortResult()
1030 if (comp->number) { in xsltComputeSortResult()
1042 if (comp->locale != (xsltLocale)0) { in xsltComputeSortResult()
1044 res->stringval = (xmlChar *) xsltStrxfrm(comp->locale, str); in xsltComputeSortResult()
1085 xsltStyleItemSortPtr comp; in xsltDefaultSortFunction() local
1087 xsltStylePreCompPtr comp; in xsltDefaultSortFunction()
1106 comp = sorts[0]->psvi; in xsltDefaultSortFunction()
1107 if (comp == NULL) in xsltDefaultSortFunction()
1115 comp = sorts[j]->psvi; in xsltDefaultSortFunction()
1117 if ((comp->stype == NULL) && (comp->has_stype != 0)) { in xsltDefaultSortFunction()
1118 comp->stype = in xsltDefaultSortFunction()
1122 if (comp->stype != NULL) { in xsltDefaultSortFunction()
1124 if (xmlStrEqual(comp->stype, (const xmlChar *) "text")) in xsltDefaultSortFunction()
1125 comp->number = 0; in xsltDefaultSortFunction()
1126 else if (xmlStrEqual(comp->stype, (const xmlChar *) "number")) in xsltDefaultSortFunction()
1127 comp->number = 1; in xsltDefaultSortFunction()
1131 comp->stype); in xsltDefaultSortFunction()
1132 comp->number = 0; /* use default */ in xsltDefaultSortFunction()
1137 if ((comp->order == NULL) && (comp->has_order != 0)) { in xsltDefaultSortFunction()
1138 comp->order = xsltEvalAttrValueTemplate(ctxt, sorts[j], in xsltDefaultSortFunction()
1141 if (comp->order != NULL) { in xsltDefaultSortFunction()
1143 if (xmlStrEqual(comp->order, (const xmlChar *) "ascending")) in xsltDefaultSortFunction()
1144 comp->descending = 0; in xsltDefaultSortFunction()
1145 else if (xmlStrEqual(comp->order, in xsltDefaultSortFunction()
1147 comp->descending = 1; in xsltDefaultSortFunction()
1151 comp->order); in xsltDefaultSortFunction()
1152 comp->descending = 0; /* use default */ in xsltDefaultSortFunction()
1166 comp = sorts[0]->psvi; in xsltDefaultSortFunction()
1167 descending = comp->descending; in xsltDefaultSortFunction()
1168 number = comp->number; in xsltDefaultSortFunction()
1200 } else if(comp->locale != (xsltLocale)0) { in xsltDefaultSortFunction()
1202 comp->locale, in xsltDefaultSortFunction()
1220 comp = sorts[depth]->psvi; in xsltDefaultSortFunction()
1221 if (comp == NULL) in xsltDefaultSortFunction()
1223 desc = comp->descending; in xsltDefaultSortFunction()
1224 numb = comp->number; in xsltDefaultSortFunction()
1259 } else if(comp->locale != (xsltLocale)0) { in xsltDefaultSortFunction()
1261 comp->locale, in xsltDefaultSortFunction()
1311 comp = sorts[j]->psvi; in xsltDefaultSortFunction()
1314 xmlFree((void *)(comp->stype)); in xsltDefaultSortFunction()
1315 comp->stype = NULL; in xsltDefaultSortFunction()
1319 xmlFree((void *)(comp->order)); in xsltDefaultSortFunction()
1320 comp->order = NULL; in xsltDefaultSortFunction()