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

Reports

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:

  1. copy one of the existing .xsl files (see XSLT extension folder);

  2. update the contents of the <ors:bibliography> node, especially the one for the uuid, by getting the value of generatedUUIDNoDash from:

    import uuid
    generatedUUID = str(uuid.uuid1())
    generatedUUIDNoDash = generatedUUID.replace('-', '')
    
  3. update the contents of the <ors:support> node;

  4. update the contents of the <xsl:template match="/orsresults"> node.

11.4. File edition

Open the file in a text editor.