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

Lines Matching +refs:style +refs:use

119  * @style: the stylesheet
125 xsltParseContentError(xsltStylesheetPtr style,
128 if ((style == NULL) || (node == NULL))
132 xsltTransformError(NULL, style, node,
136 xsltTransformError(NULL, style, node,
139 style->errors++;
146 * @style: the transformation stylesheet
155 exclPrefixPush(xsltStylesheetPtr style, xmlChar * value)
159 if (style->exclPrefixMax == 0) {
160 style->exclPrefixMax = 4;
161 style->exclPrefixTab =
162 (xmlChar * *)xmlMalloc(style->exclPrefixMax *
163 sizeof(style->exclPrefixTab[0]));
164 if (style->exclPrefixTab == NULL) {
170 for (i = 0;i < style->exclPrefixNr;i++) {
171 if (xmlStrEqual(style->exclPrefixTab[i], value))
174 if (style->exclPrefixNr >= style->exclPrefixMax) {
175 style->exclPrefixMax *= 2;
176 style->exclPrefixTab =
177 (xmlChar * *)xmlRealloc(style->exclPrefixTab,
178 style->exclPrefixMax *
179 sizeof(style->exclPrefixTab[0]));
180 if (style->exclPrefixTab == NULL) {
185 style->exclPrefixTab[style->exclPrefixNr] = value;
186 style->exclPrefix = value;
187 return (style->exclPrefixNr++);
191 * @style: the transformation stylesheet
198 exclPrefixPop(xsltStylesheetPtr style)
202 if (style->exclPrefixNr <= 0)
204 style->exclPrefixNr--;
205 if (style->exclPrefixNr > 0)
206 style->exclPrefix = style->exclPrefixTab[style->exclPrefixNr - 1];
208 style->exclPrefix = NULL;
209 ret = style->exclPrefixTab[style->exclPrefixNr];
210 style->exclPrefixTab[style->exclPrefixNr] = 0;
353 * @style: the XSLT stylesheet
361 xsltDecimalFormatGetByName(xsltStylesheetPtr style, xmlChar *name)
366 return style->decimalFormat;
368 while (style != NULL) {
369 for (result = style->decimalFormat->next;
375 style = xsltNextImport(style);
492 xsltTransformError(NULL, cctxt->style, elem,
583 xsltCompilationCtxtCreate(xsltStylesheetPtr style) {
588 xsltTransformError(NULL, style, NULL,
780 * @style: an XSLT stylesheet
788 xsltAllocateExtra(xsltStylesheetPtr style)
790 return(style->extrasNr++);
849 * @style: an XSLT stylesheet list
851 * Free up the memory allocated by the list @style
854 xsltFreeStylesheetList(xsltStylesheetPtr style) {
857 while (style != NULL) {
858 next = style->next;
859 xsltFreeStylesheet(style);
860 style = next;
926 * @style: an XSLT stylesheet
928 * Free up the memory allocated by @style
931 xsltFreeStylesheet(xsltStylesheetPtr style)
933 if (style == NULL)
940 if ((style->principal == style) && (style->doc))
941 xsltCleanupStylesheetTree(style->doc,
942 xmlDocGetRootElement(style->doc));
947 if ((style->doc != NULL) &&
948 XSLT_HAS_INTERNAL_NSMAP(style))
950 xsltRestoreDocumentNamespaces(XSLT_GET_INTERNAL_NSMAP(style),
951 style->doc);
958 if ((style->parent == NULL) && (style->doc))
959 xsltCleanupStylesheetTree(style->doc,
960 xmlDocGetRootElement(style->doc));
963 xsltFreeKeys(style);
964 xsltFreeExts(style);
965 xsltFreeTemplateHashes(style);
966 xsltFreeDecimalFormatList(style);
967 xsltFreeTemplateList(style->templates);
968 xsltFreeAttributeSetsHashes(style);
969 xsltFreeNamespaceAliasHashes(style);
970 xsltFreeStylePreComps(style);
975 xsltFreeStyleDocuments(style);
979 xsltShutdownExts(style);
981 if (style->variables != NULL)
982 xsltFreeStackElemList(style->variables);
983 if (style->cdataSection != NULL)
984 xmlHashFree(style->cdataSection, NULL);
985 if (style->stripSpaces != NULL)
986 xmlHashFree(style->stripSpaces, NULL);
987 if (style->nsHash != NULL)
988 xmlHashFree(style->nsHash, NULL);
989 if (style->exclPrefixTab != NULL)
990 xmlFree(style->exclPrefixTab);
991 if (style->method != NULL)
992 xmlFree(style->method);
993 if (style->methodURI != NULL)
994 xmlFree(style->methodURI);
995 if (style->version != NULL)
996 xmlFree(style->version);
997 if (style->encoding != NULL)
998 xmlFree(style->encoding);
999 if (style->doctypePublic != NULL)
1000 xmlFree(style->doctypePublic);
1001 if (style->doctypeSystem != NULL)
1002 xmlFree(style->doctypeSystem);
1003 if (style->mediaType != NULL)
1004 xmlFree(style->mediaType);
1005 if (style->attVTs)
1006 xsltFreeAVTList(style->attVTs);
1007 if (style->imports != NULL)
1008 xsltFreeStylesheetList(style->imports);
1015 if (style->principal == style) {
1016 if (style->principalData) {
1017 xsltFreePrincipalStylesheetData(style->principalData);
1018 style->principalData = NULL;
1026 if (style->doc != NULL) {
1027 xmlFreeDoc(style->doc);
1034 xmlDictFree(style->dict);
1036 memset(style, -1, sizeof(xsltStylesheet));
1037 xmlFree(style);
1053 * @style: the stylesheet
1064 xsltGetInheritedNsList(xsltStylesheetPtr style,
1074 if ((style == NULL) || (template == NULL) || (node == NULL) ||
1085 (xsltCheckExtPrefix(style, cur->prefix)))
1092 for (i = 0;i < style->exclPrefixNr;i++) {
1093 if (xmlStrEqual(cur->href, style->exclPrefixTab[i]))
1151 * @style: the XSLT stylesheet
1159 xsltParseStylesheetOutput(xsltStylesheetPtr style, xmlNodePtr cur)
1166 if ((cur == NULL) || (style == NULL) || (cur->type != XML_ELEMENT_NODE))
1171 if (style->version != NULL)
1172 xmlFree(style->version);
1173 style->version = prop;
1178 if (style->encoding != NULL)
1179 xmlFree(style->encoding);
1180 style->encoding = prop;
1190 if (style->method != NULL)
1191 xmlFree(style->method);
1192 style->method = NULL;
1193 if (style->methodURI != NULL)
1194 xmlFree(style->methodURI);
1195 style->methodURI = NULL;
1198 * TODO: Don't use xsltGetQNameURI().
1202 if (style != NULL) style->errors++;
1207 style->method = prop;
1209 xsltTransformError(NULL, style, cur,
1211 if (style != NULL) style->warnings++;
1214 style->method = prop;
1215 style->methodURI = xmlStrdup(URI);
1221 if (style->doctypeSystem != NULL)
1222 xmlFree(style->doctypeSystem);
1223 style->doctypeSystem = prop;
1228 if (style->doctypePublic != NULL)
1229 xmlFree(style->doctypePublic);
1230 style->doctypePublic = prop;
1236 style->standalone = 1;
1238 style->standalone = 0;
1240 xsltTransformError(NULL, style, cur,
1242 style->errors++;
1250 style->indent = 1;
1252 style->indent = 0;
1254 xsltTransformError(NULL, style, cur,
1256 style->errors++;
1264 style->omitXmlDeclaration = 1;
1266 style->omitXmlDeclaration = 0;
1268 xsltTransformError(NULL, style, cur,
1271 style->errors++;
1279 if (style->cdataSection == NULL)
1280 style->cdataSection = xmlHashCreate(10);
1281 if (style->cdataSection == NULL)
1301 xsltTransformError(NULL, style, cur,
1305 style->errors++;
1310 * TODO: Don't use xsltGetQNameURI().
1318 xsltTransformError(NULL, style, cur,
1321 style->errors++;
1334 ns = xmlSearchNs(style->doc, cur, NULL);
1338 xmlHashAddEntry2(style->cdataSection, element, URI,
1351 if (style->mediaType)
1352 xmlFree(style->mediaType);
1353 style->mediaType = prop;
1356 xsltParseContentError(style, cur->children);
1362 * @style: the XSLT stylesheet
1376 xsltParseStylesheetDecimalFormat(xsltStylesheetPtr style, xmlNodePtr cur)
1382 if ((cur == NULL) || (style == NULL) || (cur->type != XML_ELEMENT_NODE))
1385 format = style->decimalFormat;
1389 format = xsltDecimalFormatGetByName(style, prop);
1391 xsltTransformError(NULL, style, cur,
1393 if (style != NULL) style->warnings++;
1398 xsltTransformError(NULL, style, cur,
1400 if (style != NULL) style->errors++;
1404 for (iter = style->decimalFormat; iter->next; iter = iter->next)
1470 xsltParseContentError(style, cur->children);
1476 * @style: the XSLT stylesheet
1484 xsltParseStylesheetPreserveSpace(xsltStylesheetPtr style, xmlNodePtr cur) {
1488 if ((cur == NULL) || (style == NULL) || (cur->type != XML_ELEMENT_NODE))
1493 xsltTransformError(NULL, style, cur,
1495 if (style != NULL) style->warnings++;
1499 if (style->stripSpaces == NULL)
1500 style->stripSpaces = xmlHashCreate(10);
1501 if (style->stripSpaces == NULL)
1518 style->stripAll = -1;
1523 * TODO: Don't use xsltGetQNameURI().
1527 xmlHashAddEntry2(style->stripSpaces, element, URI,
1536 xsltParseContentError(style, cur->children);
1544 * @style: the XSLT stylesheet
1557 xsltParseStylesheetExtPrefix(xsltStylesheetPtr style, xmlNodePtr cur,
1562 if ((cur == NULL) || (style == NULL) || (cur->type != XML_ELEMENT_NODE))
1590 ns = xmlSearchNs(style->doc, cur, NULL);
1592 ns = xmlSearchNs(style->doc, cur, prefix);
1594 xsltTransformError(NULL, style, cur,
1597 if (style != NULL) style->warnings++;
1603 xsltRegisterExtPrefix(style, prefix, ns->href);
1615 * @style: the XSLT stylesheet
1623 xsltParseStylesheetStripSpace(xsltStylesheetPtr style, xmlNodePtr cur) {
1627 if ((cur == NULL) || (style == NULL) || (cur->type != XML_ELEMENT_NODE))
1632 xsltTransformError(NULL, style, cur,
1634 if (style != NULL) style->warnings++;
1638 if (style->stripSpaces == NULL)
1639 style->stripSpaces = xmlHashCreate(10);
1640 if (style->stripSpaces == NULL)
1657 style->stripAll = 1;
1662 * TODO: Don't use xsltGetQNameURI().
1666 xmlHashAddEntry2(style->stripSpaces, element, URI,
1675 xsltParseContentError(style, cur->children);
1683 * @style: the XSLT stylesheet
1693 xsltParseStylesheetExcludePrefix(xsltStylesheetPtr style, xmlNodePtr cur,
1700 if ((cur == NULL) || (style == NULL) || (cur->type != XML_ELEMENT_NODE))
1726 ns = xmlSearchNs(style->doc, cur, NULL);
1728 ns = xmlSearchNs(style->doc, cur, prefix);
1730 xsltTransformError(NULL, style, cur,
1733 if (style != NULL) style->warnings++;
1735 if (exclPrefixPush(style, (xmlChar *) ns->href) >= 0) {
1914 * BIG NOTE: The use of xsltTreeAcquireStoredNs()
1929 xsltTransformError(NULL, cctxt->style, elem,
1934 cctxt->style->errors++;
1989 xsltTransformError(NULL, cctxt->style, elem,
1994 cctxt->style->errors++;
2081 * URGENT TODO: is style->nsAliases the effective list of
2100 * Recognized as a target namespace; use it regardless
2117 * Recognized as an namespace alias; do not use it.
2165 xsltTransformError(NULL, cctxt->style, elem,
2168 cctxt->style->errors++;
2217 xsltTransformError(NULL, cctxt->style, NULL,
2220 cctxt->style->errors++;
2228 item->next = cctxt->style->preComps;
2229 cctxt->style->preComps = (xsltElemPreCompPtr) item;
2268 xsltTransformError(NULL, cctxt->style, inst,
2270 cctxt->style->errors++;
2335 xsltTransformError(NULL, cctxt->style, NULL,
2531 xsltTransformError(NULL, cctxt->style, NULL,
2540 xsltTransformError(NULL, cctxt->style, NULL,
2562 xsltTransformError(NULL, cctxt->style, NULL,
2601 xsltTransformError(NULL, cctxt->style, NULL,
2616 cctxt->style->errors++;
2647 * TODO: Export and use xmlSearchNsByPrefixStrict()
2655 ns = xmlSearchNs(cctxt->style->doc, node, NULL);
2657 ns = xmlSearchNs(cctxt->style->doc, node, cur);
2664 xsltTransformError(NULL, cctxt->style, node,
2672 cctxt->style->errors++;
2682 (void *) xmlDictLookup(cctxt->style->dict,
2696 cctxt->style->errors++;
2786 xsltTransformError(NULL, cctxt->style, node,
2788 cctxt->style->errors++;
2868 xsltTransformError(NULL, cctxt->style, node,
2870 cctxt->style->errors++;
2885 xsltRegisterExtPrefix(cctxt->style, NULL,
2952 xsltTransformError(NULL, cctxt->style, node,
2954 cctxt->style->errors++;
2970 xsltTransformError(NULL, cctxt->style, node,
2975 cctxt->style->warnings++;
2996 xsltStylesheetPtr style;
3007 if ((cctxt == NULL) || (cctxt->style == NULL) ||
3015 style = cctxt->style;
3016 if ((style->dict != NULL) && (doc->dict == style->dict))
3019 style->internalized = 0;
3071 * TODO: I'd love to use a string pointer comparison here :-/
3109 * TODO: I'd love to use a string pointer comparison here :-/
3221 (!xmlDictOwns(style->dict, txt->content)))
3223 value = (xmlChar *) xmlDictLookup(style->dict,
3252 xsltTransformError(NULL, style, cur,
3254 cctxt->style->warnings++;
3336 xsltTransformError(NULL, style, cur,
3338 cctxt->style->errors++;
3376 (!xmlDictOwns(style->dict, textNode->content)))
3381 value = (xmlChar *) xmlDictLookup(style->dict,
3427 xsltPrecomputeStylesheet(xsltStylesheetPtr style, xmlNodePtr cur)
3432 if ((style == NULL) || (cur == NULL))
3435 if ((cur->doc != NULL) && (style->dict != NULL) &&
3436 (cur->doc->dict == style->dict))
3439 style->internalized = 0;
3477 (!xmlDictOwns(style->dict, txt->content)))
3486 tmp = (xmlChar *) xmlDictLookup(style->dict,
3498 xsltStylePreCompute(style, cur);
3501 exclPrefixPop(style);
3505 exclPrefixes = xsltParseStylesheetExcludePrefix(style, cur, 0);
3508 if ((cur->nsDef != NULL) && (style->exclPrefixNr > 0)) {
3518 for (i = 0;i < style->exclPrefixNr;i++) {
3521 style->exclPrefixTab[i]))) {
3549 xsltPrecomputeStylesheet(style, cur->children);
3551 exclPrefixPop(style);
3560 (!xmlDictOwns(style->dict, cur->content))) {
3568 tmp = (xmlChar *) xmlDictLookup(style->dict, cur->content, -1);
3586 (!xsltCheckExtURI(style, cur->ns->href))) {
3607 if (cur == (xmlNodePtr) style->doc) {
3630 * @style: the XSLT stylesheet
3637 xsltGatherNamespaces(xsltStylesheetPtr style) {
3641 if (style == NULL)
3649 * TODO: Eliminate the use of the hash for XPath expressions.
3655 cur = xmlDocGetRootElement(style->doc);
3661 if (style->nsHash == NULL) {
3662 style->nsHash = xmlHashCreate(10);
3663 if (style->nsHash == NULL) {
3664 xsltTransformError(NULL, style, cur,
3666 style->errors++;
3670 URI = xmlHashLookup(style->nsHash, ns->prefix);
3672 xsltTransformError(NULL, style, cur,
3674 style->warnings++;
3676 xmlHashUpdateEntry(style->nsHash, ns->prefix,
3707 if (cur == (xmlNodePtr) style->doc) {
3884 xsltStylePreCompute(cctxt->style, elem);
3955 xsltTransformError(NULL, cctxt->style, elem,
3958 cctxt->style->errors++;
3992 xsltTransformError(NULL, cctxt->style, elem,
3995 cctxt->style->errors++;
4015 xsltTransformError(NULL, cctxt->style, elem,
4018 cctxt->style->errors++;
4036 xsltParseContentError(cctxt->style, child);
4038 xsltParseContentError(cctxt->style, child);
4059 xsltParseContentError(cctxt->style, child);
4062 xsltParseContentError(cctxt->style, child);
4076 xsltTransformError(NULL, cctxt->style, elem,
4096 xsltTransformError(NULL, cctxt->style, elem,
4098 cctxt->style->errors++;
4126 xsltParseContentError(cctxt->style, child);
4134 xsltParseContentError(cctxt->style, child);
4139 xsltTransformError(NULL, cctxt->style, elem,
4142 cctxt->style->errors++;
4150 xsltParseContentError(cctxt->style, child);
4152 xsltParseContentError(cctxt->style, child);
4161 xsltTransformError(NULL, cctxt->style, elem,
4164 cctxt->style->errors++;
4257 xsltTransformError(NULL, cctxt->style, NULL,
4260 cctxt->style->errors++;
4268 item->next = cctxt->style->preComps;
4269 cctxt->style->preComps = (xsltElemPreCompPtr) item;
4304 xsltTransformError(NULL, cctxt->style, node,
4306 cctxt->style->errors++;
4379 cctxt->style->errors++;
4396 * use-attribute-sets = qnames>
4461 xsltTransformError(NULL, cctxt->style, cur,
4464 cctxt->style->errors++;
4500 xsltTransformError(NULL, cctxt->style,
4505 cctxt->style->errors++;
4584 * default-collation, and use-when."
4591 * xsl:default-collation, or xsl:use-when."
4603 (xsltCheckExtPrefix(cctxt->style, cur->ns->href) == 1))
4617 xsltTransformError(NULL, cctxt->style, cur,
4620 cctxt->style->errors++;
4625 xsltPreComputeExtModuleElement(cctxt->style, cur);
4678 * TODO: xsl:use-attribute-sets %qnames; #IMPLIED
4699 * For XSLT 1.0 only xsl:use-attribute-sets is allowed
4711 BAD_CAST "use-attribute-sets"))
4713 xsltTransformError(NULL, cctxt->style,
4717 cctxt->style->errors++;
4746 xsltCompileAttr(cctxt->style, attr);
4779 * @style: the XSLT stylesheet
4792 xsltParseTemplateContent(xsltStylesheetPtr style, xmlNodePtr templ) {
4793 if ((style == NULL) || (templ == NULL) ||
4800 if (XSLT_CCTXT(style)->inode->category == XSLT_ELEMENT_CATEGORY_EXTENSION) {
4801 XSLT_CCTXT(style)->inode->extContentHandled = 1;
4816 XSLT_CCTXT(style)->inode->curChildType = XSLT_FUNC_PARAM;
4817 xsltParseAnyXSLTElem(XSLT_CCTXT(style), child);
4825 xsltParseSequenceConstructor(XSLT_CCTXT(style), child);
4833 * @style: the XSLT stylesheet
4841 xsltParseTemplateContent(xsltStylesheetPtr style, xmlNodePtr templ) {
4844 if ((style == NULL) || (templ == NULL) ||
4871 * the use of the style->nopreproc flag.
4890 xsltTransformError(NULL, style, cur,
4892 style->warnings++;
4905 xsltTransformError(NULL, style, cur,
4907 style->errors++;
4921 if ((style->internalized) &&
4923 (!xmlDictOwns(style->dict, text->content))) {
4951 else if ((cur->ns != NULL) && (style->nsDefs != NULL) &&
4952 (xsltCheckExtPrefix(style, cur->ns->prefix)))
4957 xsltStylePreCompute(style, cur);
4965 if ((cur->ns == NULL) && (style->defaultAlias != NULL)) {
4967 style->defaultAlias);
4973 xsltCompileAttr(style, attr);
5034 xsltTransformError(NULL, style, cur,
5036 if (style != NULL) style->warnings++;
5049 * @style: the XSLT stylesheet
5053 * <xsl:key name = qname, match = pattern, use = expression />
5059 xsltParseStylesheetKey(xsltStylesheetPtr style, xmlNodePtr key) {
5061 xmlChar *use = NULL;
5066 if ((style == NULL) || (key == NULL) || (key->type != XML_ELEMENT_NODE))
5077 * TODO: Don't use xsltGetQNameURI().
5081 if (style != NULL) style->errors++;
5093 xsltTransformError(NULL, style, key,
5095 if (style != NULL) style->errors++;
5101 xsltTransformError(NULL, style, key,
5103 if (style != NULL) style->errors++;
5107 use = xmlGetNsProp(key, (const xmlChar *)"use", NULL);
5108 if (use == NULL) {
5109 xsltTransformError(NULL, style, key,
5110 "xsl:key : error missing use\n");
5111 if (style != NULL) style->errors++;
5118 xsltAddKey(style, name, nameURI, match, use, key);
5122 if (use != NULL)
5123 xmlFree(use);
5132 xsltParseContentError(style, key->children);
5139 * @style: the XSLT stylesheet
5143 * TODO: Is @style ever expected to be NULL?
5172 templ->next = cctxt->style->templates;
5173 cctxt->style->templates = templ;
5174 templ->style = cctxt->style;
5186 * Don't use xsltGetQNameURI() as it cannot channe���
5191 cctxt->style->errors++;
5194 templ->mode = xmlDictLookup(cctxt->style->dict, prop, -1);
5198 xsltTransformError(NULL, cctxt->style, templNode,
5201 cctxt->style->errors++;
5205 templ->modeURI = xmlDictLookup(cctxt->style->dict, modeURI, -1);
5238 * TODO: Don't use xsltGetQNameURI().
5242 cctxt->style->errors++;
5245 templ->name = xmlDictLookup(cctxt->style->dict, prop, -1);
5249 xsltTransformError(NULL, cctxt->style, templNode,
5252 cctxt->style->errors++;
5256 templ->nameURI = xmlDictLookup(cctxt->style->dict, nameURI, -1);
5264 xsltTransformError(NULL, cctxt->style, templNode,
5266 cctxt->style->errors++;
5273 xsltParseTemplateContent(cctxt->style, templNode);
5293 xsltAddTemplate(cctxt->style, templ, templ->mode, templ->modeURI);
5304 * @style: the XSLT stylesheet
5311 xsltParseStylesheetTemplate(xsltStylesheetPtr style, xmlNodePtr template) {
5318 if ((style == NULL) || (template == NULL) ||
5328 ret->next = style->templates;
5329 style->templates = ret;
5330 ret->style = style;
5339 xsltGetInheritedNsList(style, ret, template);
5349 * TODO: Don't use xsltGetQNameURI().
5353 if (style != NULL) style->errors++;
5360 ret->mode = xmlDictLookup(style->dict, mode, -1);
5361 ret->modeURI = xmlDictLookup(style->dict, modeURI, -1);
5388 * TODO: Don't use xsltGetQNameURI().
5392 if (style != NULL) style->errors++;
5396 xsltTransformError(NULL, style, template,
5398 if (style != NULL) style->errors++;
5401 ret->name = xmlDictLookup(style->dict, BAD_CAST prop, -1);
5405 ret->nameURI = xmlDictLookup(style->dict, BAD_CAST URI, -1);
5414 xsltTransformError(NULL, style, template,
5416 style->errors++;
5427 xsltParseTemplateContent(style, template);
5430 xsltAddTemplate(style, ret, ret->mode, ret->modeURI);
5457 xsltTransformError(NULL, cctxt->style, node,
5459 cctxt->style->errors++;
5468 item->next = cctxt->style->preComps;
5469 cctxt->style->preComps = (xsltElemPreCompPtr) item;
5544 if (xsltParseStylesheetInclude(cctxt->style, node) != 0) {
5545 cctxt->style->errors++;
5551 xsltStylePreCompute(cctxt->style, node);
5552 xsltParseGlobalParam(cctxt->style, node);
5555 xsltStylePreCompute(cctxt->style, node);
5556 xsltParseGlobalVariable(cctxt->style, node);
5559 xsltParseStylesheetAttributeSet(cctxt->style, node);
5562 xsltTransformError(NULL, cctxt->style, node,
5565 cctxt->style->errors++;
5613 xsltStylesheetPtr style;
5619 style = cctxt->style;
5697 xsltTransformError(NULL, cctxt->style, node,
5699 cctxt->style->errors++;
5702 xsltTransformError(NULL, cctxt->style, node,
5704 cctxt->style->warnings++;
5755 xsltTransformError(NULL, style, cur,
5758 style->errors++;
5760 xsltTransformError(NULL, style, cur, "Misplaced node.\n");
5761 style->errors++;
5808 xsltTransformError(NULL, style, cur,
5810 style->errors++;
5822 xsltTransformError(NULL, style, cur,
5824 style->errors++;
5850 xsltTransformError(NULL, style, cur,
5854 style->errors++;
5858 xsltParseStylesheetStripSpace(style, cur);
5861 xsltParseStylesheetPreserveSpace(style, cur);
5864 xsltParseStylesheetOutput(style, cur);
5867 xsltParseStylesheetKey(style, cur);
5870 xsltParseStylesheetDecimalFormat(style, cur);
5889 xsltTransformError(NULL, style, cur,
5892 style->warnings++;
5894 xsltTransformError(NULL, style, cur,
5896 style->errors++;
5913 function(style, cur);
5993 if (xsltParseStylesheetImport(cctxt->style, cur) != 0) {
5994 cctxt->style->errors++;
6022 xsltNamespaceAlias(cctxt->style, cur);
6046 * @style: the XSLT stylesheet
6052 xsltParseStylesheetTop(xsltStylesheetPtr style, xmlNodePtr top) {
6064 xsltTransformError(NULL, style, top,
6066 if (style != NULL) style->warnings++;
6070 xsltTransformError(NULL, style, top,
6072 if (style != NULL) {
6073 style->forwards_compatible = 1;
6074 style->warnings++;
6090 if (xsltParseStylesheetImport(style, cur) != 0)
6091 if (style != NULL) style->errors++;
6107 xsltTransformError(NULL, style, cur,
6110 if (style != NULL) style->errors++;
6118 if (style != NULL) style->errors++;
6128 function(style, cur);
6139 xsltTransformError(NULL, style, cur,
6141 if (style != NULL) style->errors++;
6143 if (xsltParseStylesheetInclude(style, cur) != 0)
6144 if (style != NULL) style->errors++;
6146 xsltParseStylesheetStripSpace(style, cur);
6148 xsltParseStylesheetPreserveSpace(style, cur);
6150 xsltParseStylesheetOutput(style, cur);
6152 xsltParseStylesheetKey(style, cur);
6154 xsltParseStylesheetDecimalFormat(style, cur);
6156 xsltParseStylesheetAttributeSet(style, cur);
6158 xsltParseGlobalVariable(style, cur);
6160 xsltParseGlobalParam(style, cur);
6165 xsltParseStylesheetTemplate(style, cur);
6167 xsltNamespaceAlias(style, cur);
6169 if ((style != NULL) && (style->forwards_compatible == 0)) {
6170 xsltTransformError(NULL, style, cur,
6173 if (style != NULL) style->errors++;
6177 xsltTransformError(NULL, style, cur,
6180 if (style != NULL) style->warnings++;
6197 * @style: the stylesheet (TODO: Change this to the compiler context)
6220 xsltTransformError(NULL, cctxt->style, node,
6223 cctxt->style->errors++;
6239 templ->next = cctxt->style->templates;
6240 cctxt->style->templates = templ;
6264 xsltAddTemplate(cctxt->style, templ, NULL, NULL);
6265 cctxt->style->literal_result = 1;
6302 * @style: the XSLT stylesheet (the current stylesheet-level)
6310 * Returns the value of the @style parameter if everything
6314 xsltParseStylesheetProcess(xsltStylesheetPtr style, xmlDocPtr doc)
6322 if ((style == NULL) || (doc == NULL))
6325 cctxt = XSLT_CCTXT(style);
6329 xsltTransformError(NULL, style, (xmlNodePtr) doc,
6343 style->literal_result = 0;
6346 style->literal_result = 1;
6353 if (! style->nopreproc)
6358 if (style->literal_result == 0) {
6368 return(style);
6383 * Returns the value of the @style parameter if everything
6562 cctxt->style = retStyle;
6582 oldCurSheet = cctxt->style;
6583 cctxt->style = retStyle;
6588 cctxt->style = oldCurSheet;