Hello, I've been trying to use Xalan on an AIX machine and have run into some problems. I've been using the exact same code and XML on a Solaris platform with no issues. Despite my best efforts in tweaking my code and looking through forums I haven't been able to solve my AIX woes.
I've been experiencing three problems, detailed below. 1. XPathEvaluator::terminate is causing my application to core. I've traced this to a pure virtual function, XalanList::allocate, being called by the memory manager instance. This but isn't much of an issue as I'm implementing a wrapper class which will be the exclusive means for other code to use the Xalan API. To do the initialization and termination I created a singleton static subclass. The Xalan/Xerces initialization is done in the constructor and the termination, in the destructor. This way the compiler does most of the work and the user's of my code need not worry about initialization. Since the termination will be done on process termination actually terminating Xalan doesn't seem to be much of an issue. 2. XPaths won't evaluate when using namespaces in the XML. My code is heavily based off of the SimpleXPathAPI sample. When I run SimpleXPathAPI with my XML (with namespaces) the data is retrieved correctly. When I use the exact same XPath with my code no results are returned. I've made sure that the XML is valid and the XPath is syntactically correct. 3. In my efforts to fix number two I tried removing the namespace from my XML. That worked somewhat better but now my application cores later on down the line. After retrieving about half of the data from the XML the core happens. I've tracked this down to another pure virtual function being called. This time the call happens in XalanReferenceCountedObject::removeReference. For what it's worth here's some various version information. Xalan: 1.10 Xerces: 2.7 AIX: 6.1 TL2 SP2 xlC_r 09.00.0000.0006 I understand that what I've given you to work with isn't much, but unfortunately that's all I have. I'm unable to give you any source code or the XML I'm using. Anything you can give my to try would be accepted gratefully. Thanks, Michael Albers