IcedDante
IcedDante

Reputation: 6792

Which XSLT Processor for C++?

I started off with Xalan for C++, but that really seemed like overkill for this project. I will have an XML file in memory, there is one stylesheet to run it through... and that's pretty much it.

The input XML and the stylesheet are all in-house and validated for integrity before it gets to my code so I really just wanted the simplest way to do this sort of transformation. I looked at libxslt, but it's C-based. The home page referred me to xmlwrapp which I started working with only to find out that this project hasn't been supported for a while.

Do you think xmlwrapp is a good choice for my needs, or would you recommend a different library?

Upvotes: 2

Views: 1111

Answers (1)

doron
doron

Reputation: 28872

C libraries integrate well will C++ code. The only issue is if the library itself is compiled as C it will not have C++ style name mangling. This can easily be worked around by ensuring that all the headers have the extern "C" { ... } wrappers. Most C libraries will already have this together with the #ifdef __cplusplus preprocessor statement which allows total interoperability with C++. Bearing this in mind you should be able to use libxslt directly

Upvotes: 2

Related Questions