如何使用 xslt 样式表将 XML 转换为其他内容?

如何使用 xslt 样式表将 XML 转换为其他内容?

问题描述:

如何使用 xslt 样式表将 XML 转换为其他内容?

How to convert XML to something else using xslt stylesheet?

在 C++ C# PHP 还是 ActionScript 中?

In C++ C# PHP or ActionScript?

例如我有这个 html2wiki xslt 样式表我想发送到我的程序我的 XML(在本例中为 HTML 文件)并取回一个文件(在本例中为 Wiki 标记文本)

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 )

那么如何使用任何语言的 XSLT 样式表将一个文本文件翻译成另一个文本文件?

So How to translate one text file into another text file using XSLT stylesheet in any language?

伪代码:

Load SOURCE file as XML
Load STYLESHEET file as XML
Apply STYLESHEET to SOURCE, generating RESULT
Write RESULT out to file as XML