Lines Matching defs:template

380  * @template:  an XSLT template
382 * Free up the memory allocated by @template
385 xsltFreeTemplate(xsltTemplatePtr template) {
386 if (template == NULL)
388 if (template->match) xmlFree(template->match);
391 * if (template->name) xmlFree(template->name);
392 * if (template->nameURI) xmlFree(template->nameURI);
395 if (template->mode) xmlFree(template->mode);
396 if (template->modeURI) xmlFree(template->modeURI);
398 if (template->inheritedNs) xmlFree(template->inheritedNs);
399 memset(template, -1, sizeof(xsltTemplate));
400 xmlFree(template);
405 * @template: an XSLT template list
407 * Free up the memory allocated by all the elements of @template
410 xsltFreeTemplateList(xsltTemplatePtr template) {
413 while (template != NULL) {
414 cur = template;
415 template = template->next;
1001 * @template: the template
1006 * template inheritedNs list with it.
1012 xsltTemplatePtr template,
1031 if ((style == NULL) || (template == NULL) || (node == NULL) ||
1032 (template->inheritedNsNr != 0) || (template->inheritedNs != NULL))
1097 "template has %d inherited namespaces\n", nbns);
1099 template->inheritedNsNr = nbns;
1100 template->inheritedNs = ret;
1493 * @template: the "extension-element-prefixes" prefix
2901 * xsl:call-template,
2935 xmlStrEqual(name, BAD_CAST "call-template"))
3530 else if (IS_XSLT_NAME(node, "call-template"))
3598 else if (IS_XSLT_NAME(node, "template"))
3669 /* <!-- Content: template --> */
3678 /* <!-- Content: template --> */
3681 /* <!-- Content: template --> */
3687 /* ?? template ?? */
3690 /* <!-- Content: template --> */
3693 /* <!-- Content: template --> */
3696 /* <!-- Content: (xsl:sort*, template) --> */
3699 /* <!-- Content: template --> */
3702 /* <!-- Content: template --> */
3705 /* <!-- Content: template --> */
3711 /* <!-- Content: template --> */
3714 /* <!-- Content: template --> */
3726 /* <!-- Content: template --> */
3729 /* <!-- Content: template --> */
3732 /* <!-- Content: template --> */
3895 /* <!-- Content: (xsl:sort*, template) --> */
4046 * Parses a "template" content (or "sequence constructor" in XSLT 2.0 terms).
4070 * This is the content reffered to as a "template".
4076 * <!-- Content: template -->
4078 * NOTE that in XSLT-2 the term "template" was abandoned due to
4079 * confusion with xsl:template and the term "sequence constructor"
4083 * xsl:apply-templates, xsl:call-template, xsl:apply-imports,
4328 * parse the content assuming that it's a "template"
4416 * Parse the content, which is defined to be a "template"
4447 * Parses and compiles the content-model of an xsl:template element.
4448 * Note that this is *not* the "template" (or "sequence constructor"
4472 * immediate children of xsl:template (well, and of any
4500 * parse a template content-model
4501 * Clean-up the template content from unwanted ignorable blank nodes
4621 * template exectution, precompile AVT if found.
4687 * Browse the remainder of the template
4796 * @template: the "template" element
4798 * parse an XSLT stylesheet template building the associated structures
4887 "xsl:template has %d inherited namespaces\n",
4914 "xsl:template: Attribute 'mode': The local part '%s' "
4962 "xsl:template: Attribute 'name': The local part '%s' of "
4977 "xsl:template: error duplicate name '%s'\n", templ->name);
4990 * will additionally become part of the "template".
4994 * <xsl:template ...xml:space="preserve">
5017 * @template: the "template" element
5019 * parse an XSLT stylesheet template building the associated structures
5023 xsltParseStylesheetTemplate(xsltStylesheetPtr style, xmlNodePtr template) {
5030 if (template == NULL)
5050 xsltGetInheritedNsList(style, ret, template);
5055 prop = xmlGetNsProp(template, (const xmlChar *)"mode", NULL);
5059 URI = xsltGetQNameURI(template, &prop);
5077 prop = xmlGetNsProp(template, (const xmlChar *)"match", NULL);
5083 prop = xmlGetNsProp(template, (const xmlChar *)"priority", NULL);
5090 prop = xmlGetNsProp(template, (const xmlChar *)"name", NULL);
5095 URI = xsltGetQNameURI(template, &prop);
5101 xsltTransformError(NULL, style, template,
5102 "xsl:template : error invalid name '%s'\n", prop);
5119 xsltTransformError(NULL, style, template,
5120 "xsl:template: error duplicate name '%s'\n", ret->name);
5132 xsltParseTemplateContent(style, template);
5133 ret->elem = template;
5134 ret->content = template->children;
5450 * xsl:template (last, QName, pattern)
5537 if (IS_XSLT_NAME(cur, "template")) {
5542 * TODO: Is the position of xsl:template in the
5865 } else if (IS_XSLT_NAME(cur, "template")) {
5942 * Create and link the template
6115 xsltTemplatePtr template;
6118 * the document itself might be the template, check xsl:version
6141 * Create and link the template
6143 template = xsltNewTemplate();
6144 if (template == NULL) {
6147 template->next = ret->templates;
6148 ret->templates = template;
6149 template->match = xmlStrdup((const xmlChar *)"/");
6155 template->elem = (xmlNodePtr) doc;
6156 template->content = doc->children;
6157 xsltAddTemplate(ret, template, NULL, NULL);