+Fri Jul 6 14:30:00 HKT 2001 William Brack <wbrack@mmm.com.hk>
+
+ * cleaned up many comments and error messages
+
Fri Jul 6 01:43:51 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* configure.in libxslt/xsltwin32config.h: released 0.14.0
while (old != NULL) {
/*
- * Check taht the attribute is not yet in the list
+ * Check that the attribute is not yet in the list
*/
cur = list;
add = 1;
while (cur != NULL) {
if (cur->attr == old->attr) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:attribute-set : use-attribute-sets recursion detected\n");
+ "xsl:attribute-set : use-attribute-sets recursion detected\n");
return(list);
}
if (xmlStrEqual(cur->attr->name, old->attr->name)) {
prop = xsltGetNsProp(cur, (const xmlChar *)"name", XSLT_NAMESPACE);
if (prop == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:attribute-set : name is missing\n");
+ "xsl:attribute-set : name is missing\n");
goto error;
}
if (IS_XSLT_ELEM(list)) {
if (!IS_XSLT_NAME(list, "attribute")) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:attribute-set : unexpected child xsl:%s\n",
+ "xsl:attribute-set : unexpected child xsl:%s\n",
list->name);
} else {
#ifdef WITH_XSLT_DEBUG_ATTRIBUTES
}
} else {
xsltGenericError(xsltGenericErrorContext,
- "xslt:attribute-set : unexpected child %s\n", list->name);
+ "xsl:attribute-set : unexpected child %s\n", list->name);
}
list = list->next;
}
xsltAttrElemPtr values2;
#ifdef WITH_XSLT_DEBUG_ATTRIBUTES
xsltGenericDebug(xsltGenericDebugContext,
- "xslt:attribute-set : %s adds use %s\n", ncname, attribute);
+ "xsl:attribute-set : %s adds use %s\n", ncname, attribute);
#endif
ncname2 = xmlSplitQName2(attribute, &prefix2);
if (ncname2 == NULL) {
nsURI = xmlXPathNsLookup(ctxt->context, prefix);
if (nsURI == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "system-property(): prefix %s is not bound\n", prefix);
+ "system-property() : prefix %s is not bound\n", prefix);
}
}
}
if ((ctxt->value == NULL) || (ctxt->value->type != XPATH_STRING)) {
xsltGenericError(xsltGenericErrorContext,
- "element-available invalid arg expecting a string\n");
+ "element-available() : invalid arg expecting a string\n");
ctxt->error = XPATH_INVALID_TYPE;
return;
}
}
if ((ctxt->value == NULL) || (ctxt->value->type != XPATH_STRING)) {
xsltGenericError(xsltGenericErrorContext,
- "function-available invalid arg expecting a string\n");
+ "function-available() : invalid arg expecting a string\n");
ctxt->error = XPATH_INVALID_TYPE;
return;
}
nsURI = xmlXPathNsLookup(ctxt->context, prefix);
if (nsURI == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "function-available(): prefix %s is not bound\n", prefix);
+ "function-available() : prefix %s is not bound\n", prefix);
}
}
if (nargs != 0) {
xsltGenericError(xsltGenericErrorContext,
- "document() : function uses no argument\n");
+ "current() : function uses no argument\n");
ctxt->error = XPATH_INVALID_ARITY;
return;
}
key->comp = xmlXPathCompile(pattern);
if (key->comp == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:key : XPath pattern compilation failed '%s'\n",
+ "xsl:key : XPath pattern compilation failed '%s'\n",
pattern);
style->errors++;
}
key->usecomp = xmlXPathCompile(use);
if (key->usecomp == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:key : XPath pattern compilation failed '%s'\n",
+ "xsl:key : XPath pattern compilation failed '%s'\n",
use);
style->errors++;
}
xmlChar *value2) {
if (comp->nbStep >= 20) {
xsltGenericError(xsltGenericErrorContext,
- "xsltCompMatchAddOp: overflow\n");
+ "xsltCompMatchAdd: overflow\n");
return(-1);
}
comp->steps[comp->nbStep].op = op;
len++;
if (len >= XML_MAX_NAMELEN) {
xmlGenericError(xmlGenericErrorContext,
- "xmlScanName: reached XML_MAX_NAMELEN limit\n");
+ "xsltScanName: reached XML_MAX_NAMELEN limit\n");
while ((IS_LETTER(NXT(len))) || (IS_DIGIT(NXT(len))) ||
(NXT(len) == '.') || (NXT(len) == '-') ||
(NXT(len) == '_') || (NXT(len) == ':') ||
len++;
if (len >= XML_MAX_NAMELEN) {
xmlGenericError(xmlGenericErrorContext,
- "xmlScanNCName: reached XML_MAX_NAMELEN limit\n");
+ "xsltScanNCName: reached XML_MAX_NAMELEN limit\n");
while ((IS_LETTER(NXT(len))) || (IS_DIGIT(NXT(len))) ||
(NXT(len) == '.') || (NXT(len) == '-') ||
(NXT(len) == '_') ||
/*
* xsltCompileIdKeyPattern:
- * @comp: the compilation context
+ * @ctxt: the compilation context
* @name: a preparsed name
* @aid: whether id/key are allowed there
*
/**
* xsltCompileStepPattern:
- * @comp: the compilation context
+ * @ctxt: the compilation context
* @token: a posible precompiled name
*
* Compile the XSLT StepPattern and generates a precompiled
ns = xmlSearchNs(ctxt->doc, ctxt->elem, prefix);
if (ns == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xsl: pattern, no namespace bound to prefix %s\n",
+ "xsltCompileStepPattern : no namespace bound to prefix %s\n",
prefix);
} else {
URL = xmlStrdup(ns->href);
/**
* xsltCompileLocationPathPattern:
- * @comp: the compilation context
+ * @ctxt: the compilation context
*
* Compile the XSLT LocationPathPattern and generates a precompiled
* form suitable for fast matching.
/**
* xsltGetTemplate:
* @ctxt: a XSLT process context
- * @mode: the mode
+ * @node: the node being processed
* @style: the current style
*
* Finds the template applying to this node, if @style is non-NULL
- * it means one need to look for the next imported template in scope.
+ * it means one needs to look for the next imported template in scope.
*
* Returns the xsltTemplatePtr or NULL if not found
*/
} else if (!xmlStrEqual(prop,
(const xmlChar *)"no")){
xsltGenericError(xsltGenericErrorContext,
-"xslt:text: disable-output-escaping allow only yes or no\n");
+"xsl:text: disable-output-escaping allows only yes or no\n");
style->warnings++;
}
xmlFree(prop);
XSLT_NAMESPACE);
if (comp->select == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:copy-of : select is missing\n");
+ "xsl:copy-of : select is missing\n");
style->errors++;
return;
}
comp->comp = xmlXPathCompile(comp->select);
if (comp->comp == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:copy-of : could not compile select expression '%s'\n",
+ "xsl:copy-of : could not compile select expression '%s'\n",
comp->select);
style->errors++;
}
} else if (!xmlStrEqual(prop,
(const xmlChar *)"no")){
xsltGenericError(xsltGenericErrorContext,
-"value-of: disable-output-escaping allow only yes or no\n");
+"xsl:value-of : disable-output-escaping allows only yes or no\n");
style->warnings++;
}
xmlFree(prop);
XSLT_NAMESPACE);
if (comp->select == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:value-of : select is missing\n");
+ "xsl:value-of : select is missing\n");
style->errors++;
return;
}
comp->comp = xmlXPathCompile(comp->select);
if (comp->comp == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:value-of : could not compile select expression '%s'\n",
+ "xsl:value-of : could not compile select expression '%s'\n",
comp->select);
style->errors++;
}
prop = xsltGetNsProp(inst, (const xmlChar *)"name", XSLT_NAMESPACE);
if (prop == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:with-param : name is missing\n");
+ "xsl:with-param : name is missing\n");
style->errors++;
} else {
const xmlChar *URI;
comp->comp = xmlXPathCompile(comp->select);
if (comp->comp == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:param : could not compile select expression '%s'\n",
+ "xsl:param : could not compile select expression '%s'\n",
comp->select);
style->errors++;
}
prop = xsltGetNsProp(inst, (const xmlChar *)"name", XSLT_NAMESPACE);
if (prop == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:call-template : name is missing\n");
+ "xsl:call-template : name is missing\n");
style->errors++;
} else {
const xmlChar *URI;
comp->comp = xmlXPathCompile(comp->select);
if (comp->comp == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:apply-templates : could not compile select expression '%s'\n",
+ "xsl:apply-templates : could not compile select expression '%s'\n",
comp->select);
style->errors++;
}
comp->test = xsltGetNsProp(inst, (const xmlChar *)"test", XSLT_NAMESPACE);
if (comp->test == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:if : test is not defined\n");
+ "xsl:if : test is not defined\n");
style->errors++;
return;
}
comp->comp = xmlXPathCompile(comp->test);
if (comp->comp == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:if : could not compile test expression '%s'\n",
+ "xsl:if : could not compile test expression '%s'\n",
comp->test);
style->errors++;
}
XSLT_NAMESPACE);
if (comp->select == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:for-each : select is missing\n");
+ "xsl:for-each : select is missing\n");
style->errors++;
} else {
comp->comp = xmlXPathCompile(comp->select);
if (comp->comp == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:for-each : could not compile select expression '%s'\n",
+ "xsl:for-each : could not compile select expression '%s'\n",
comp->select);
style->errors++;
}
prop = xsltGetNsProp(inst, (const xmlChar *)"name", XSLT_NAMESPACE);
if (prop == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:variable : name is missing\n");
+ "xsl:variable : name is missing\n");
style->errors++;
} else {
const xmlChar *URI;
comp->comp = xmlXPathCompile(comp->select);
if (comp->comp == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:variable : could not compile select expression '%s'\n",
+ "xsl:variable : could not compile select expression '%s'\n",
comp->select);
style->errors++;
}
prop = xsltGetNsProp(inst, (const xmlChar *)"name", XSLT_NAMESPACE);
if (prop == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:param : name is missing\n");
+ "xsl:param : name is missing\n");
style->errors++;
} else {
const xmlChar *URI;
comp->comp = xmlXPathCompile(comp->select);
if (comp->comp == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:param : could not compile select expression '%s'\n",
+ "xsl:param : could not compile select expression '%s'\n",
comp->select);
style->errors++;
}
xsltDocumentComp(style, inst);
} else {
xsltGenericError(xsltGenericDebugContext,
- "xsltStylePreCompute: unknown xslt:%s\n", inst->name);
+ "xsltStylePreCompute: unknown xsl:%s\n", inst->name);
style->warnings++;
}
/*
* @ctxt: the XSLT transformation context
* @comp: the XPath compiled expression
* @nsList: the namespaces in scope
- * @int nsNr: the number of namespaces in scope
+ * @nsNr: the number of namespaces in scope
*
* Process the expression using XPath and evaluate the result as
* an XPath predicate
res->stringval = NULL;
} else {
xsltGenericError(xsltGenericErrorContext,
- "xpath : string() function didn't returned a String\n");
+ "xpath : string() function didn't return a String\n");
}
xmlXPathFreeObject(res);
}
ret = xsltAttrTemplateValueProcess(ctxt, expr);
#ifdef WITH_XSLT_DEBUG_TEMPLATES
xsltGenericDebug(xsltGenericDebugContext,
- "xsltEvalXPathString: %s returns %s\n", expr, ret);
+ "xsltEvalAttrValueTemplate: %s returns %s\n", expr, ret);
#endif
if (expr != NULL)
xmlFree(expr);
* @style: the XSLT stylesheet
* @node: the stylesheet node
* @name: the attribute Name
- * @name: the attribute namespace URI
+ * @ns: the attribute namespace URI
* @found: indicator whether the attribute is present
*
* Check if an attribute value template has a static value, i.e. the
* xsltCopyText:
* @ctxt: a XSLT process context
* @target: the element where the text will be attached
- * @text: the text or CDATA node
+ * @cur: the text or CDATA node
*
* Do a copy of a text node
*
goto error;
} else if (xmlStrEqual(method, (const xmlChar *) "xhtml")) {
xsltGenericError(xsltGenericErrorContext,
- "xsltApplyStylesheet: unsupported method xhtml, using html\n",
+ "xsltDocumentElem: unsupported method xhtml, using html\n",
style->method);
ctxt->type = XSLT_OUTPUT_HTML;
res = htmlNewDoc(doctypeSystem, doctypePublic);
goto error;
} else {
xsltGenericError(xsltGenericErrorContext,
- "xsltApplyStylesheet: unsupported method %s\n",
+ "xsltDocumentElem: unsupported method %s\n",
style->method);
goto error;
}
#ifdef WITH_XSLT_DEBUG_PROCESS
if (node->type == XML_CDATA_SECTION_NODE)
xsltGenericDebug(xsltGenericDebugContext,
- "xsl:copy: CDATA text %s\n", node->content);
+ "xsltCopy: CDATA text %s\n", node->content);
else
xsltGenericDebug(xsltGenericDebugContext,
- "xsl:copy: text %s\n", node->content);
+ "xsltCopy: text %s\n", node->content);
#endif
xsltCopyText(ctxt, ctxt->insert, node);
break;
case XML_ELEMENT_NODE:
#ifdef WITH_XSLT_DEBUG_PROCESS
xsltGenericDebug(xsltGenericDebugContext,
- "xsl:copy: node %s\n", node->name);
+ "xsltCopy: node %s\n", node->name);
#endif
copy = xsltCopyNode(ctxt, node, ctxt->insert);
ctxt->insert = copy;
case XML_ATTRIBUTE_NODE: {
#ifdef WITH_XSLT_DEBUG_PROCESS
xsltGenericDebug(xsltGenericDebugContext,
- "xsl:copy: attribute %s\n", node->name);
+ "xsltCopy: attribute %s\n", node->name);
#endif
if (ctxt->insert->type == XML_ELEMENT_NODE) {
xmlAttrPtr attr = (xmlAttrPtr) node, ret = NULL, cur;
case XML_PI_NODE:
#ifdef WITH_XSLT_DEBUG_PROCESS
xsltGenericDebug(xsltGenericDebugContext,
- "xsl:copy: PI %s\n", node->name);
+ "xsltCopy: PI %s\n", node->name);
#endif
copy = xmlNewPI(node->name, node->content);
xmlAddChild(ctxt->insert, copy);
case XML_COMMENT_NODE:
#ifdef WITH_XSLT_DEBUG_PROCESS
xsltGenericDebug(xsltGenericDebugContext,
- "xsl:copy: comment\n");
+ "xsltCopy: comment\n");
#endif
copy = xmlNewComment(node->content);
xmlAddChild(ctxt->insert, copy);
if (!xmlStrncasecmp(prefix, (xmlChar *)"xml", 3)) {
#ifdef WITH_XSLT_DEBUG_PARSING
xsltGenericDebug(xsltGenericDebugContext,
- "xsl:element : xml prefix forbidden\n");
+ "xsltElement: xml prefix forbidden\n");
#endif
goto error;
}
if (!xmlStrncasecmp(prefix, (xmlChar *)"xml", 3)) {
#ifdef WITH_XSLT_DEBUG_PARSING
xsltGenericDebug(xsltGenericDebugContext,
- "xsl:attribute : xml prefix forbidden\n");
+ "xsltAttribute: xml prefix forbidden\n");
#endif
goto error;
}
#ifdef WITH_XSLT_DEBUG_PROCESS
if (value == NULL)
xsltGenericDebug(xsltGenericDebugContext,
- "xsl:comment: empty\n");
+ "xsltComment: empty\n");
else
xsltGenericDebug(xsltGenericDebugContext,
- "xsl:comment: content %s\n", value);
+ "xsltComment: content %s\n", value);
#endif
comment = xmlNewComment(value);
#ifdef WITH_XSLT_DEBUG_PROCESS
if (value == NULL)
xsltGenericDebug(xsltGenericDebugContext,
- "xsl:processing-instruction: %s empty\n", ncname);
+ "xsltProcessingInstruction: %s empty\n", ncname);
else
xsltGenericDebug(xsltGenericDebugContext,
- "xsl:processing-instruction: %s content %s\n", ncname, value);
+ "xsltProcessingInstruction: %s content %s\n", ncname, value);
#endif
pi = xmlNewPI(name, value);
if ((wcomp == NULL) || (wcomp->test == NULL) || (wcomp->comp == NULL)) {
xsltGenericError(xsltGenericErrorContext,
- "xsl:when: compilation failed !\n");
+ "xsl:choose: compilation failed !\n");
goto error;
}
when = replacement;
#ifdef WITH_XSLT_DEBUG_PROCESS
xsltGenericDebug(xsltGenericDebugContext,
- "xsl:when: test %s\n", wcomp->test);
+ "xsltChoose: test %s\n", wcomp->test);
#endif
oldProximityPosition = ctxt->xpathCtxt->proximityPosition;
else {
#ifdef WITH_XSLT_DEBUG_PROCESS
xsltGenericDebug(xsltGenericDebugContext,
- "xsl:when: test didn't evaluate to a boolean\n");
+ "xsltChoose: test didn't evaluate to a boolean\n");
#endif
goto error;
}
#ifdef WITH_XSLT_DEBUG_PROCESS
xsltGenericDebug(xsltGenericDebugContext,
- "xsl:when: test evaluate to %d\n", doit);
+ "xsltChoose: test evaluate to %d\n", doit);
#endif
if (doit) {
varsPush(ctxt, NULL);
while (IS_XSLT_ELEM(replacement) && (IS_XSLT_NAME(replacement, "sort"))) {
if (nbsorts >= XSLT_MAX_SORT) {
xsltGenericError(xsltGenericDebugContext,
- "xsl:for-each: too many sort\n");
+ "xsl:for-each: too many sorts\n");
} else {
sorts[nbsorts++] = replacement;
}
goto error;
} else if (xmlStrEqual(method, (const xmlChar *) "xhtml")) {
xsltGenericError(xsltGenericErrorContext,
- "xsltApplyStylesheet: unsupported method xhtml, using html\n",
+ "xsltApplyStylesheetInternal: unsupported method xhtml, using html\n",
style->method);
ctxt->type = XSLT_OUTPUT_HTML;
res = htmlNewDoc(doctypeSystem, doctypePublic);
goto error;
} else {
xsltGenericError(xsltGenericErrorContext,
- "xsltApplyStylesheet: unsupported method %s\n",
+ "xsltApplyStylesheetInternal: unsupported method %s\n",
style->method);
goto error;
}
cur = (xsltStackElemPtr) xmlMalloc(sizeof(xsltStackElem));
if (cur == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xsltNewStackElem : malloc failed\n");
+ "xsltCopyStackElem : malloc failed\n");
return(NULL);
}
cur->name = xmlStrdup(elem->name);
* xsltEvalVariable:
* @ctxt: the XSLT transformation context
* @elem: the variable or parameter.
+ * @precomp: pointer to precompiled data
*
* Evaluate a variable value.
*
/**
* xsltEvalGlobalVariable:
- * @ctxt: the XSLT transformation context
* @elem: the variable or parameter.
+ * @ctxt: the XSLT transformation context
*
* Evaluate a global variable value.
*
* @ctxt: the XSLT transformation context
* @params: a NULL terminated arry of parameters names/values tuples
*
- * Evaluate the global variables of a stylesheet. This need to be
+ * Evaluate the global variables of a stylesheet. This needs to be
* done on parsed stylesheets before starting to apply transformations
*
* Returns 0 in case of success, -1 in case of error
/**
* xsltRegisterVariable:
* @ctxt: the XSLT transformation context
- * @name: the variable name
- * @ns_uri: the variable namespace URI
- * @select: the expression which need to be evaluated to generate a value
+ * @comp: pointer to precompiled data
* @tree: the tree if select is NULL
* @param: this is a parameter actually
*
comp = (xsltStylePreCompPtr) cur->_private;
if (comp == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xsl:variable : compilation had failed\n");
+ "xsl:variable : compilation failed\n");
return;
}
comp = (xsltStylePreCompPtr) cur->_private;
if (comp == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xsl:param : compilation had failed\n");
+ "xsl:param : compilation failed\n");
return;
}
comp = (xsltStylePreCompPtr) cur->_private;
if (comp == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xsl:variable : compilation had failed\n");
+ "xsl:variable : compilation failed\n");
return;
}
comp = (xsltStylePreCompPtr) cur->_private;
if (comp == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xsl:param : compilation had failed\n");
+ "xsl:param : compilation failed\n");
return;
}
/**
* xsltParseStylesheetOutput:
* @style: the XSLT stylesheet
- * @template: the "output" element
+ * @cur: the "output" element
*
* parse an XSLT stylesheet output element and record
* information related to the stylesheet output
/**
* xsltParseStylesheetPreserveSpace:
* @style: the XSLT stylesheet
- * @template: the "preserve-space" element
+ * @cur: the "preserve-space" element
*
* parse an XSLT stylesheet preserve-space element and record
* elements needing preserving
/**
* xsltParseStylesheetStripSpace:
* @style: the XSLT stylesheet
- * @template: the "strip-space" element
+ * @cur: the "strip-space" element
*
* parse an XSLT stylesheet strip-space element and record
* elements needing stripping
ns = xmlSearchNs(style->doc, cur, prefix);
if (ns == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xsl:extension-element-prefix : undefined namespace %s\n",
+ "xsl:exclude-result-prefixes : undefined namespace %s\n",
prefix);
style->warnings++;
} else {
#ifdef WITH_XSLT_DEBUG_PARSING
xsltGenericDebug(xsltGenericDebugContext,
- "add extension prefix %s\n", prefix);
+ "exclude result prefix %s\n", prefix);
#endif
exclPrefixPush(style, (xmlChar *) ns->href);
nb++;
* xsltGatherNamespaces:
* @style: the XSLT stylesheet
*
- * Browse the stylesheet and buit the namspace hash table which
+ * Browse the stylesheet and build the namspace hash table which
* will be used for XPath interpretation. If needed do a bit of normalization
*/
} else if (!xmlStrEqual(prop,
(const xmlChar *)"no")){
xsltGenericError(xsltGenericErrorContext,
- "xslt:text: disable-output-escaping allow only yes or no\n");
+ "xsl:text: disable-output-escaping allows only yes or no\n");
style->warnings++;
}
if (delete != NULL) {
#ifdef WITH_XSLT_DEBUG_PARSING
xsltGenericDebug(xsltGenericDebugContext,
- "xsltParseStylesheetTemplate: removing text\n");
+ "xsltParseTemplateContent: removing text\n");
#endif
xmlUnlinkNode(delete);
xmlFreeNode(delete);
}
/*
- * Browse the remaining of the template
+ * Browse the remainder of the template
*/
while (cur != NULL) {
if ((IS_XSLT_ELEM(cur)) && (IS_XSLT_NAME(cur, "param"))) {
cur = cur->next;
xsltGenericError(xsltGenericErrorContext,
- "xsltParseStylesheetTop: ignoring misplaced param element\n");
+ "xsltParseTemplateContent: ignoring misplaced param element\n");
style->warnings++;
xmlUnlinkNode(param);
xmlFreeNode(param);
}
#ifdef WITH_XSLT_DEBUG_PARSING
xsltGenericDebug(xsltGenericDebugContext,
- "xslt:key: name %s\n", name);
+ "xsltParseStylesheetKey: name %s\n", name);
#endif
} else {
xsltGenericError(xsltGenericErrorContext,
}
#ifdef WITH_XSLT_DEBUG_PARSING
xsltGenericDebug(xsltGenericDebugContext,
- "xslt:template: mode %s\n", mode);
+ "xsltParseStylesheetTemplate: mode %s\n", mode);
#endif
} else {
mode = NULL;
* Function to reset the handler and the error context for out of
* context error messages.
* This simply means that @handler will be called for subsequent
- * error messages while not parsing nor validating. And @ctx will
+ * error messages while not parsing or validating. And @ctx will
* be passed as first argument to @handler
* One can simply force messages to be emitted to another FILE * than
* stderr by setting @ctx to this file handle and @handler to NULL.
* @node: the node holding the QName
* @name: pointer to the initial QName value
*
- * This function analyze @name, if the name contains a prefix,
+ * This function analyzes @name, if the name contains a prefix,
* the function seaches the associated namespace in scope for it.
* It will also replace @name value with the NCName, the old value being
* freed.
/*
* we are not trying to validate but just to cut, and yes it will
- * work even if this is as set of UTF-8 encoded chars
+ * work even if this is a set of UTF-8 encoded chars
*/
while ((qname[len] != 0) && (qname[len] != ':'))
len++;
* xsltComputeSortResult:
* @ctxt: a XSLT process context
* @sorts: array of sort nodes
- * @nbsorts: the number of sorts in the array
*
* reorder the current node list accordingly to the set of sorting
- * requirement provided by the arry of nodes.
+ * requirement provided by the array of nodes.
*/
static xmlXPathObjectPtr *
xsltComputeSortResult(xsltTransformContextPtr ctxt, xmlNodePtr sort) {
comp = sort->_private;
if (comp == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xslt:sort : compilation had failed\n");
+ "xslt:sort : compilation failed\n");
return(NULL);
}
results = xmlMalloc(len * sizeof(xmlXPathObjectPtr));
if (results == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "xsltSort: memory allocation failure\n");
+ "xsltComputeSortResult: memory allocation failure\n");
return(NULL);
}
} else {
#ifdef WITH_XSLT_DEBUG_PROCESS
xsltGenericDebug(xsltGenericDebugContext,
- "xsltSort: select didn't evaluate to a number\n");
+ "xsltComputeSortResult: select didn't evaluate to a number\n");
#endif
results[i] = NULL;
}
} else {
#ifdef WITH_XSLT_DEBUG_PROCESS
xsltGenericDebug(xsltGenericDebugContext,
- "xsltSort: select didn't evaluate to a string\n");
+ "xsltComputeSortResult: select didn't evaluate to a string\n");
#endif
results[i] = NULL;
}
* to an open FILE * I/O.
* This does not close the FILE @file
*
- * Returns the number of byte written or -1 in case of failure.
+ * Returns the number of bytes written or -1 in case of failure.
*/
int
xsltSaveResultToFile(FILE *file, xmlDocPtr result, xsltStylesheetPtr style) {
* to an open file descriptor
* This does not close the descriptor.
*
- * Returns the number of byte written or -1 in case of failure.
+ * Returns the number of bytes written or -1 in case of failure.
*/
int
xsltSaveResultToFd(int fd, xmlDocPtr result, xsltStylesheetPtr style) {