How to convert XML to something else using xslt stylesheet?
In C++ C# PHP or ActionScript?
For example I have this html2wiki xslt stylesheet I want to send to my programm my XML (in this case HTML file ) and get back a file (in this case Wiki mark up text )
So How to translate one text file into another text file using XSLT stylesheet in any language?
W3Schools has my favorite XSLT tutorial ..
http://www.w3schools.com/xsl/
Good luck!
In Python, libxml and libxslt are my personal choices for this kind of functionality.
(Edit) Here is a simple example of performing a transformation using libxml and libxslt:
In .NET, you may want to look at this article. In C++, you can use Xalan-C++. Xalan-C++ even has some handy examples of how to use it.
The correct library in Python now is
lxml
. Please see this answer on StackOverflow. It is similar syntax, and you wont have issues in installing it.in PHP take a look at this
DomXsltStylesheet->process
and also read the last note at the bottom which has a working example ...
Pseudocode: