XML previews in Elvis 5
XML files imported into Elvis are fully text-indexed. By default, the server will generate a color-coded xml-source preview that will be displayed in the desktop client.
For some well-known formats like NewsML, the server already includes a preview XSLT that creates more readable HTML previews for those XML files.
Custom XML previews
If you have specific XML formats that you use often, you can add your own custom XSL transformations by placing them in the following folder:
By placing XSL files in this folder you can customize the way XML files are previewed in the desktop client. The XSL file must generate a valid XHTML file that will be displayed in the desktop client when the XML file is previewed.
The custom XSL file is located using the name of the root element in the XML file. So an XML file with the following structure:
<?xml version="1.0" encoding="UTF-8"?> <article> ... </article>
Will be previewed using the XSL file:
If no custom XSL with the name of the root element is found, a default XSL is used that provides a simple indented and color coded "source" view of the XML file.