Fix for bug 81414 (transformiix standalone won't build, MOZ_XSL->!TX_EXE). Code by Axel Hecht, r=peterv/cls, sr=scc, a=dbaron.
git-svn-id: svn://10.0.0.236/trunk@96817 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -21,13 +21,12 @@
|
||||
* Keith Visco
|
||||
* -- original author.
|
||||
*
|
||||
* $Id: XMLDOMUtils.cpp,v 1.15 2001-06-10 13:50:50 axel%pike.org Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* XMLDOMUtils
|
||||
* @author <a href="mailto:kvisco@ziplink.net">Keith Visco</a>
|
||||
* @version $Revision: 1.15 $ $Date: 2001-06-10 13:50:50 $
|
||||
* @version $Revision: 1.16 $ $Date: 2001-06-10 16:42:18 $
|
||||
**/
|
||||
|
||||
#include "XMLDOMUtils.h"
|
||||
@@ -63,7 +62,7 @@ Node* XMLDOMUtils::copyNode(Node* node, Document* owner, NamespaceResolver* reso
|
||||
Document* newDoc = new Document();
|
||||
if (!newDoc)
|
||||
break;
|
||||
#ifdef MOZ_XSL
|
||||
#ifndef TX_EXE
|
||||
owner->addWrapper(newDoc);
|
||||
#endif
|
||||
NodeList* nl = doc->getChildNodes();
|
||||
@@ -86,7 +85,7 @@ Node* XMLDOMUtils::copyNode(Node* node, Document* owner, NamespaceResolver* reso
|
||||
case Node::ELEMENT_NODE :
|
||||
{
|
||||
Element* element = (Element*)node;
|
||||
#ifdef MOZ_XSL
|
||||
#ifndef TX_EXE
|
||||
String name, nameSpaceURI;
|
||||
name = element->getNodeName();
|
||||
resolver->getResultNameSpaceURI(name, nameSpaceURI);
|
||||
@@ -100,7 +99,7 @@ Node* XMLDOMUtils::copyNode(Node* node, Document* owner, NamespaceResolver* reso
|
||||
if ( attList ) {
|
||||
for ( i = 0; i < attList->getLength(); i++ ) {
|
||||
Attr* attr = (Attr*) attList->item(i);
|
||||
#ifdef MOZ_XSL
|
||||
#ifndef TX_EXE
|
||||
resolver->getResultNameSpaceURI(attr->getName(), nameSpaceURI);
|
||||
newElement->setAttributeNS(nameSpaceURI, attr->getName(), attr->getValue());
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user