LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Xerces, Xalan -- XML + XSL = HTML (http://www.linuxquestions.org/questions/linux-software-2/xerces-xalan-xml-xsl-%3D-html-32621/)

marktaff 10-12-2002 03:00 PM

Xerces, Xalan -- XML + XSL = HTML
 
Hi guys. I am having problems applying xsl transformation to an xml document with xerces-c and xalan-c.

I originally compiled both from source, and it seemed to work fine. However, xalan just copied the xsl stylesheet to the ouput file without applying any tranformations.

Then I tried the mandrake rpms's. They are naturally a bit older than current, so there is no xalan executable, but instead there is a slightly more powerful `testXSLT` executable. This should work:

Code:

#  testXSLT -IN xmltest2.xml -XSL xsltest2.xsl -OUT xmltest6.html
Instead I get:

Code:

testXSLT: relocation error: /usr/lib/libxalan-c.so.1: undefined symbol: __pure_virtual
So my questions:

1. What do "relocation error" and "undefined symbol" mean?
2. How can I make xerces and xalan actually spit out transformed xml (i.e. HTML or text)?

I am not married to xerces/xalan. If there is another software cobmo you might reccommend that would serve my purposes, that would work great also. All I need is to be able to perfom the transformations manually (as opposed to in real-time for a client request).

Any help is greatly appreciated. Thanks.

--Mark

Specs:
P II - 350
64 MB RAM
4 GB IDE
Mandrake 9.0/KDE 3.0.3

bah 10-15-2002 11:01 PM

The testXSLT binary is a different version from the xalan dynamic library.

Recompile and install Xalan, and use the XalanTransform program


All times are GMT -5. The time now is 10:33 PM.