+Sat Aug 2 09:55:38 HKT 2003 William Brack <wbrack@mmm.com.hk>
+
+ Fixing bug 118561 (IRIX MIPSPro compiler warnings)
+ * transform.c, variables.c, xslt.c, xsltutils.c:
+ removed some unused variables
+
Thu Jul 31 20:33:12 HKT 2003 William Brack <wbrack@mmm.com.hk>
Fixing bug 118558 (Solaris 8 compiler warnings)
xmlNodePtr oldInsert;
xmlNodePtr oldCurrent = NULL;
xmlNodePtr oldInst = NULL;
- xmlAttrPtr attrs;
int oldBase;
xmlDocPtr tmpRVT = NULL;
* all the attributes are directly inherited
*/
if (cur->properties != NULL) {
- attrs = xsltAttrListTemplateProcess(ctxt, copy,
- cur->properties);
+ xsltAttrListTemplateProcess(ctxt, copy,
+ cur->properties);
}
/*
* Add extra namespaces inherited from the current template
xmlHashLookup2(ctxt->globalVars,
elem->name, elem->nameURI);
if (def == NULL) {
- int res;
def = xsltCopyStackElem(elem);
- res = xmlHashAddEntry2(ctxt->globalVars,
+ xmlHashAddEntry2(ctxt->globalVars,
elem->name, elem->nameURI, def);
} else if ((elem->comp != NULL) &&
(elem->comp->type == XSLT_FUNC_VARIABLE)) {
}
if (cur->type == XML_ELEMENT_NODE) {
int exclPrefixes;
- xmlChar *prefix;
exclPrefixes = xsltParseStylesheetExcludePrefix(style, cur);
if (IS_XSLT_ELEM(cur)) {
xsltStylePreCompute(style, cur);
if (IS_XSLT_NAME(cur, "text")) {
for (;exclPrefixes > 0;exclPrefixes--)
- prefix = exclPrefixPop(style);
+ exclPrefixPop(style);
goto skip_children;
}
}
if (exclPrefixes > 0) {
xsltPrecomputeStylesheet(style, cur->children);
for (;exclPrefixes > 0;exclPrefixes--)
- prefix = exclPrefixPop(style);
+ exclPrefixPop(style);
goto skip_children;
}
} else if (cur->type == XML_TEXT_NODE) {
xsltSaveResultTo(xmlOutputBufferPtr buf, xmlDocPtr result,
xsltStylesheetPtr style) {
const xmlChar *encoding;
- xmlNodePtr root;
int base;
const xmlChar *method;
int indent;
if ((method == NULL) && (result->type == XML_HTML_DOCUMENT_NODE))
method = (const xmlChar *) "html";
- if (method == NULL)
- root = xmlDocGetRootElement(result);
- else
- root = NULL;
-
if ((method != NULL) &&
(xmlStrEqual(method, (const xmlChar *) "html"))) {
if (encoding != NULL) {
} else {
int omitXmlDecl;
int standalone;
- const xmlChar *version;
XSLT_GET_IMPORT_INT(omitXmlDecl, style, omitXmlDeclaration);
XSLT_GET_IMPORT_INT(standalone, style, standalone);
- XSLT_GET_IMPORT_PTR(version, style, version)
if (omitXmlDecl != 1) {
xmlOutputBufferWriteString(buf, "<?xml version=");
xsltStylesheetPtr style;
xsltTemplatePtr *templates;
xsltTemplatePtr templ;
- int nb = 0, max = 0, i, j, total, totalt;
+ int nb = 0, max = 0, i, j;
if (!ctxt)
return NULL;
root = xmlNewDocNode(ret, NULL, BAD_CAST "profile", NULL);
xmlDocSetRootElement(ret, root);
- total = 0;
- totalt = 0;
for (i = 0; i < nb; i++) {
child = xmlNewChild(root, NULL, BAD_CAST "template", NULL);
sprintf(buf, "%d", i + 1);