Lines Matching defs:templ

2356     inode->templ = NULL;
4770 * @templ: the node containing the content to be parsed
4775 * elements as immediate children of @templ.
4782 xsltParseTemplateContent(xsltStylesheetPtr style, xmlNodePtr templ) {
4783 if ((style == NULL) || (templ == NULL))
4793 if (templ->children != NULL) {
4794 xmlNodePtr child = templ->children;
4823 * @templ: the container node (can be a document for literal results)
4830 xsltParseTemplateContent(xsltStylesheetPtr style, xmlNodePtr templ) {
4837 cur = templ->children;
4982 if (cur == templ) {
5005 cur = templ->children;
5137 xsltTemplatePtr templ;
5147 templ = xsltNewTemplate();
5148 if (templ == NULL)
5156 templ->next = cctxt->style->templates;
5157 cctxt->style->templates = templ;
5158 templ->style = cctxt->style;
5178 templ->mode = xmlDictLookup(cctxt->style->dict, prop, -1);
5181 if (xmlValidateNCName(templ->mode, 0)) {
5184 "of the value is not a valid NCName.\n", templ->name);
5189 templ->modeURI = xmlDictLookup(cctxt->style->dict, modeURI, -1);
5192 "xsltParseXSLTTemplate: mode %s\n", templ->mode);
5200 templ->match = prop;
5209 templ->priority = (float) priority;
5229 templ->name = xmlDictLookup(cctxt->style->dict, prop, -1);
5232 if (xmlValidateNCName(templ->name, 0)) {
5235 "the value is not a valid NCName.\n", templ->name);
5240 templ->nameURI = xmlDictLookup(cctxt->style->dict, nameURI, -1);
5241 curTempl = templ->next;
5243 if ((nameURI != NULL && xmlStrEqual(curTempl->name, templ->name) &&
5246 xmlStrEqual(curTempl->name, templ->name)))
5249 "xsl:template: error duplicate name '%s'\n", templ->name);
5275 templ->elem = templNode;
5276 templ->content = templNode->children;
5277 xsltAddTemplate(cctxt->style, templ, templ->mode, templ->modeURI);
6195 xsltTemplatePtr templ;
6221 templ = xsltNewTemplate();
6222 if (templ == NULL) {
6225 templ->next = cctxt->style->templates;
6226 cctxt->style->templates = templ;
6227 templ->match = xmlStrdup(BAD_CAST "/");
6248 templ->elem = (xmlNodePtr) doc;
6249 templ->content = node;
6250 xsltAddTemplate(cctxt->style, templ, NULL, NULL);