Fix for bug 366029 (xsl:copy doesn't instantiate its content as a template for children). r/sr=sicking.

This commit is contained in:
peterv%propagandism.org 2007-01-10 12:41:55 +00:00
parent f8e5d6319c
commit 7c04359c8a

View File

@ -359,6 +359,7 @@ txCopy::execute(txExecutionState& aEs)
switch (txXPathNodeUtils::getNodeType(node)) {
case txXPathNodeType::DOCUMENT_NODE:
case txXPathNodeType::DOCUMENT_FRAGMENT_NODE:
{
const nsAFlatString& empty = EmptyString();
@ -375,7 +376,7 @@ txCopy::execute(txExecutionState& aEs)
{
nsCOMPtr<nsIAtom> localName =
txXPathNodeUtils::getLocalName(node);
nsresult rv = aEs.mResultHandler->
rv = aEs.mResultHandler->
startElement(txXPathNodeUtils::getPrefix(node),
localName, nsnull,
txXPathNodeUtils::getNamespaceID(node));