Nilliom,
I wish I could do more help. My expertise with Xalan-C is with versions
1.10 and the CurrentSVN version 1.11. Most of the original Xalan team
is no longer working on the project.
The first thing I can see that may be a problem is the ">>" sequence.
You should probably make sure you have space between the '>' symbols.
- Steven J. Hathaway
On 8/16/2011 11:00 AM, Nilliom wrote:
Hi
I have a problem linking xalan 1.4 (I know it's old but I can't work with
something else on this system) with my code.
I keep getting the following errors:
/usr/ccs/bin/ld: Unsatisfied symbols:
XSLTResultTarget::XSLTResultTarget(std::basic_ostream<char,std::char_traits<char>>
*)%1 (first referenced in XgwcXmlTransformer.o) (code)
XSLTInputSource::XSLTInputSource(std::basic_istream<char,std::char_traits<char>>
*)%1 (first referenced in XgwcXmlTransformer.o) (code)
I tried rebuilding the .o in question but without success.
The code in my program is the following:
#include<strstream>
#include<iomanip>
#include<iostream>
#include<string>
using namespace std;
#include<stdio.h>
#include<String.h>
#include<rw/cstring.h>
#include "XgwcXmlTransformer.hpp"
#include<util/PlatformUtils.hpp>
#include<XalanDOM/XalanDOMString.hpp>
#include<XSLT/XSLTInputSource.hpp>
#include<XSLT/XSLTResultTarget.hpp>
..
RWCString inXsl;
// oMessage is a wrapper around an RWCString
istrstream theXMLStream(oMessage.getXmlBuffer.data(),
oMessage.getXmlBuffer().length());
istrstream theXSLStream(inXsl, inXsl.length());
ostrstream theOutput;
XSLTInputSource inputXmlSource(&theXMLStream);
inputXmlSource.setSystemId(c_wstr(XalanDOMString("xmlData")));
XSLTInputSource inputXslSource(&theXSLStream);
inputXslSource.setSystemId(c_wstr(XalanDOMString("xslSheet")));
XSLTResultTarget outputTarget(&theOutput);
// theXalanTransformer being a member variable on my main object.
int theResult=
theXalanTransformer.transform(inputXmlSource,inputXslSource,outputTarget);
..
The library libxalan-c1_4_0.sl is on the path and included also in the
makefile command line.
The include files are found since it does not give an error anymore on
compilation.
Please help me, my project is due to end this week and I'm stuck
Thanks in advance.