Reputation: 168
I'm working on a project where it's requires accepting an XSL and XML as inputs and outputa an HTML file. I already have the XSL scripts, it's proven to work as expected when transforming an XML input to an HTML file using VBA scripts. I'm moving this to C++ and I'm looking for any libraries that can support this operations. I tried searching around and I found similar questions but they were all 10+ years old so I'm not sure if I'm missing a more modern and viable solution. I'm using MS Visual Studio 2017 and C++11, but the solutions I've found so far seems dated and I'm not sure how extensible they are for the future.
Similar posts about this:
How do I generate an HTML file using XSL?
Convert an XML in HTML using the XSLT process (MSXML in C++)
The top two options I'm considering moving forward with so far is:
1. XSLTProc
2. Xalan - C++
Are there any other recommendations I should take a look at?
As a side question, this post suggests XSLT is dead and I'm better off using a C++ XML parser and perform the operations natively. After searching for libraries to do this, they all seem dated and not supported anymore so I'm starting to think I should go with this suggestion. Would love to hear other opinions about this.
Are there any XSLT to C++ compilers available?
Thanks in advance for any suggestions.
Upvotes: 0
Views: 1448
Reputation: 163322
If you want a modern XSLT processor with a C++ language binding, try Saxon/C. Unlike older processors it supports XSLT 3.0 rather than 1.0.
Upvotes: 1