fix for bug 97581, <xsl:variable name="foo" /> needs to be "", r=peterv, sr=jst, a=dbaron

This commit is contained in:
axel%pike.org 2001-08-31 08:55:04 +00:00
parent e7d8a18ab8
commit d01c24b0aa

View File

@ -1754,7 +1754,7 @@ ExprResult* XSLTProcessor::processVariable
Expr* expr = ps->getExpr(attr->getValue());
return expr->evaluate(node, ps);
}
else {
else if (xslVariable->hasChildNodes()) {
Document* resultTree = ps->getResultDocument();
NodeStack* nodeStack = ps->getNodeStack();
nodeStack->push(resultTree->createDocumentFragment());
@ -1765,6 +1765,9 @@ ExprResult* XSLTProcessor::processVariable
nodeSet->add(node);
return nodeSet;
}
else {
return new StringResult("");
}
} //-- processVariable
/**