WoodWing Help Center

XML previews in Elvis 6

XML previews in Elvis 6

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 Pro client.

Known formats

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:

/xml_previews

By placing XSL files in this folder you can customize the way XML files are previewed in the Pro client. The XSL file must generate a valid XHTML file that will be displayed in the Pro 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:

xml_previews/article.xsl

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.

Was this article helpful?
0 out of 0 found this helpful / Created: / Updated:
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.