When you create an XML filter for Office, you need to design an XSLT stylesheet that can convert to and from the OpenDocument XML file format.
For more information about the OpenDocument XML format, go to https://www.openoffice.org/xml/.
If you want, you can include a template with your filter to apply Office styles to an XML document that you import.
Create an XSLT transformation stylesheet that maps the elements of the external XML format to the elements of the OpenDocument XML file format and back again.
Create a template that assigns Office styles to elements in the external XML format when you import a file in this format into Office.
In Office Writer, create a text document, and choose Tools - XML Filter Settings.
Click New.
In the XML Filter dialogue box, click the General tab, and define the properties of the filter.
This name is displayed in the XML Filter Settings dialogue box.
This name is displayed in the list of file types in the Open, Export, and Save As dialogue boxes.
To differentiate the file from other XML files, enter an extension other than *.xml.
This identifier is used to detect the file type on import.
The files that are specified on the Transformation tab page are copied to the local Office users directory.
You can perform basic tests on a custom XML filter in Office.
The document is not altered by these tests.
Create or open a text document.
Choose Tools - XML Filter Settings.
In the list of filters, select the filter that you want to test, and click Test XSLTs.
To test an Export filter, do one of the following in the Export area of the dialogue box: