I just upgraded to Xalan 1.6 and Xerces 2.3.0 
WinXP
VC 6 sp5

Besides changing the location of a couple of includes, I can
successfully build a Release version of my project.

I get compiler errors when I try to compile the Debug version of my
Project though:

Linking...
   Creating library Debug/xalan16trans.lib and object
Debug/xalan16trans.exp
extXalandll.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
xalanc_1_6::XalanTransformer::setEntityResolver(class
xercesc_2_3::EntityResolver *)"
([EMAIL PROTECTED]@xalanc_1_6@@Q
[EMAIL PROTECTED]@@@Z)


Some relevant points:
I have recompiled the XercesLib project for both Win32 Release and Win32
Debug.
These successfully compiled.

I copied the lib (release and debug) to the:
xerces-c_2_3_0-win32\lib

I copied the DLL (release and debug) to the:
xerces-c_2_3_0-win32\bin


Thanks,
Dave




-----Original Message-----
From: Mark Weaver [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 29, 2003 12:36 PM
To: [email protected]
Subject: RE: Xsl:include support - how to enable it?


Here is a modified version that defines and installs an EntityResolver.
You will need to modify the resolver to suit; this one just returns a
URLInputSource for the URL:

class MyResolver : public EntityResolver {
public:
        InputSource* resolveEntity (const XMLCh* const publicId,
                                const XMLCh* const systemId)
        {
                XMLURL URL(systemId);
                return new URLInputSource(URL);
        }
};

Any rewriting that you want to take place can be performed on the URL
object.

Reply via email to