- 5 minutes to read

Stylesheets Overview

Easily manage and customize how your data and alerts are presented in Nodinite with user-defined Stylesheets. This overview shows you how to add, edit, delete, and restore Stylesheets for Log Views and Monitoring Alerts, empowering your team with flexible, branded, and actionable insights.

On this page, you will learn how to:

  • ✅ Add, edit, delete, and restore Stylesheets for Log Views and Monitoring Alerts
  • ✅ Filter and sort Stylesheets for efficient management
  • ✅ Control content-type and output for tailored data presentation

Get started now: How to Add or Manage Stylesheet user guide.

Add the Liquid Stylesheet Contoso - Invoice view with Render as HTML and a short template, then find it in the list, animated walkthrough (7.12)
Animated walkthrough: a new Liquid Stylesheet, from Add Stylesheet to the list. Every field is explained in Add or manage Stylesheet.

  1. Click Add Stylesheet, and enter a Name (Contoso - Invoice view) and a Description.
  2. Choose the Type Liquid, and tick Render as HTML. Message Body is Json is already checked for a new Liquid Stylesheet.
  3. Paste the template, and click Save and close. The new Stylesheet is in the list.

The Stylesheet Overview in the Customize main menu is where a Nodinite Administrator manages user-defined Stylesheets that are being used in Log Views and Monitoring Alerts from most Nodinite Alarm Plugins.

Understanding Where Stylesheets Are Used

graph LR MT["fa:fa-tags Message Type"] -->|"selects"| SS["fa:fa-file-lines Stylesheet
XSLT or Liquid"] SS -->|"View message formatted as"| LV["fa:fa-search Log Views"] SS -->|"alert body"| AP["fa:fa-bell Alarm Plugins"] AP -->|"configured on"| MV["fa:fa-display Monitor Views"] SP["fa:fa-gears StylesheetScriptsEnabled"] -.->|"allows browser scripts"| SS style MT fill:#2678BD,color:#fff style SS fill:#E47528,color:#fff style LV fill:#3F827B,color:#fff style AP fill:#3F827B,color:#fff style MV fill:#3F827B,color:#fff style SP fill:#9E59BB,color:#fff

A Message Type (blue) selects the Stylesheet (orange); the result appears in Log Views and in alerts from Alarm Plugins on Monitor Views (teal). The StylesheetScriptsEnabled System Parameter (purple) decides whether the Stylesheet's browser scripts may run.

Where How the Stylesheet is chosen Read more
Log Views Bound to one or more Message Types Add or manage Stylesheet
Alarm Plugins Set on the Basic tab of each Alarm Plugin entry Add or manage Alarm Plugin, E-mail with options
Monitor Views Alerts use the Stylesheet of each Alarm Plugin entry selected on the External Notifications tab Monitor View External Notifications tab

The Stylesheet List

In the Stylesheet Overview, you will find a sortable list of user-defined Stylesheets. An extensive list of Stylesheets can be narrowed down by typing characters into the Filter the result text box. The filter matches the text as typed; % and _ count as ordinary characters.

Stylesheets list filtered on Contoso, seven Stylesheets found (7.12)
Filter the result on Contoso: seven Stylesheets.

Stylesheets list with the filter box, Include deleted, the Name, Type, and Description columns, and the Add Stylesheet button (7.12)
The default Stylesheets for the Email, Email options, and Event Log Alarm Plugins appear next to your own. Sort on Name, Created, Changed, Type, or Description.

Output Content-Type

The stylesheet can set the content-type header to render the correct output, see more in the xsl:output documentation.

Nodinite uses the attributes media-type or method. Use the element 'xsl:output' to set the correct MIME type. The evaluation rule is as follows:

  1. If set, the system makes use of the value set on the media-type
  2. Else, use any of the following the methods:
    • html -> text/html
    • xml -> text/xml
    • text -> text/plain

Standard XSLT and Liquid always work. New 7.12 The output always runs in an isolated frame, so a Stylesheet's script can't read the Web Client's window, cookies, storage, or API answers. Whether the script runs at all (script tags, event handlers, and javascript: links, in XSLT and Liquid) is decided by the StylesheetScriptsEnabled System Parameter: with false, the default on a new installation (an upgrade keeps its value), the output shows without its scripts. msxsl:script blocks never run in Nodinite 7.

Manage Stylesheet

The available functionalities for managing the Stylesheet are:

Add new Stylesheet

To create a new Stylesheet, click the "Add Stylesheet" button to open the Stylesheet editor.

Add Stylesheet button in the Stylesheets list (7.12)
The Add new Stylesheet button sits in the upper right corner of the list.

Edit Stylesheet

To Edit an existing Stylesheet, click its link in the Name column, or open its Action menu and choose Edit. The Action menu also offers Show in Mapify and Show in Mermaid, which draw the Stylesheet and its Message Types in Mapify, and Delete (or Restore on a deleted Stylesheet).

Action menu of a Stylesheet with Edit, Show in Mapify, Show in Mermaid, and Delete, Edit highlighted (7.12)
Clicking the Name link opens the same editor as Edit.

Delete Stylesheet

Delete the Stylesheet Contoso - Packing slip (draft), list it with Include deleted, and restore it, animated walkthrough (7.12)
Animated walkthrough: a delete you can take back, from the Action menu.

  1. Open the Action menu of the Stylesheet and choose Delete.
  2. Confirm with Yes. The Stylesheet is gone from the list.
  3. Tick Include deleted to list deleted Stylesheets too.
  4. Open the Action menu of the deleted Stylesheet, choose Restore, and confirm with Yes.
  5. Untick Include deleted. The Stylesheet is back.

Action menu of a Stylesheet with Edit, Show in Mapify, Show in Mermaid, and Delete, Delete highlighted (7.12)
A deleted Stylesheet is only marked as deleted and can be restored later; see Show deleted records.

Restore deleted Stylesheet

  1. Tick Include deleted (Include deleted Stylesheets). A deleted Stylesheet shows a red Deleted badge, and the others show Available.
  2. Open the Action menu of the deleted Stylesheet, choose Restore, and confirm with Yes.

Action menu of a deleted Stylesheet with Edit, Show in Mapify, Show in Mermaid, and Restore (7.12)
Restore replaces Delete in the menu of a deleted Stylesheet.

Frequently asked questions / Troubleshooting

You can create new, edit, and delete Stylesheets using the Nodinite Web Client.

How do I create a new Stylesheet?

To create a new Stylesheet, follow the steps in the Add or Manage Stylesheet user guide, or start from one of the Stylesheet Examples.

Why does my Stylesheet with a script fail?

A Stylesheet's browser scripts only run when StylesheetScriptsEnabled is true; with false the output shows without them (Chart.js charts stay empty). Check the parameter before you enable it, and read its security warning. A Stylesheet that calls an msxsl:script function fails whatever the value: msxsl:script never runs in Nodinite 7, so use the built-in functions instead.

Why don't business users see "View message formatted as"?

The Action menu of a Log Event offers View message formatted as 'Stylesheet name', which opens View message body formatted as 'Stylesheet name'. Either no Stylesheet is bound to the Message Type of the Log Event, or the user's Role lacks View Transformed on that Log View; see Permission Set for Log Views. Business users find the action in the Log View, see View message formatted as.

Next Steps