11. XSLT¶
This section explains how to create and edit XSLT (Extensible Stylesheet Language Transformations) files.
11.1. Usage¶
XSLT files are used during the report generation.
See also
11.2. Files location¶
To be recognized by the application, XSLT files should be located in one of these folders:
%LocalAppData%/ORS/Dragonfly(version)/pythonUserExtensions/XSLTs (available for the current user)
%ProgramData%/ORS/Dragonfly(version)/pythonAllUsersExtensions/XSLTs (available for all users)
%ProgramData%/ORS/Dragonfly(version)/python/orsxslt (distributed with the application)
11.3. File creation¶
To create a XSLT file:
copy one of the existing .xsl files (see XSLT extension folder);
update the contents of the
<ors:bibliography>node, especially the one for the uuid, by getting the value ofgeneratedUUIDNoDashfrom:import uuid generatedUUID = str(uuid.uuid1()) generatedUUIDNoDash = generatedUUID.replace('-', '')
update the contents of the
<ors:support>node;update the contents of the
<xsl:template match="/orsresults">node.
11.4. File edition¶
Open the file in a text editor.