Lines Matching refs:templ

2215     inode->templ = NULL;
4445 * @templ: the node containing the content to be parsed
4450 * elements as immediate children of @templ.
4457 xsltParseTemplateContent(xsltStylesheetPtr style, xmlNodePtr templ) {
4458 if ((style == NULL) || (templ == NULL))
4468 if (templ->children != NULL) {
4469 xmlNodePtr child = templ->children;
4498 * @templ: the container node (can be a document for literal results)
4505 xsltParseTemplateContent(xsltStylesheetPtr style, xmlNodePtr templ) {
4512 cur = templ->children;
4656 if (cur == templ) {
4679 cur = templ->children;
4808 xsltTemplatePtr templ;
4818 templ = xsltNewTemplate();
4819 if (templ == NULL)
4827 templ->next = cctxt->style->templates;
4828 cctxt->style->templates = templ;
4829 templ->style = cctxt->style;
4868 if (templ->inheritedNs == NULL) {
4869 templ->inheritedNs = (xmlNsPtr *) xmlMalloc(
4871 if (templ->inheritedNs == NULL) {
4877 memset(templ->inheritedNs, 0,
4880 templ->inheritedNs[templ->inheritedNsNr++] = ns;
4885 if (templ->inheritedNsNr != 0) {
4888 templ->inheritedNsNr);
4909 templ->mode = xmlDictLookup(cctxt->style->dict, prop, -1);
4912 if (xmlValidateNCName(templ->mode, 0)) {
4915 "of the value is not a valid NCName.\n", templ->name);
4920 templ->modeURI = xmlDictLookup(cctxt->style->dict, modeURI, -1);
4923 "xsltParseXSLTTemplate: mode %s\n", templ->mode);
4931 templ->match = prop;
4940 templ->priority = (float) priority;
4957 templ->name = xmlDictLookup(cctxt->style->dict, prop, -1);
4960 if (xmlValidateNCName(templ->name, 0)) {
4963 "the value is not a valid NCName.\n", templ->name);
4968 templ->nameURI = xmlDictLookup(cctxt->style->dict, nameURI, -1);
4969 curTempl = templ->next;
4971 if ((nameURI != NULL && xmlStrEqual(curTempl->name, templ->name) &&
4974 xmlStrEqual(curTempl->name, templ->name)))
4977 "xsl:template: error duplicate name '%s'\n", templ->name);
5003 templ->elem = templNode;
5004 templ->content = templNode->children;
5005 xsltAddTemplate(cctxt->style, templ, templ->mode, templ->modeURI);
5918 xsltTemplatePtr templ;
5944 templ = xsltNewTemplate();
5945 if (templ == NULL) {
5948 templ->next = cctxt->style->templates;
5949 cctxt->style->templates = templ;
5950 templ->match = xmlStrdup(BAD_CAST "/");
5971 templ->elem = (xmlNodePtr) doc;
5972 templ->content = node;
5973 xsltAddTemplate(cctxt->style, templ, NULL, NULL);