How to export Word开发者_JAVA技巧Press posts to XLIFF? I am looking for a neat way to do it with the help of PHP. Thanks.
XLIFF is just XML, so you could modify a plugin like oxyXML, or even the built in RSS feed generator (wp-includes/feed-rss2.php
) to generate the proper format.
Look at the source code of this drupal module: http://drupal.org/project/xliff
You can take the function in there and convert it for you needs. they make use of the xliff2xml roundtrip tool that uses an xsl transformation for XML (or xhtml in your case) to xliff and vice versa
精彩评论