This topic is obsolete as of January 2007. Please refer to the RC-WinTrans Developer Help Topic "XML Parser."
RC-WinTrans uses an XSLT transformation files based file
converter to convert an XML
file into a XLIFF format file to be translated with RC-WinTrans.
For a step-by-step description how to enable (add) an XML files converter
NOTE FOR DEVELOPERS: Technically an XML converter is realized/implemented as a pair of two XSLT transformation files. The XSLT files are used by Visual Basic macros which are the implementation of XML files converter used by RC-WinTrans.
XML files may come in most diverse flavours. Thus, it is generally insensible to allow only one converter for all XML files. On the "XML Files Converter" settings page, you may associate "converters" to different types of XML files.
An XML "converter" is (minimally) a set of two XSL Transformation (XSLT) files:
Here we are not describe the details of the XSL Transformation language. However, XSLT is a W3C standard, and there are many books out on XSLT.
As an example, we provide a set of simple XSLT files that can be used to localize the text content of other XSL Transformation files. (XSL Transformation files are XML files, too.)
To incorporate the XML file converter within RC-WinTrans, you most likely need to look at two places:
This topic only covers the XML Files Converter HTML GUI page.
Image 1: XML Files Converter dialog box ("listing" view).
In our example, we have only one file type—"XSL Transformations". You have three options:
After pressing either the Add Type or the Edit Type button, a small form comes up for the XML file type association that you want to edit—with the File Type table remaining visible but changing to "inactive" mode.
Image 2: XML Files Converter dialog box ("edit" view)
In the Edit XML File Type form, there are specified four values:
To store your changes, press the OK button. To discard the edits, press the Cancel button. In both cases, the dialog will return to its initial view (Image 1).