• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/libxslt-13/libxslt/libxslt/

Lines Matching +defs:comp +defs:name

89 	((!xmlStrEqual(parent->name, BAD_CAST "stylesheet")) &&
90 (!xmlStrEqual(parent->name, BAD_CAST "transform")))) {
94 inst->name);
131 ((xmlStrEqual(parent->name, BAD_CAST "template")) ||
132 (xmlStrEqual(parent->name, BAD_CAST "param")) ||
133 (xmlStrEqual(parent->name, BAD_CAST "attribute")) ||
134 (xmlStrEqual(parent->name, BAD_CAST "variable")))) {
150 inst->name);
183 ((xmlStrEqual(parent->name, allow1)) ||
184 (xmlStrEqual(parent->name, allow2)))) {
203 inst->name);
376 * @comp: an XSLT Style precomputed block
378 * Free up the memory allocated by @comp
381 xsltFreeStylePreComp(xsltStylePreCompPtr comp) {
382 if (comp == NULL)
388 switch (comp->type) {
394 xsltStyleItemSortPtr item = (xsltStyleItemSortPtr) comp;
397 if (item->comp != NULL)
398 xmlXPathFreeCompExpr(item->comp);
412 xsltStyleItemCopyOfPtr item = (xsltStyleItemCopyOfPtr) comp;
413 if (item->comp != NULL)
414 xmlXPathFreeCompExpr(item->comp);
418 xsltStyleItemValueOfPtr item = (xsltStyleItemValueOfPtr) comp;
419 if (item->comp != NULL)
420 xmlXPathFreeCompExpr(item->comp);
424 xsltStyleItemNumberPtr item = (xsltStyleItemNumberPtr) comp;
437 (xsltStyleItemApplyTemplatesPtr) comp;
438 if (item->comp != NULL)
439 xmlXPathFreeCompExpr(item->comp);
445 xsltStyleItemIfPtr item = (xsltStyleItemIfPtr) comp;
446 if (item->comp != NULL)
447 xmlXPathFreeCompExpr(item->comp);
452 (xsltStyleItemForEachPtr) comp;
453 if (item->comp != NULL)
454 xmlXPathFreeCompExpr(item->comp);
461 (xsltStyleItemWithParamPtr) comp;
462 if (item->comp != NULL)
463 xmlXPathFreeCompExpr(item->comp);
468 (xsltStyleItemParamPtr) comp;
469 if (item->comp != NULL)
470 xmlXPathFreeCompExpr(item->comp);
475 (xsltStyleItemVariablePtr) comp;
476 if (item->comp != NULL)
477 xmlXPathFreeCompExpr(item->comp);
482 (xsltStyleItemWhenPtr) comp;
483 if (item->comp != NULL)
484 xmlXPathFreeCompExpr(item->comp);
499 if (comp->locale != (xsltLocale)0)
500 xsltFreeLocale(comp->locale);
501 if (comp->comp != NULL)
502 xmlXPathFreeCompExpr(comp->comp);
503 if (comp->numdata.countPat != NULL)
504 xsltFreeCompMatchList(comp->numdata.countPat);
505 if (comp->numdata.fromPat != NULL)
506 xsltFreeCompMatchList(comp->numdata.fromPat);
507 if (comp->nsList != NULL)
508 xmlFree(comp->nsList);
511 xmlFree(comp);
535 xsltStyleItemDocumentPtr comp;
537 xsltStylePreCompPtr comp;
554 comp = (xsltStyleItemDocumentPtr)
557 comp = xsltNewStylePreComp(style, XSLT_FUNC_DOCUMENT);
560 if (comp == NULL)
562 comp->inst = inst;
563 comp->ver11 = 0;
565 if (xmlStrEqual(inst->name, (const xmlChar *) "output")) {
580 NULL, &comp->has_filename);
581 } else if (xmlStrEqual(inst->name, (const xmlChar *) "write")) {
595 } else if (xmlStrEqual(inst->name, (const xmlChar *) "document")) {
602 comp->ver11 = 1;
652 (const xmlChar *)"href", NULL, &comp->has_filename);
654 if (!comp->has_filename) {
657 comp->filename = filename;
660 return ((xsltElemPreCompPtr) comp);
679 xsltStyleItemSortPtr comp;
681 xsltStylePreCompPtr comp;
687 comp = (xsltStyleItemSortPtr) xsltNewStylePreComp(style, XSLT_FUNC_SORT);
689 comp = xsltNewStylePreComp(style, XSLT_FUNC_SORT);
692 if (comp == NULL)
694 inst->psvi = comp;
695 comp->inst = inst;
697 comp->stype = xsltEvalStaticAttrValueTemplate(style, inst,
699 NULL, &comp->has_stype);
700 if (comp->stype != NULL) {
701 if (xmlStrEqual(comp->stype, (const xmlChar *) "text"))
702 comp->number = 0;
703 else if (xmlStrEqual(comp->stype, (const xmlChar *) "number"))
704 comp->number = 1;
707 "xsltSortComp: no support for data-type = %s\n", comp->stype);
708 comp->number = 0; /* use default */
712 comp->order = xsltEvalStaticAttrValueTemplate(style, inst,
714 NULL, &comp->has_order);
715 if (comp->order != NULL) {
716 if (xmlStrEqual(comp->order, (const xmlChar *) "ascending"))
717 comp->descending = 0;
718 else if (xmlStrEqual(comp->order, (const xmlChar *) "descending"))
719 comp->descending = 1;
722 "xsltSortComp: invalid value %s for order\n", comp->order);
723 comp->descending = 0; /* use default */
727 comp->case_order = xsltEvalStaticAttrValueTemplate(style, inst,
729 NULL, &comp->has_use);
730 if (comp->case_order != NULL) {
731 if (xmlStrEqual(comp->case_order, (const xmlChar *) "upper-first"))
732 comp->lower_first = 0;
733 else if (xmlStrEqual(comp->case_order, (const xmlChar *) "lower-first"))
734 comp->lower_first = 1;
737 "xsltSortComp: invalid value %s for order\n", comp->order);
738 comp->lower_first = 0; /* use default */
743 comp->lang = xsltEvalStaticAttrValueTemplate(style, inst,
745 NULL, &comp->has_lang);
746 if (comp->lang != NULL) {
747 comp->locale = xsltNewLocale(comp->lang);
750 comp->locale = (xsltLocale)0;
753 comp->select = xsltGetCNsProp(style, inst,(const xmlChar *)"select", XSLT_NAMESPACE);
754 if (comp->select == NULL) {
760 comp->select = xmlDictLookup(style->dict, BAD_CAST ".", 1);
762 comp->comp = xsltXPathCompile(style, comp->select);
763 if (comp->comp == NULL) {
766 comp->select);
786 xsltStyleItemCopyPtr comp;
788 xsltStylePreCompPtr comp;
794 comp = (xsltStyleItemCopyPtr) xsltNewStylePreComp(style, XSLT_FUNC_COPY);
796 comp = xsltNewStylePreComp(style, XSLT_FUNC_COPY);
799 if (comp == NULL)
801 inst->psvi = comp;
802 comp->inst = inst;
805 comp->use = xsltGetCNsProp(style, inst, (const xmlChar *)"use-attribute-sets",
807 if (comp->use == NULL)
808 comp->has_use = 0;
810 comp->has_use = 1;
829 xsltStyleItemTextPtr comp;
831 xsltStylePreCompPtr comp;
839 comp = (xsltStyleItemTextPtr) xsltNewStylePreComp(style, XSLT_FUNC_TEXT);
841 comp = xsltNewStylePreComp(style, XSLT_FUNC_TEXT);
843 if (comp == NULL)
845 inst->psvi = comp;
846 comp->inst = inst;
847 comp->noescape = 0;
854 comp->noescape = 1;
875 xsltStyleItemElementPtr comp;
877 xsltStylePreCompPtr comp;
882 * name = { qname }
892 comp = (xsltStyleItemElementPtr) xsltNewStylePreComp(style, XSLT_FUNC_ELEMENT);
894 comp = xsltNewStylePreComp(style, XSLT_FUNC_ELEMENT);
897 if (comp == NULL)
899 inst->psvi = comp;
900 comp->inst = inst;
903 * Attribute "name".
908 comp->name = xsltEvalStaticAttrValueTemplate(style, inst,
909 (const xmlChar *)"name", NULL, &comp->has_name);
910 if (! comp->has_name) {
912 "xsl:element: The attribute 'name' is missing.\n");
922 comp->ns = xsltEvalStaticAttrValueTemplate(style, inst,
923 (const xmlChar *)"namespace", NULL, &comp->has_ns);
925 if (comp->name != NULL) {
926 if (xmlValidateQName(comp->name, 0)) {
928 "xsl:element: The value '%s' of the attribute 'name' is "
929 "not a valid QName.\n", comp->name);
932 const xmlChar *prefix = NULL, *name;
934 name = xsltSplitQName(style->dict, comp->name, &prefix);
935 if (comp->has_ns == 0) {
941 * expanded into an expanded-name using the namespace declarations
947 comp->ns = xmlDictLookup(style->dict, ns->href, -1);
948 comp->has_ns = 1;
950 comp->nsPrefix = prefix;
951 comp->name = name;
958 "not specified by the instruction itself.\n", comp->name);
968 comp->has_name = 0;
975 comp->use = xsltEvalStaticAttrValueTemplate(style, inst,
977 NULL, &comp->has_use);
993 xsltStyleItemAttributePtr comp;
995 xsltStylePreCompPtr comp;
1000 * name = { qname }
1009 comp = (xsltStyleItemAttributePtr) xsltNewStylePreComp(style,
1012 comp = xsltNewStylePreComp(style, XSLT_FUNC_ATTRIBUTE);
1015 if (comp == NULL)
1017 inst->psvi = comp;
1018 comp->inst = inst;
1021 * Attribute "name".
1026 comp->name = xsltEvalStaticAttrValueTemplate(style, inst,
1027 (const xmlChar *)"name",
1028 NULL, &comp->has_name);
1029 if (! comp->has_name) {
1031 "XSLT-attribute: The attribute 'name' is missing.\n");
1041 comp->ns = xsltEvalStaticAttrValueTemplate(style, inst,
1043 NULL, &comp->has_ns);
1045 if (comp->name != NULL) {
1046 if (xmlValidateQName(comp->name, 0)) {
1048 "xsl:attribute: The value '%s' of the attribute 'name' is "
1049 "not a valid QName.\n", comp->name);
1051 } else if (xmlStrEqual(comp->name, BAD_CAST "xmlns")) {
1053 "xsl:attribute: The attribute name 'xmlns' is not allowed.\n");
1056 const xmlChar *prefix = NULL, *name;
1058 name = xsltSplitQName(style->dict, comp->name, &prefix);
1060 if (comp->has_ns == 0) {
1066 * QName is expanded into an expanded-name using the
1072 comp->ns = xmlDictLookup(style->dict, ns->href, -1);
1073 comp->has_ns = 1;
1075 comp->nsPrefix = prefix;
1076 comp->name = name;
1084 "itself.\n", comp->name);
1103 xsltStyleItemCommentPtr comp;
1105 xsltStylePreCompPtr comp;
1112 comp = (xsltStyleItemCommentPtr) xsltNewStylePreComp(style, XSLT_FUNC_COMMENT);
1114 comp = xsltNewStylePreComp(style, XSLT_FUNC_COMMENT);
1117 if (comp == NULL)
1119 inst->psvi = comp;
1120 comp->inst = inst;
1133 xsltStyleItemPIPtr comp;
1135 xsltStylePreCompPtr comp;
1142 comp = (xsltStyleItemPIPtr) xsltNewStylePreComp(style, XSLT_FUNC_PI);
1144 comp = xsltNewStylePreComp(style, XSLT_FUNC_PI);
1147 if (comp == NULL)
1149 inst->psvi = comp;
1150 comp->inst = inst;
1152 comp->name = xsltEvalStaticAttrValueTemplate(style, inst,
1153 (const xmlChar *)"name",
1154 XSLT_NAMESPACE, &comp->has_name);
1167 xsltStyleItemCopyOfPtr comp;
1169 xsltStylePreCompPtr comp;
1176 comp = (xsltStyleItemCopyOfPtr) xsltNewStylePreComp(style, XSLT_FUNC_COPYOF);
1178 comp = xsltNewStylePreComp(style, XSLT_FUNC_COPYOF);
1181 if (comp == NULL)
1183 inst->psvi = comp;
1184 comp->inst = inst;
1186 comp->select = xsltGetCNsProp(style, inst, (const xmlChar *)"select",
1188 if (comp->select == NULL) {
1194 comp->comp = xsltXPathCompile(style, comp->select);
1195 if (comp->comp == NULL) {
1198 comp->select);
1213 xsltStyleItemValueOfPtr comp;
1215 xsltStylePreCompPtr comp;
1223 comp = (xsltStyleItemValueOfPtr) xsltNewStylePreComp(style, XSLT_FUNC_VALUEOF);
1225 comp = xsltNewStylePreComp(style, XSLT_FUNC_VALUEOF);
1228 if (comp == NULL)
1230 inst->psvi = comp;
1231 comp->inst = inst;
1238 comp->noescape = 1;
1246 comp->select = xsltGetCNsProp(style, inst, (const xmlChar *)"select",
1248 if (comp->select == NULL) {
1254 comp->comp = xsltXPathCompile(style, comp->select);
1255 if (comp->comp == NULL) {
1258 comp->select);
1309 * Fixes bug #308441: Put the ns-name in the dict
1315 /* comp->has_ns = 1; */
1331 * name = qname
1339 xsltStyleItemWithParamPtr comp;
1341 xsltStylePreCompPtr comp;
1348 comp = (xsltStyleItemWithParamPtr) xsltNewStylePreComp(style, XSLT_FUNC_WITHPARAM);
1350 comp = xsltNewStylePreComp(style, XSLT_FUNC_WITHPARAM);
1353 if (comp == NULL)
1355 inst->psvi = comp;
1356 comp->inst = inst;
1359 * Attribute "name".
1361 xsltGetQNameProperty(style, inst, BAD_CAST "name",
1362 1, &(comp->has_name), &(comp->ns), &(comp->name));
1363 if (comp->ns)
1364 comp->has_ns = 1;
1368 comp->select = xsltGetCNsProp(style, inst, (const xmlChar *)"select",
1370 if (comp->select != NULL) {
1371 comp->comp = xsltXPathCompile(style, comp->select);
1372 if (comp->comp == NULL) {
1375 "expression '%s'\n", comp->select);
1397 xsltStyleItemNumberPtr comp;
1399 xsltStylePreCompPtr comp;
1407 comp = (xsltStyleItemNumberPtr) xsltNewStylePreComp(style, XSLT_FUNC_NUMBER);
1409 comp = xsltNewStylePreComp(style, XSLT_FUNC_NUMBER);
1412 if (comp == NULL)
1414 cur->psvi = comp;
1419 comp->numdata.doc = cur->doc;
1420 comp->numdata.node = cur;
1421 comp->numdata.value = xsltGetCNsProp(style, cur, (const xmlChar *)"value",
1426 XSLT_NAMESPACE, &comp->numdata.has_format);
1427 if (comp->numdata.has_format == 0) {
1428 comp->numdata.format = xmlDictLookup(style->dict, BAD_CAST "" , 0);
1430 comp->numdata.format = prop;
1433 comp->numdata.count = xsltGetCNsProp(style, cur, (const xmlChar *)"count",
1435 comp->numdata.from = xsltGetCNsProp(style, cur, (const xmlChar *)"from",
1440 comp->numdata.countPat = xsltCompilePattern(prop, cur->doc, cur, style,
1446 comp->numdata.fromPat = xsltCompilePattern(prop, cur->doc, cur, style,
1455 comp->numdata.level = prop;
1492 comp->numdata.groupingCharacterLen = xmlStrlen(prop);
1493 comp->numdata.groupingCharacter =
1494 xsltGetUTF8Char(prop, &(comp->numdata.groupingCharacterLen));
1499 sscanf((char *)prop, "%d", &comp->numdata.digitsPerGroup);
1501 comp->numdata.groupingCharacter = 0;
1505 if (comp->numdata.value == NULL) {
1506 if (comp->numdata.level == NULL) {
1507 comp->numdata.level = xmlDictLookup(style->dict,
1524 xsltStyleItemApplyImportsPtr comp;
1526 xsltStylePreCompPtr comp;
1533 comp = (xsltStyleItemApplyImportsPtr) xsltNewStylePreComp(style, XSLT_FUNC_APPLYIMPORTS);
1535 comp = xsltNewStylePreComp(style, XSLT_FUNC_APPLYIMPORTS);
1538 if (comp == NULL)
1540 inst->psvi = comp;
1541 comp->inst = inst;
1554 xsltStyleItemCallTemplatePtr comp;
1556 xsltStylePreCompPtr comp;
1563 comp = (xsltStyleItemCallTemplatePtr)
1566 comp = xsltNewStylePreComp(style, XSLT_FUNC_CALLTEMPLATE);
1569 if (comp == NULL)
1571 inst->psvi = comp;
1572 comp->inst = inst;
1575 * Attribute "name".
1577 xsltGetQNameProperty(style, inst, BAD_CAST "name",
1578 1, &(comp->has_name), &(comp->ns), &(comp->name));
1579 if (comp->ns)
1580 comp->has_ns = 1;
1593 xsltStyleItemApplyTemplatesPtr comp;
1595 xsltStylePreCompPtr comp;
1602 comp = (xsltStyleItemApplyTemplatesPtr)
1605 comp = xsltNewStylePreComp(style, XSLT_FUNC_APPLYTEMPLATES);
1608 if (comp == NULL)
1610 inst->psvi = comp;
1611 comp->inst = inst;
1617 0, NULL, &(comp->modeURI), &(comp->mode));
1621 comp->select = xsltGetCNsProp(style, inst, BAD_CAST "select",
1623 if (comp->select != NULL) {
1624 comp->comp = xsltXPathCompile(style, comp->select);
1625 if (comp->comp == NULL) {
1628 "expression '%s'\n", comp->select);
1645 xsltStyleItemChoosePtr comp;
1647 xsltStylePreCompPtr comp;
1654 comp = (xsltStyleItemChoosePtr)
1657 comp = xsltNewStylePreComp(style, XSLT_FUNC_CHOOSE);
1660 if (comp == NULL)
1662 inst->psvi = comp;
1663 comp->inst = inst;
1676 xsltStyleItemIfPtr comp;
1678 xsltStylePreCompPtr comp;
1685 comp = (xsltStyleItemIfPtr)
1688 comp = xsltNewStylePreComp(style, XSLT_FUNC_IF);
1691 if (comp == NULL)
1693 inst->psvi = comp;
1694 comp->inst = inst;
1696 comp->test = xsltGetCNsProp(style, inst, (const xmlChar *)"test", XSLT_NAMESPACE);
1697 if (comp->test == NULL) {
1703 comp->comp = xsltXPathCompile(style, comp->test);
1704 if (comp->comp == NULL) {
1707 comp->test);
1722 xsltStyleItemWhenPtr comp;
1724 xsltStylePreCompPtr comp;
1731 comp = (xsltStyleItemWhenPtr)
1734 comp = xsltNewStylePreComp(style, XSLT_FUNC_WHEN);
1737 if (comp == NULL)
1739 inst->psvi = comp;
1740 comp->inst = inst;
1742 comp->test = xsltGetCNsProp(style, inst, (const xmlChar *)"test", XSLT_NAMESPACE);
1743 if (comp->test == NULL) {
1749 comp->comp = xsltXPathCompile(style, comp->test);
1750 if (comp->comp == NULL) {
1753 comp->test);
1768 xsltStyleItemForEachPtr comp;
1770 xsltStylePreCompPtr comp;
1777 comp = (xsltStyleItemForEachPtr)
1780 comp = xsltNewStylePreComp(style, XSLT_FUNC_FOREACH);
1783 if (comp == NULL)
1785 inst->psvi = comp;
1786 comp->inst = inst;
1788 comp->select = xsltGetCNsProp(style, inst, (const xmlChar *)"select",
1790 if (comp->select == NULL) {
1795 comp->comp = xsltXPathCompile(style, comp->select);
1796 if (comp->comp == NULL) {
1799 comp->select);
1816 xsltStyleItemVariablePtr comp;
1818 xsltStylePreCompPtr comp;
1825 comp = (xsltStyleItemVariablePtr)
1828 comp = xsltNewStylePreComp(style, XSLT_FUNC_VARIABLE);
1831 if (comp == NULL)
1834 inst->psvi = comp;
1835 comp->inst = inst;
1841 * Attribute "name".
1843 xsltGetQNameProperty(style, inst, BAD_CAST "name",
1844 1, &(comp->has_name), &(comp->ns), &(comp->name));
1845 if (comp->ns)
1846 comp->has_ns = 1;
1850 comp->select = xsltGetCNsProp(style, inst, (const xmlChar *)"select",
1852 if (comp->select != NULL) {
1856 comp->comp = xsltXPathCompile(style, comp->select);
1857 if (comp->comp == NULL) {
1860 comp->select);
1895 xsltStyleItemParamPtr comp;
1897 xsltStylePreCompPtr comp;
1904 comp = (xsltStyleItemParamPtr)
1907 comp = xsltNewStylePreComp(style, XSLT_FUNC_PARAM);
1910 if (comp == NULL)
1912 inst->psvi = comp;
1913 comp->inst = inst;
1916 * Attribute "name".
1918 xsltGetQNameProperty(style, inst, BAD_CAST "name",
1919 1, &(comp->has_name), &(comp->ns), &(comp->name));
1920 if (comp->ns)
1921 comp->has_ns = 1;
1925 comp->select = xsltGetCNsProp(style, inst, (const xmlChar *)"select",
1927 if (comp->select != NULL) {
1928 comp->comp = xsltXPathCompile(style, comp->select);
1929 if (comp->comp == NULL) {
1932 comp->select);
2083 "the XSLT element '%s'.\n", node->name);
2172 "the XSLT element '%s'.\n", node->name);
2204 * namespace- and local-name of the node, but can evaluate this
2251 (!xmlStrEqual(parent->name, BAD_CAST "attribute-set"))) {
2308 inst->name);
2342 "xsltStylePreCompute: unknown xsl:%s\n", inst->name);