Lines Matching refs:NULL

128     if ((style == NULL) || (node == NULL))
132 xsltTransformError(NULL, style, node,
136 xsltTransformError(NULL, style, node,
164 if (style->exclPrefixTab == NULL) {
180 if (style->exclPrefixTab == NULL) {
208 style->exclPrefix = NULL;
255 * Returns 1 if the string is NULL or made of blanks chars, 0 otherwise
259 if (str == NULL)
281 if (self != NULL) {
282 self->next = NULL;
303 if (self != NULL) {
336 if (self == NULL)
340 while (iter != NULL) {
359 xsltDecimalFormatPtr result = NULL;
361 if (name == NULL)
364 while (style != NULL) {
366 result != NULL;
382 * Returns the newly allocated xsltTemplatePtr or NULL in case of error
389 if (cur == NULL) {
390 xsltTransformError(NULL, NULL, NULL,
392 return(NULL);
407 if (template == NULL)
434 while (template != NULL) {
478 if ((cctxt == NULL) || (doc == NULL) || (ns == NULL))
479 return(NULL);
482 if (ret == NULL) {
483 xsltTransformError(NULL, cctxt->style, elem,
486 return(NULL);
495 if (cctxt->psData->nsMap != NULL)
529 if (cctxt == NULL)
542 if (cctxt->inodeList != NULL) {
544 while (cur != NULL) {
550 if (cctxt->tmpList != NULL)
553 if (cctxt->xpathCtxt != NULL)
556 if (cctxt->nsAliases != NULL)
571 * NULL in case of an internal error.
578 if (ret == NULL) {
579 xsltTransformError(NULL, style, NULL,
582 return(NULL);
588 if (ret->tmpList == NULL) {
596 ret->xpathCtxt = xmlXPathNewContext(NULL);
597 if (ret->xpathCtxt == NULL)
605 return(NULL);
613 while (first != NULL) {
623 if (data == NULL)
626 if (data->inScopeNamespaces != NULL) {
637 if (nsi->list != NULL)
642 data->inScopeNamespaces = NULL;
645 if (data->exclResultNamespaces != NULL) {
654 data->exclResultNamespaces = NULL;
657 if (data->extElemNamespaces != NULL) {
666 data->extElemNamespaces = NULL;
670 data->effectiveNs = NULL;
685 if (ret == NULL) {
686 xsltTransformError(NULL, NULL, NULL,
688 return(NULL);
696 if (ret->inScopeNamespaces == NULL)
702 if (ret->exclResultNamespaces == NULL)
708 if (ret->extElemNamespaces == NULL)
715 return(NULL);
725 * Returns the newly allocated xsltStylesheetPtr or NULL in case of error
729 xsltStylesheetPtr ret = NULL;
732 if (ret == NULL) {
733 xsltTransformError(NULL, NULL, NULL,
741 ret->decimalFormat = xsltNewDecimalFormat(NULL);
747 ret->exclPrefixTab = NULL;
748 ret->extInfos = NULL;
763 if (ret != NULL)
765 return(NULL);
802 if (ctxt->extras == NULL) {
809 ctxt->extras[i].info = NULL;
810 ctxt->extras[i].deallocate = NULL;
811 ctxt->extras[i].val.ptr = NULL;
820 if (tmp == NULL) {
828 ctxt->extras[i].info = NULL;
829 ctxt->extras[i].deallocate = NULL;
830 ctxt->extras[i].val.ptr = NULL;
847 while (style != NULL) {
872 if ((doc == NULL) || (rootElem == NULL) ||
886 while (cur != NULL) {
891 cur->psvi = NULL;
901 if (cur->next != NULL)
905 if (cur == NULL)
923 if (style == NULL)
937 if ((style->doc != NULL) &&
948 if ((style->parent == NULL) && (style->doc))
971 if (style->variables != NULL)
973 if (style->cdataSection != NULL)
974 xmlHashFree(style->cdataSection, NULL);
975 if (style->stripSpaces != NULL)
976 xmlHashFree(style->stripSpaces, NULL);
977 if (style->nsHash != NULL)
978 xmlHashFree(style->nsHash, NULL);
979 if (style->exclPrefixTab != NULL)
981 if (style->method != NULL)
983 if (style->methodURI != NULL)
985 if (style->version != NULL)
987 if (style->encoding != NULL)
989 if (style->doctypePublic != NULL)
991 if (style->doctypeSystem != NULL)
993 if (style->mediaType != NULL)
997 if (style->imports != NULL)
1008 style->principalData = NULL;
1016 if (style->doc != NULL) {
1059 xmlNsPtr *ret = NULL;
1064 if ((style == NULL) || (template == NULL) || (node == NULL) ||
1065 (template->inheritedNsNr != 0) || (template->inheritedNs != NULL))
1067 while (node != NULL) {
1070 while (cur != NULL) {
1074 if ((cur->prefix != NULL) &&
1086 if (ret == NULL) {
1090 if (ret == NULL) {
1095 ret[nbns] = NULL;
1112 if (ret == NULL) {
1119 ret[nbns] = NULL;
1156 if ((cur == NULL) || (style == NULL))
1159 prop = xmlGetNsProp(cur, (const xmlChar *) "version", NULL);
1160 if (prop != NULL) {
1161 if (style->version != NULL)
1166 prop = xmlGetNsProp(cur, (const xmlChar *) "encoding", NULL);
1167 if (prop != NULL) {
1168 if (style->encoding != NULL)
1176 prop = xmlGetNsProp(cur, (const xmlChar *) "method", NULL);
1177 if (prop != NULL) {
1180 if (style->method != NULL)
1182 style->method = NULL;
1183 if (style->methodURI != NULL)
1185 style->methodURI = NULL;
1191 if (prop == NULL) {
1192 if (style != NULL) style->errors++;
1193 } else if (URI == NULL) {
1199 xsltTransformError(NULL, style, cur,
1201 if (style != NULL) style->warnings++;
1209 prop = xmlGetNsProp(cur, (const xmlChar *) "doctype-system", NULL);
1210 if (prop != NULL) {
1211 if (style->doctypeSystem != NULL)
1216 prop = xmlGetNsProp(cur, (const xmlChar *) "doctype-public", NULL);
1217 if (prop != NULL) {
1218 if (style->doctypePublic != NULL)
1223 prop = xmlGetNsProp(cur, (const xmlChar *) "standalone", NULL);
1224 if (prop != NULL) {
1230 xsltTransformError(NULL, style, cur,
1237 prop = xmlGetNsProp(cur, (const xmlChar *) "indent", NULL);
1238 if (prop != NULL) {
1244 xsltTransformError(NULL, style, cur,
1251 prop = xmlGetNsProp(cur, (const xmlChar *) "omit-xml-declaration", NULL);
1252 if (prop != NULL) {
1258 xsltTransformError(NULL, style, cur,
1267 NULL);
1268 if (elements != NULL) {
1269 if (style->cdataSection == NULL)
1271 if (style->cdataSection == NULL)
1291 xsltTransformError(NULL, style, cur,
1303 if (element == NULL) {
1308 xsltTransformError(NULL, style, cur,
1323 if (URI == NULL) {
1324 ns = xmlSearchNs(style->doc, cur, NULL);
1325 if (ns != NULL)
1339 prop = xmlGetNsProp(cur, (const xmlChar *) "media-type", NULL);
1340 if (prop != NULL) {
1345 if (cur->children != NULL) {
1372 if ((cur == NULL) || (style == NULL))
1377 prop = xmlGetNsProp(cur, BAD_CAST("name"), NULL);
1378 if (prop != NULL) {
1380 if (format != NULL) {
1381 xsltTransformError(NULL, style, cur,
1383 if (style != NULL) style->warnings++;
1387 if (format == NULL) {
1388 xsltTransformError(NULL, style, cur,
1390 if (style != NULL) style->errors++;
1400 prop = xmlGetNsProp(cur, (const xmlChar *)"decimal-separator", NULL);
1401 if (prop != NULL) {
1402 if (format->decimalPoint != NULL) xmlFree(format->decimalPoint);
1406 prop = xmlGetNsProp(cur, (const xmlChar *)"grouping-separator", NULL);
1407 if (prop != NULL) {
1408 if (format->grouping != NULL) xmlFree(format->grouping);
1412 prop = xmlGetNsProp(cur, (const xmlChar *)"infinity", NULL);
1413 if (prop != NULL) {
1414 if (format->infinity != NULL) xmlFree(format->infinity);
1418 prop = xmlGetNsProp(cur, (const xmlChar *)"minus-sign", NULL);
1419 if (prop != NULL) {
1420 if (format->minusSign != NULL) xmlFree(format->minusSign);
1424 prop = xmlGetNsProp(cur, (const xmlChar *)"NaN", NULL);
1425 if (prop != NULL) {
1426 if (format->noNumber != NULL) xmlFree(format->noNumber);
1430 prop = xmlGetNsProp(cur, (const xmlChar *)"percent", NULL);
1431 if (prop != NULL) {
1432 if (format->percent != NULL) xmlFree(format->percent);
1436 prop = xmlGetNsProp(cur, (const xmlChar *)"per-mille", NULL);
1437 if (prop != NULL) {
1438 if (format->permille != NULL) xmlFree(format->permille);
1442 prop = xmlGetNsProp(cur, (const xmlChar *)"zero-digit", NULL);
1443 if (prop != NULL) {
1444 if (format->zeroDigit != NULL) xmlFree(format->zeroDigit);
1448 prop = xmlGetNsProp(cur, (const xmlChar *)"digit", NULL);
1449 if (prop != NULL) {
1450 if (format->digit != NULL) xmlFree(format->digit);
1454 prop = xmlGetNsProp(cur, (const xmlChar *)"pattern-separator", NULL);
1455 if (prop != NULL) {
1456 if (format->patternSeparator != NULL) xmlFree(format->patternSeparator);
1459 if (cur->children != NULL) {
1478 if ((cur == NULL) || (style == NULL))
1481 elements = xmlGetNsProp(cur, (const xmlChar *)"elements", NULL);
1482 if (elements == NULL) {
1483 xsltTransformError(NULL, style, cur,
1485 if (style != NULL) style->warnings++;
1489 if (style->stripSpaces == NULL)
1491 if (style->stripSpaces == NULL)
1525 if (cur->children != NULL) {
1552 if ((cur == NULL) || (style == NULL))
1558 (const xmlChar *)"extension-element-prefixes", NULL);
1564 if (prefixes == NULL) {
1580 ns = xmlSearchNs(style->doc, cur, NULL);
1583 if (ns == NULL) {
1584 xsltTransformError(NULL, style, cur,
1587 if (style != NULL) style->warnings++;
1617 if ((cur == NULL) || (style == NULL))
1620 elements = xmlGetNsProp(cur, (const xmlChar *)"elements", NULL);
1621 if (elements == NULL) {
1622 xsltTransformError(NULL, style, cur,
1624 if (style != NULL) style->warnings++;
1628 if (style->stripSpaces == NULL)
1630 if (style->stripSpaces == NULL)
1664 if (cur->children != NULL) {
1690 if ((cur == NULL) || (style == NULL))
1695 (const xmlChar *)"exclude-result-prefixes", NULL);
1700 if (prefixes == NULL) {
1716 ns = xmlSearchNs(style->doc, cur, NULL);
1719 if (ns == NULL) {
1720 xsltTransformError(NULL, style, cur,
1723 if (style != NULL) style->warnings++;
1752 * Returns the XML ns-struct or NULL on API and internal errors.
1757 if (doc == NULL)
1758 return (NULL);
1759 if (doc->oldNs != NULL)
1764 if (ns == NULL) {
1768 return (NULL);
1800 * Returns the aquired ns struct or NULL in case of an API
1810 if (doc == NULL)
1811 return (NULL);
1812 if (doc->oldNs != NULL)
1816 if (ns == NULL)
1817 return (NULL);
1818 if (ns->next != NULL) {
1821 while (ns != NULL) {
1822 if ((ns->prefix == NULL) != (prefix == NULL)) {
1824 } else if (prefix == NULL) {
1834 if (ns->next == NULL)
1840 ns->next = xmlNewNs(NULL, nsName, prefix);
1857 if ((cctxt == NULL) || (elem == NULL))
1859 if ((cctxt->nsAliases == NULL) || (! cctxt->hasNsAliases))
1863 while (alias != NULL) {
1864 if ( /* If both namespaces are NULL... */
1865 ( (elem->ns == NULL) &&
1866 ((alias->literalNs == NULL) ||
1867 (alias->literalNs->href == NULL)) ) ||
1869 ( (elem->ns != NULL) &&
1870 (alias->literalNs != NULL) &&
1873 if ((alias->targetNs != NULL) &&
1874 (alias->targetNs->href != NULL))
1900 if ((ns == NULL) ||
1918 if (ns == NULL) {
1919 xsltTransformError(NULL, cctxt->style, elem,
1933 * Move into or leave in the NULL namespace.
1935 elem->ns = NULL;
1944 if (elem->properties != NULL) {
1947 while (attr != NULL) {
1948 if (attr->ns == NULL) {
1953 while (alias != NULL) {
1954 if ( /* If both namespaces are NULL... */
1955 ( (elem->ns == NULL) &&
1956 ((alias->literalNs == NULL) ||
1957 (alias->literalNs->href == NULL)) ) ||
1959 ( (elem->ns != NULL) &&
1960 (alias->literalNs != NULL) &&
1963 if ((alias->targetNs != NULL) &&
1964 (alias->targetNs->href != NULL))
1971 if ((ns == NULL) ||
1978 if (ns == NULL) {
1979 xsltTransformError(NULL, cctxt->style, elem,
1993 * Move into or leave in the NULL namespace.
1995 elem->ns = NULL;
2028 xsltEffectiveNsPtr effNs, lastEffNs = NULL;
2033 if ((cctxt == NULL) || (cctxt->inode == NULL) || (elem == NULL) ||
2034 (item == NULL) || (item->effectiveNs != NULL))
2037 if (item->inScopeNs == NULL)
2086 if ((alias->targetNs != NULL) &&
2096 } while (alias != NULL);
2103 if ((alias->literalNs != NULL) &&
2112 } while (alias != NULL);
2136 if (isLRE && (elem->nsDef != NULL)) {
2145 } while (tmpns != NULL);
2154 if (effNs == NULL) {
2155 xsltTransformError(NULL, cctxt->style, elem,
2161 if (cctxt->psData->effectiveNs == NULL) {
2163 effNs->nextInStore = NULL;
2169 effNs->next = NULL;
2174 if (lastEffNs == NULL)
2201 if ((cctxt == NULL) || (cctxt->inode == NULL))
2206 if (item == NULL) {
2207 xsltTransformError(NULL, cctxt->style, NULL,
2251 if ((cctxt->ivar != NULL) && (cctxt->ivar->next != NULL)) {
2253 } else if ((cctxt->ivar == NULL) && (cctxt->ivars != NULL)) {
2257 if (ivar == NULL) {
2258 xsltTransformError(NULL, cctxt->style, inst,
2261 return(NULL);
2264 if (cctxt->ivars == NULL) {
2266 ivar->prev = NULL;
2272 ivar->next = NULL;
2291 while ((cctxt->ivar != NULL) &&
2307 * NULL in case of an internal error.
2314 if ((cctxt->inode != NULL) && (cctxt->inode->next != NULL)) {
2316 } else if ((cctxt->inode == NULL) && (cctxt->inodeList != NULL)) {
2324 if (inode == NULL) {
2325 xsltTransformError(NULL, cctxt->style, NULL,
2327 return(NULL);
2330 if (cctxt->inodeList == NULL)
2338 if (cctxt->inode == NULL) {
2344 xsltLREInfoCreate(cctxt, NULL, 0);
2356 inode->templ = NULL;
2359 inode->item = NULL;
2364 if (inode->prev != NULL) {
2395 inode->inScopeNs = NULL;
2396 inode->exclResultNs = NULL;
2397 inode->extElemNs = NULL;
2416 if (cctxt->inode == NULL) {
2443 if (cctxt->inode != NULL)
2449 const xmlChar *nsName = NULL, *name = NULL;
2450 const xmlChar *infnsName = NULL, *infname = NULL;
2455 if (node->ns != NULL)
2469 if (cctxt->inode->node->ns != NULL)
2498 * Returns the ns-info or NULL if there are no namespaces in scope.
2503 xsltNsListContainerPtr nsi = NULL;
2504 xmlNsPtr *list = NULL, ns;
2508 * xmlGetNsList() will return NULL, if there are no ns-decls in the
2513 while (node != NULL) {
2516 while (ns != NULL) {
2517 if (nsi == NULL) {
2520 if (nsi == NULL) {
2521 xsltTransformError(NULL, cctxt->style, NULL,
2529 if (nsi->list == NULL) {
2530 xsltTransformError(NULL, cctxt->style, NULL,
2535 nsi->list[0] = NULL;
2551 if (nsi->list == NULL) {
2552 xsltTransformError(NULL, cctxt->style, NULL,
2559 nsi->list[nsi->totalNumber] = NULL;
2567 if (nsi == NULL)
2568 return(NULL);
2574 if (nsi->list[i]->prefix == NULL) {
2590 nsi = NULL;
2591 xsltTransformError(NULL, cctxt->style, NULL,
2598 if (cctxt->inode != NULL)
2604 if (list != NULL)
2607 return(NULL);
2619 if ((cctxt == NULL) || (value == NULL) || (list == NULL))
2632 if (cur == NULL) {
2645 ns = xmlSearchNs(cctxt->style->doc, node, NULL);
2649 if (ns == NULL) {
2654 xsltTransformError(NULL, cctxt->style, node,
2697 * If @destination is NULL a new list will be created.
2699 * Returns the merged list of items or NULL if there's nothing to merge.
2715 return(NULL);
2717 if (ret == NULL)
2718 return(NULL);
2722 if ((first != NULL) && (first->number != 0)) {
2725 if ((second != NULL) && (second->number != 0))
2728 } else if ((second != NULL) && (second->number != 0))
2743 * Returns the ns-info or NULL if there are no namespaces in scope.
2750 xsltPointerListPtr list = NULL;
2754 if ((cctxt == NULL) || (node == NULL))
2755 return(NULL);
2758 attr = xmlHasNsProp(node, BAD_CAST "exclude-result-prefixes", NULL);
2762 if (attr == NULL)
2772 if ((attr->children != NULL) &&
2773 (attr->children->content != NULL))
2776 xsltTransformError(NULL, cctxt->style, node,
2791 if (list == NULL)
2800 list = NULL;
2806 if (cctxt->inode != NULL)
2810 if (list != NULL)
2824 * Returns the ns-info or NULL if there are no namespaces in scope.
2831 xsltPointerListPtr list = NULL;
2836 if ((cctxt == NULL) || (node == NULL))
2837 return(NULL);
2840 attr = xmlHasNsProp(node, BAD_CAST "extension-element-prefixes", NULL);
2844 if (attr == NULL)
2854 if ((attr->children != NULL) &&
2855 (attr->children->content != NULL))
2858 xsltTransformError(NULL, cctxt->style, node,
2875 xsltRegisterExtPrefix(cctxt->style, NULL,
2881 if (list == NULL)
2890 list = NULL;
2896 if (cctxt->inode != NULL)
2900 if (list != NULL)
2925 if ((cctxt == NULL) || (node == NULL))
2929 attr = xmlHasNsProp(node, BAD_CAST "version", NULL);
2933 if (attr == NULL)
2938 if ((attr->children != NULL) &&
2939 (attr->children->content != NULL))
2942 xsltTransformError(NULL, cctxt->style, node,
2960 xsltTransformError(NULL, cctxt->style, node,
2984 xmlNodePtr deleteNode, cur, txt, textNode = NULL;
2991 const xmlChar *name, *nsNameXSLT = NULL;
2997 if ((cctxt == NULL) || (cctxt->style == NULL) ||
2998 (node == NULL) || (node->type != XML_ELEMENT_NODE))
3002 if (doc == NULL)
3006 if ((style->dict != NULL) && (doc->dict == style->dict))
3034 deleteNode = NULL;
3036 while (cur != NULL) {
3037 if (deleteNode != NULL) {
3045 deleteNode = NULL;
3052 cur->psvi = NULL;
3057 textNode = NULL;
3068 if (nsMapItem == NULL)
3074 if (cur->name == NULL)
3145 if ((cur->prev != NULL) &&
3183 if (cur->properties != NULL) {
3184 if (cur->children == NULL)
3194 if (nsMapItem == NULL)
3210 if ((txt != NULL) && (txt->content != NULL) &&
3215 xmlNodeSetContent(txt, NULL);
3224 (attr->ns != NULL) &&
3225 (attr->name != NULL) &&
3227 (attr->ns->prefix != NULL) &&
3235 if (value != NULL) {
3242 xsltTransformError(NULL, style, cur,
3252 } while (attr != NULL);
3257 if (cur->children != NULL) {
3289 if (textNode == NULL)
3292 if (cur->content != NULL)
3296 if ((cur->next == NULL) ||
3305 if (textNode == NULL)
3316 if ((cur->next == NULL) ||
3322 textNode = NULL;
3326 xsltTransformError(NULL, style, cur,
3342 if ((value == NULL) || (*value == 0) ||
3353 textNode = NULL;
3365 (textNode->content != NULL) &&
3373 xmlNodeSetContent(textNode, NULL);
3376 textNode = NULL;
3390 if (cur->next != NULL) {
3398 if (deleteNode != NULL) {
3422 if ((style == NULL) || (cur == NULL))
3425 if ((cur->doc != NULL) && (style->dict != NULL) &&
3431 if ((cur != NULL) && (IS_XSLT_ELEM(cur)) &&
3435 styleelem = NULL;
3443 deleteNode = NULL;
3444 while (cur != NULL) {
3445 if (deleteNode != NULL) {
3452 deleteNode = NULL;
3459 if ((internalize) && (cur->properties != NULL)) {
3463 while (attr != NULL) {
3465 if ((txt != NULL) && (txt->type == XML_TEXT_NODE) &&
3466 (txt->content != NULL) &&
3479 xmlNodeSetContent(txt, NULL);
3498 if ((cur->nsDef != NULL) && (style->exclPrefixNr > 0)) {
3499 xmlNsPtr ns = cur->nsDef, prev = NULL, next;
3500 xmlNodePtr root = NULL;
3504 if ((root != NULL) && (root != cur)) {
3505 while (ns != NULL) {
3509 if ((ns->prefix != NULL) &&
3517 if (prev == NULL) {
3549 } else if ((cur->content != NULL) && (internalize) &&
3559 xmlNodeSetContent(cur, NULL);
3573 if ((cur->type == XML_ELEMENT_NODE) && (cur->ns != NULL) &&
3574 (styleelem != NULL) && (cur->parent == styleelem) &&
3578 } else if (cur->children != NULL) {
3588 if (cur->next != NULL) {
3595 if (cur == NULL)
3598 cur = NULL;
3601 if (cur->next != NULL) {
3605 } while (cur != NULL);
3607 if (deleteNode != NULL) {
3631 if (style == NULL)
3646 while (cur != NULL) {
3649 while (ns != NULL) {
3650 if (ns->prefix != NULL) {
3651 if (style->nsHash == NULL) {
3653 if (style->nsHash == NULL) {
3654 xsltTransformError(NULL, style, cur,
3661 if ((URI != NULL) && (!xmlStrEqual(URI, ns->href))) {
3662 xsltTransformError(NULL, style, cur,
3665 } else if (URI == NULL) {
3682 if (cur->children != NULL) {
3688 if (cur->next != NULL) {
3695 if (cur == NULL)
3698 cur = NULL;
3701 if (cur->next != NULL) {
3705 } while (cur != NULL);
3715 if ((node == NULL) || (node->type != XML_ELEMENT_NODE) ||
3716 (node->name == NULL))
3838 if ((cctxt == NULL) || (elem == NULL) ||
3842 elem->psvi = NULL;
3865 if (elem->nsDef != NULL)
3935 if ((elem->psvi != NULL) && (cctxt->ivar != NULL)) {
3944 elem->psvi = NULL;
3945 xsltTransformError(NULL, cctxt->style, elem,
3952 } while (ivar != NULL);
3972 if ((elem->psvi != NULL) && (cctxt->ivar != NULL)) {
3981 elem->psvi = NULL;
3982 xsltTransformError(NULL, cctxt->style, elem,
3989 } while (ivar != NULL);
4005 xsltTransformError(NULL, cctxt->style, elem,
4014 if (elem->children != NULL) {
4031 } while (child != NULL);
4037 if (elem->children != NULL) {
4055 } while (child != NULL);
4060 if (elem->children != NULL) {
4066 xsltTransformError(NULL, cctxt->style, elem,
4071 } while (child != NULL);
4076 if (elem->children != NULL) {
4086 xsltTransformError(NULL, cctxt->style, elem,
4092 } while (child != NULL);
4104 if (elem->children != NULL) {
4129 xsltTransformError(NULL, cctxt->style, elem,
4149 } while (child != NULL);
4151 xsltTransformError(NULL, cctxt->style, elem,
4168 if (elem->children != NULL) {
4187 } while (child != NULL);
4191 if (child != NULL)
4200 if (elem->children != NULL)
4207 if ((elem->next != NULL) &&
4211 if ((elem->psvi != NULL) &&
4246 if (item == NULL) {
4247 xsltTransformError(NULL, cctxt->style, NULL,
4251 return(NULL);
4281 if ((cctxt == NULL) || (node == NULL))
4294 xsltTransformError(NULL, cctxt->style, node,
4309 if (cctxt->unknownItem == NULL) {
4314 if (cctxt->unknownItem == NULL) {
4315 node->psvi = NULL;
4320 if (node->children == NULL)
4329 if (node->nsDef != NULL)
4344 } while (child != NULL);
4364 xmlNodePtr deleteNode = NULL;
4366 if (cctxt == NULL) {
4378 if (cur == NULL)
4407 while (cur != NULL) {
4408 if (deleteNode != NULL) {
4415 deleteNode = NULL;
4426 cur->psvi = NULL;
4442 (tmp->next == NULL))
4450 tmp = NULL;
4451 xsltTransformError(NULL, cctxt->style, cur,
4465 if ((attr->ns == NULL) &&
4466 (attr->name != NULL) &&
4475 if ((attr->children != NULL) &&
4485 } else if ((attr->children == NULL) ||
4486 (attr->children->content == NULL) ||
4490 xsltTransformError(NULL, cctxt->style,
4500 } while (attr != NULL);
4511 cur->psvi = NULL;
4553 if (cur->nsDef != NULL)
4591 if ((cur->ns != NULL) &&
4592 (cctxt->inode->extElemNs != NULL) &&
4602 if (cur->psvi != NULL) {
4603 cur->psvi = NULL;
4607 xsltTransformError(NULL, cctxt->style, cur,
4617 if (cur->psvi == NULL) {
4652 if ((cur->children != NULL) &&
4671 cur->psvi = NULL;
4673 if (cur->properties != NULL) {
4703 xsltTransformError(NULL, cctxt->style,
4716 } while (attr != NULL);
4735 while (attr != NULL) {
4744 if (cur->children != NULL) {
4756 if (deleteNode != NULL) {
4763 deleteNode = NULL;
4783 if ((style == NULL) || (templ == NULL))
4793 if (templ->children != NULL) {
4810 } while (child != NULL);
4838 delete = NULL;
4839 while (cur != NULL) {
4840 if (delete != NULL) {
4847 delete = NULL;
4858 if (cur->children != NULL) {
4865 NULL);
4866 if (prop != NULL) {
4875 xsltTransformError(NULL, style, cur,
4883 while (text != NULL) {
4890 xsltTransformError(NULL, style, cur,
4903 if (text == NULL) {
4905 while (text != NULL) {
4907 (text->content != NULL) &&
4913 if (text->doc->dict != NULL) {
4919 xmlNodeSetContent(text, NULL);
4936 else if ((cur->ns != NULL) && (style->nsDefs != NULL) &&
4950 if ((cur->ns == NULL) && (style->defaultAlias != NULL)) {
4954 if (cur->properties != NULL) {
4957 while (attr != NULL) {
4966 if (cur->children != NULL) {
4973 if (cur->next != NULL) {
4980 if (cur == NULL)
4983 cur = NULL;
4986 if (cur->next != NULL) {
4990 } while (cur != NULL);
4992 if (delete != NULL) {
4999 delete = NULL;
5006 while (cur != NULL) {
5015 while (cur != NULL) {
5019 xsltTransformError(NULL, style, cur,
5021 if (style != NULL) style->warnings++;
5045 xmlChar *prop = NULL;
5046 xmlChar *use = NULL;
5047 xmlChar *match = NULL;
5048 xmlChar *name = NULL;
5049 xmlChar *nameURI = NULL;
5051 if ((style == NULL) || (key == NULL))
5057 prop = xmlGetNsProp(key, (const xmlChar *)"name", NULL);
5058 if (prop != NULL) {
5065 if (prop == NULL) {
5066 if (style != NULL) style->errors++;
5070 if (URI != NULL)
5078 xsltTransformError(NULL, style, key,
5080 if (style != NULL) style->errors++;
5084 match = xmlGetNsProp(key, (const xmlChar *)"match", NULL);
5085 if (match == NULL) {
5086 xsltTransformError(NULL, style, key,
5088 if (style != NULL) style->errors++;
5092 use = xmlGetNsProp(key, (const xmlChar *)"use", NULL);
5093 if (use == NULL) {
5094 xsltTransformError(NULL, style, key,
5096 if (style != NULL) style->errors++;
5107 if (use != NULL)
5109 if (match != NULL)
5111 if (name != NULL)
5113 if (nameURI != NULL)
5116 if (key->children != NULL) {
5128 * TODO: Is @style ever expected to be NULL?
5141 if ((cctxt == NULL) || (templNode == NULL))
5148 if (templ == NULL)
5152 if (templNode->nsDef != NULL)
5163 prop = xmlGetNsProp(templNode, (const xmlChar *)"mode", NULL);
5164 if (prop != NULL) {
5174 if (prop == NULL) {
5180 prop = NULL;
5182 xsltTransformError(NULL, cctxt->style, templNode,
5188 if (modeURI != NULL)
5198 prop = xmlGetNsProp(templNode, (const xmlChar *)"match", NULL);
5199 if (prop != NULL) {
5201 prop = NULL;
5206 prop = xmlGetNsProp(templNode, (const xmlChar *)"priority", NULL);
5207 if (prop != NULL) {
5211 prop = NULL;
5216 prop = xmlGetNsProp(templNode, (const xmlChar *)"name", NULL);
5217 if (prop != NULL) {
5225 if (prop == NULL) {
5231 prop = NULL;
5233 xsltTransformError(NULL, cctxt->style, templNode,
5239 if (nameURI != NULL)
5242 while (curTempl != NULL) {
5243 if ((nameURI != NULL && xmlStrEqual(curTempl->name, templ->name) &&
5245 (nameURI == NULL && curTempl->nameURI == NULL &&
5248 xsltTransformError(NULL, cctxt->style, templNode,
5256 if (templNode->children != NULL) {
5298 xmlChar *mode = NULL;
5299 xmlChar *modeURI = NULL;
5302 if (template == NULL)
5309 if (ret == NULL)
5327 prop = xmlGetNsProp(template, (const xmlChar *)"mode", NULL);
5328 if (prop != NULL) {
5335 if (prop == NULL) {
5336 if (style != NULL) style->errors++;
5340 if (URI != NULL)
5349 if (mode != NULL) xmlFree(mode);
5350 if (modeURI != NULL) xmlFree(modeURI);
5352 prop = xmlGetNsProp(template, (const xmlChar *)"match", NULL);
5353 if (prop != NULL) {
5354 if (ret->match != NULL) xmlFree(ret->match);
5358 prop = xmlGetNsProp(template, (const xmlChar *)"priority", NULL);
5359 if (prop != NULL) {
5365 prop = xmlGetNsProp(template, (const xmlChar *)"name", NULL);
5366 if (prop != NULL) {
5374 if (prop == NULL) {
5375 if (style != NULL) style->errors++;
5379 xsltTransformError(NULL, style, template,
5381 if (style != NULL) style->errors++;
5386 prop = NULL;
5387 if (URI != NULL)
5390 ret->nameURI = NULL;
5392 while (cur != NULL) {
5393 if ((URI != NULL && xmlStrEqual(cur->name, ret->name) &&
5395 (URI == NULL && cur->nameURI == NULL &&
5397 xsltTransformError(NULL, style, template,
5434 if ((cctxt == NULL) || (node == NULL))
5435 return(NULL);
5437 node->psvi = NULL;
5439 if (item == NULL) {
5440 xsltTransformError(NULL, cctxt->style, node,
5443 return(NULL);
5468 if (name == NULL)
5471 *resultNode = NULL;
5472 while (cur != NULL) {
5474 if ((cur->ns != NULL) && (cur->name != NULL)) {
5509 if (node->nsDef != NULL)
5519 if (xsltCompileXSLTIncludeElem(cctxt, node) == NULL)
5545 xsltTransformError(NULL, cctxt->style, node,
5562 if ((node == NULL) || (node->children == NULL))
5565 xmlNodePtr delNode = NULL, child = node->children;
5571 delNode = NULL;
5578 } while (child != NULL);
5582 delNode = NULL;
5595 xmlNodePtr cur, start = NULL;
5598 if ((cctxt == NULL) || (node == NULL) ||
5619 if (include == NULL) {
5630 if (node == NULL) {
5635 if (node->children == NULL)
5680 xsltTransformError(NULL, cctxt->style, node,
5685 xsltTransformError(NULL, cctxt->style, node,
5700 xsltParseExtElemPrefixes(cctxt, node, NULL,
5706 xsltParseExclResultPrefixes(cctxt, node, NULL,
5736 while (cur != NULL) {
5738 xsltTransformError(NULL, style, cur,
5740 (cur->content != NULL) ? cur->content : BAD_CAST "");
5743 xsltTransformError(NULL, style, cur, "Misplaced node.\n");
5753 while ((cur != NULL) && xsltParseFindTopLevelElem(cctxt, cur,
5756 if (cur == NULL)
5763 while ((cur != NULL) &&
5774 while ((cur != NULL) &&
5785 while (cur != NULL) {
5790 if (cur->ns == NULL) {
5791 xsltTransformError(NULL, style, cur,
5805 xsltTransformError(NULL, style, cur,
5830 if (cur->psvi != NULL)
5833 xsltTransformError(NULL, style, cur,
5872 xsltTransformError(NULL, style, cur,
5877 xsltTransformError(NULL, style, cur,
5887 * non-NULL namespace.
5895 if (function != NULL)
5954 if ((cctxt == NULL) || (node == NULL))
5957 if (node->children == NULL)
5972 while ((cur != NULL) &&
5981 if (cur == NULL)
5988 while ((cur != NULL) &&
6001 while ((cur != NULL) &&
6042 if (top == NULL)
6045 prop = xmlGetNsProp(top, (const xmlChar *)"version", NULL);
6046 if (prop == NULL) {
6047 xsltTransformError(NULL, style, top,
6049 if (style != NULL) style->warnings++;
6053 xsltTransformError(NULL, style, top,
6056 if (style != NULL) style->warnings++;
6065 while (cur != NULL) {
6072 if (style != NULL) style->errors++;
6081 while (cur != NULL) {
6087 if (cur->content != NULL) {
6088 xsltTransformError(NULL, style, cur,
6091 if (style != NULL) style->errors++;
6095 if ((cur->type == XML_ELEMENT_NODE) && (cur->ns == NULL)) {
6099 if (style != NULL) style->errors++;
6108 if (function != NULL)
6120 xsltTransformError(NULL, style, cur,
6122 if (style != NULL) style->errors++;
6125 if (style != NULL) style->errors++;
6154 if ((style != NULL) && (style->doc->version != NULL) &&
6156 xsltTransformError(NULL, style, cur,
6159 if (style != NULL) style->errors++;
6163 xsltTransformError(NULL, style, cur,
6166 if (style != NULL) style->warnings++;
6197 if ((cctxt == NULL) || (node == NULL))
6206 xsltTransformError(NULL, cctxt->style, node,
6222 if (templ == NULL) {
6250 xsltAddTemplate(cctxt->style, templ, NULL, NULL);
6268 if (doc == NULL)
6274 while (ns != NULL) {
6275 if ((ns->doc == doc) && (ns->ns != NULL)) {
6277 ns->origNsName = NULL;
6278 ns->ns = NULL;
6297 * went right, NULL if something went amiss.
6308 if ((style == NULL) || (doc == NULL))
6309 return(NULL);
6314 if (cur == NULL) {
6315 xsltTransformError(NULL, style, (xmlNodePtr) doc,
6317 return(NULL);
6346 return(NULL);
6349 return(NULL);
6370 * went right, NULL if something went amiss.
6378 if (doc == NULL)
6379 return(NULL);
6380 if (ret == NULL)
6389 if (cur == NULL) {
6390 xsltTransformError(NULL, ret, (xmlNodePtr) doc,
6392 return(NULL);
6423 if (prop == NULL) {
6424 xsltTransformError(NULL, ret, cur,
6426 return(NULL);
6435 xsltTransformError(NULL, ret, cur,
6446 if (template == NULL) {
6447 return(NULL);
6459 xsltAddTemplate(ret, template, NULL, NULL);
6484 if (doc == NULL)
6485 return(NULL);
6488 if (retStyle == NULL)
6489 return(NULL);
6497 if (doc->dict != NULL) {
6519 if (parentStyle == NULL) {
6530 if (principalData == NULL) {
6532 return(NULL);
6543 if (cctxt == NULL) {
6545 return(NULL);
6575 if (parentStyle == NULL) {
6586 /* retStyle->compCtxt = NULL; */
6591 if (retStyle != NULL) {
6604 retStyle->doc = NULL;
6608 if (parentStyle == NULL) {
6610 if (retStyle->compCtxt != NULL) {
6612 retStyle->compCtxt = NULL;
6617 retStyle = NULL;
6627 if (xsltParseStylesheetProcess(retStyle, doc) == NULL) {
6628 retStyle->doc = NULL;
6630 retStyle = NULL;
6632 if (retStyle != NULL) {
6634 retStyle->doc = NULL;
6635 if (parentStyle == NULL)
6639 retStyle = NULL;
6666 ret = xsltParseStylesheetImportedDoc(doc, NULL);
6667 if (ret == NULL)
6668 return(NULL);
6677 if (ret->compCtxt != NULL) {
6679 ret->compCtxt = NULL;
6702 if (filename == NULL)
6703 return(NULL);
6714 if (sec != NULL) {
6717 res = xsltCheckRead(sec, NULL, filename);
6719 xsltTransformError(NULL, NULL, NULL,
6722 return(NULL);
6726 doc = xsltDocDefaultLoader(filename, NULL, XSLT_PARSE_OPTIONS,
6727 NULL, XSLT_LOAD_START);
6728 if (doc == NULL) {
6729 xsltTransformError(NULL, NULL, NULL,
6731 return(NULL);
6734 if (ret == NULL) {
6736 return(NULL);
6762 * Returns the URI-Reference for the stylesheet or NULL (it need to
6771 xmlChar *href = NULL;
6774 if (value == NULL)
6775 return(NULL);
6798 if (val == NULL)
6799 return(NULL);
6823 if (href == NULL)
6834 if (href != NULL)
6836 href = NULL;
6853 * Returns a new XSLT stylesheet structure or NULL if not found.
6858 xsltStylesheetPtr ret = NULL;
6859 xmlChar *href = NULL;
6864 if (doc == NULL)
6865 return(NULL);
6871 while ((child != NULL) && (child->type != XML_ELEMENT_NODE)) {
6875 if (href != NULL)
6884 if (href != NULL) {
6890 if (URI == NULL) {
6891 xsltTransformError(NULL, NULL, child,
6894 return(NULL);
6896 if ((URI->fragment != NULL) && (URI->scheme == NULL) &&
6897 (URI->opaque == NULL) && (URI->authority == NULL) &&
6898 (URI->server == NULL) && (URI->user == NULL) &&
6899 (URI->path == NULL) && (URI->query == NULL)) {
6910 if (ID == NULL) {
6911 xsltTransformError(NULL, NULL, child,
6928 fake = xmlNewDoc(NULL);
6929 if (fake != NULL) {
6963 if (ret == NULL)
6976 if (URL != NULL) {
6990 if (base != NULL)