---
title: What is a Stylesheet in Nodinite - Transform XML and JSON Data
description: Transform XML and JSON data into user-friendly formats with Nodinite Stylesheets. Empower business users with readable reports, hide sensitive data, and format alerts using XSLT and Liquid templates.
---

# <i class="fal fa-file-lines" aria-hidden="true"></i> What is a stylesheet?

Transform complex XML and JSON data into user-friendly formats with <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> **Stylesheets**. On this page, you will:

* ✅ **Empower business users** - Present technical data in formats non-technical users can understand  
* ✅ **Protect sensitive information** - Hide confidential data from specific users or roles  
* ✅ **Format alerts** - Customize email and event log notifications with readable, actionable content  
* ✅ **Support multiple formats** - Transform XML and JSON into HTML, flat files, or any text-based output  
* ✅ **Reuse templates** - Apply the same stylesheet across multiple [Message Types][] for consistency  

![In the Log View Contoso Orders: Finance, the raw invoice JSON of order ORD-10001, then the same invoice as a document through View message formatted as Contoso - Invoice view, animated walkthrough (7.12)][2]  
*Animated walkthrough: the same invoice, first as raw JSON, then as a document a business user can read.*  

1. In the [Log View][Log Views] *Contoso Orders: Finance*, type *ORD-10001* in **O2C - Order ID** and click **Search**.
2. Open the **Action** menu of the *Order Invoiced* event and choose **View message body**: the raw invoice JSON.
3. Close it, open the **Action** menu again, and choose **View message formatted as 'Contoso - Invoice view'**: the same invoice as a document, with the customer, the lines, and the total.

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>Use <strong>Stylesheets</strong> in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> to visualize data for the business in a format they can understand. You can also use this feature to hide sensitive data they do not need to see, ensuring compliance and security.</p></div>
</aside>

## Why Use Stylesheets?

### <i class="fal fa-business-time" aria-hidden="true"></i> Business Impact

* **<i class="fal fa-clock" aria-hidden="true"></i> 70% faster incident resolution** - Business users identify critical issues without waiting for technical teams to interpret logs
* **<i class="fal fa-user-shield" aria-hidden="true"></i> Enhanced security** - Mask credit card numbers, social security numbers, and other sensitive data while preserving business context
* **<i class="fal fa-envelope-open-text" aria-hidden="true"></i> Actionable alerts** - Emails with formatted data tables instead of raw XML reduce time-to-action from hours to minutes
* **<i class="fal fa-hands-helping" aria-hidden="true"></i> Self-service reporting** - Enable business analysts to review transaction data without developer assistance

### <i class="fal fa-lightbulb" aria-hidden="true"></i> Common Use Cases

* **<i class="fal fa-file-invoice-dollar" aria-hidden="true"></i> Financial Transaction Reports** - Transform XML order messages into readable invoices with line items, totals, and customer details
* **<i class="fal fa-hospital" aria-hidden="true"></i> Healthcare Data Compliance** - Display patient encounter summaries while automatically redacting PHI (Protected Health Information)
* **<i class="fal fa-shipping-fast" aria-hidden="true"></i> Order Status Tracking** - Convert EDI 850 purchase orders into visual order summaries with delivery timelines
* **<i class="fal fa-chart-line" aria-hidden="true"></i> Executive Dashboards** - Present JSON metrics from REST APIs as formatted KPI cards and trend charts
* **<i class="fal fa-shield-halved" aria-hidden="true"></i> Compliance Audits** - Generate audit-ready reports showing message flow history with timestamps and status indicators

## How Stylesheets Work

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> has built-in support for **Stylesheets** to transform technical data into business-friendly formats. You can present both **XML** and **JSON** data for end-users in formats they can understand and act upon.  

### Transformation Flow

<div class="mermaid">
graph LR
    A["fa:fa-inbox Log Event<br/>(XML or JSON)"] --> B{"fa:fa-tags Message Type"}
    B --> U["fa:fa-language Convert body to UTF-8<br/>(resolved encoding)"]
    U --> C["fa:fa-file-code Stylesheet<br/>(XSLT or Liquid)"]
    C --> D["fa:fa-cogs Transformation<br/>Engine"]
    D --> E["fa:fa-file-alt User-Friendly<br/>Output"]
    E --> F1["fa:fa-search Log Views"]
    E --> F2["fa:fa-envelope Email Alerts"]
    E --> F3["fa:fa-calendar-exclamation Event Logs"]
    E --> F4["fa:fa-chart-bar Reports"]
    E --> F5["fa:fa-sitemap BPM Log Search (7.11)"]
    style A fill:#2678BD
    style B fill:#9E59BB
    style U fill:#E47528
    style C fill:#3F827B
    style D fill:#3F827B
    style E fill:#93d16d
</div>

*Transformation flow: the [Log Event][] (blue) is matched to a Message Type (purple), its body is converted to UTF-8 (orange), the Stylesheet and engine (teal) transform it, and the output (green) reaches [Log Views][], [BPM Log Search][Search log events from a BPM], alerts, and reports.*

#### Step by Step

1. **<i class="fal fa-inbox" aria-hidden="true"></i> Log Event arrives** - System receives XML or JSON message from integration
2. **<i class="fal fa-tags" aria-hidden="true"></i> Message Type identified** - <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> determines which [Message Type][Message Types] matches the event
3. **<i class="fal fa-language" aria-hidden="true"></i> Body converted to UTF-8** - <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> reads the body with its [resolved character encoding][Character Encoding] (context property, then XML declaration, then [Endpoint][Endpoints], then Message Type) and converts it to UTF-8 before inserting it into the Stylesheet, so characters such as `Å` and `é` survive the transformation <sup><span class="nodinite-new-badge">New 7.11</span></sup>
4. **<i class="fal fa-file-code" aria-hidden="true"></i> Stylesheet selected** - Associated XSLT or Liquid template is retrieved
5. **<i class="fal fa-cogs" aria-hidden="true"></i> Transformation applied** - Engine processes message through template
6. **<i class="fal fa-file-alt" aria-hidden="true"></i> Output generated** - Transformed HTML, text, or XML is produced
7. **<i class="fal fa-display" aria-hidden="true"></i> Display to user** - Result appears in [Log Views][], [BPM Log Search][Search log events from a BPM] <sup><span class="nodinite-new-badge">New 7.11</span></sup>, email alerts, reports, or [Windows Event Log][]

### Supported Transformation Engines

#### XML Transformation with XSLT

* ✅ Convert XML documents into HTML for web display  
* ✅ Transform XML into different XML formats for system integration  
* ✅ Extract and reformat specific XML elements for reporting  

#### JSON Transformation with Liquid

* ✅ Convert JSON into HTML reports with tables and formatting  
* ✅ Generate flat files or text-based outputs  
* ✅ Transform any JSON structure into nearly any imaginable text-based format  
* ✅ Example: [Base64Decode XML from JSON][] - Transform JSON with base64-encoded XML content into readable XML  

![Stylesheet editor with the Liquid template of Contoso - Invoice view on the left and the rendered invoice INV-2025-10001 on the right (7.12)][1]  
*A Liquid Stylesheet turns the invoice JSON into a readable HTML invoice; the editor renders every template change at once.*  

Numbers in a Liquid template render with a dot as the decimal separator, whatever the culture of the server: *37.5*, not *37,5*. <sup><span class="nodinite-new-badge">New 7.12</span></sup> Dates print as ISO `yyyy-MM-dd HH:mm:ss`, such as *2026-11-15 06:00:00*, also whatever the culture of the server. To print a date another way, use the `date` filter with a .NET format string: `{{ orderDate | date: 'dd MMM yyyy' }}` prints *15 Nov 2026*. Ruby and strftime patterns such as `%Y-%m-%d` don't work.

![Order Report for ORD-10002 rendered by a Liquid Stylesheet, with the amounts 12.5 and 37.5 (7.12)][3]  
*The same Order Report on any server: 37.5 with a dot.*  

## <i class="fal fa-ballot-check" aria-hidden="true"></i> Key Features

### <i class="fal fa-code" aria-hidden="true"></i> Transformation Engines

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> supports two powerful template engines, each optimized for different data formats:

|Engine|Best For|Capabilities|  
|---|---|---|  
|[XSLT][xslt]<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>|XML data|Transform XML → HTML, XML → XML, element extraction, conditional formatting|  
|[Liquid][]<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>|JSON data|Transform JSON → HTML, generate flat files, create custom text formats|  

Standard XSLT and Liquid always work. A Stylesheet's browser scripts (script tags, event handlers, and `javascript:` links) run only when the [StylesheetScriptsEnabled][] [System Parameter][System Parameters] is `true`, and <sup><span class="nodinite-new-badge">New 7.12</span></sup> always isolated from the [Web Client][]. With `false`, the default on a new installation (an upgrade keeps its value), the output shows without them. `msxsl:script` blocks in XSLT never run in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 7; use the built-in functions instead.

#### Advanced Example

See [Base64Decode XML from JSON][] to learn how Liquid templates can extract base64-encoded XML from JSON and transform it into readable XML output.

### <i class="fal fa-recycle" aria-hidden="true"></i> Flexibility and Reusability

* **<i class="fal fa-layer-group" aria-hidden="true"></i> Multiple stylesheets per Message Type** - Create specialized views for different audiences (business summary, technical details, compliance audit)
* **<i class="fal fa-clone" aria-hidden="true"></i> Shared stylesheets** - Use the same template across many [Message Types][] for consistent branding and formatting
* **<i class="fal fa-users-cog" aria-hidden="true"></i> Self-service access** - Business users can view transformed data in [Log Views][] without technical knowledge or database access
* **<i class="fal fa-palette" aria-hidden="true"></i> Template library** - Build a library of reusable stylesheets for common patterns (invoices, error reports, status summaries)

### <i class="fal fa-bell" aria-hidden="true"></i> Alarm Formatting

Stylesheets enhance notification channels by presenting data in context-appropriate formats. The [Alarm Plugin Object XML][] page documents the data each [Alarm Plugin][Alarm Plugins], such as [Email][E-mail] or [Email with Options][E-mail with options], receives, and the [Monitor View][Monitor Views Overview] decides which Alarm Plugins send its alerts:

<table role="table" aria-label="Alarm formatting options for stylesheets">
<thead>
<tr>
<th scope="col">Channel</th>
<th scope="col">Use Case</th>
<th scope="col">Stylesheet Capability</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><a href="https://docs.nodinite.com/administration/settings/alarm-plugins/features/email/"><i class="fal fa-envelope" aria-hidden="true"></i> Email</a></strong></td>
<td>Incident notifications</td>
<td>Format email body with readable data tables, conditional styling, and actionable summaries</td>
</tr>
<tr>
<td><strong><a href="https://docs.nodinite.com/administration/settings/alarm-plugins/features/email-with-options/"><i class="fal fa-envelope-open-text" aria-hidden="true"></i> Email with Options</a></strong></td>
<td>Interactive approval workflows</td>
<td>Create emails with decision buttons (Approve/Reject) that include formatted transaction details</td>
</tr>
<tr>
<td><strong><a href="https://docs.nodinite.com/administration/settings/alarm-plugins/features/event-log/"><i class="fal fa-calendar-exclamation" aria-hidden="true"></i> Windows Event Log</a></strong></td>
<td>IT operations monitoring</td>
<td>Generate structured event log entries with severity levels and formatted message data</td>
</tr>
</tbody>
</table>

### <i class="fal fa-shield-alt" aria-hidden="true"></i> Data Security and Masking

Stylesheets enable granular control over what data users can see:

* **<i class="fal fa-mask" aria-hidden="true"></i> Sensitive data redaction** - Hide credit card numbers, SSNs, passwords, API keys using template logic
* **<i class="fal fa-eye-slash" aria-hidden="true"></i> Formatted view only** - A Stylesheet is bound to [Message Types][], not to Log Views: every Log View offers every Stylesheet bound to the event's Message Type. What a [Role][Roles] sees is set by its rights on the Log View: with **View Transformed** but not **View Body**, users read only the formatted output; see [Permission Set for Log Views][]
* **<i class="fal fa-file-contract" aria-hidden="true"></i> Compliance-ready output** - Generate audit reports that automatically exclude PII while preserving business context
* **<i class="fal fa-user-lock" aria-hidden="true"></i> Custom masking rules** - Use XSLT/Liquid conditional logic to implement organization-specific data protection rules

### <i class="fal fa-cogs" aria-hidden="true"></i> How It Works

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> automatically applies the correct Stylesheet to transform message payloads based on the [Message Type][Message Types]. When you associate a Stylesheet with a [Message Type][Message Types], it is used in:

* [Log Views][] - Transform technical data for business user consumption in the web interface; business users pick [View message formatted as][Log View - View message using a Stylesheet]
* [BPM Log Search][Search log events from a BPM] <sup><span class="nodinite-new-badge">New 7.11</span></sup> - The same formatted view, opened from **Action** on an event in the BPM Viewer
* **Alarm notifications** - Format [Email alerts][E-Mail], [Event Logs][Windows Event Log], and [interactive emails][E-mail with options] with readable, actionable content  
* **Reports** - Generate user-friendly reports from technical log data for compliance and analytics  
* **API responses** - Apply stylesheets to [Log Event][] data returned via the [Web API][] for custom integrations

All [Logged Events][Log Event] have the mandatory [Message Type][Message Types] property set, which determines which Stylesheet to apply. This automatic association ensures consistent formatting across all views and notification channels.

___

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

Start using Stylesheets to transform your data:

1. <i class="fal fa-list" aria-hidden="true"></i> [Stylesheets Overview][] - Manage the list of Stylesheets  
1. <i class="fal fa-file-plus" aria-hidden="true"></i> [Add or manage Stylesheet][] - Create XSLT or Liquid templates for your Message Types  
2. <i class="fal fa-tags" aria-hidden="true"></i> [Message Types][] - Associate Stylesheets with specific Message Types  
3. <i class="fal fa-search" aria-hidden="true"></i> [Add or manage Log View][] - Create Log Views that use your Stylesheets  
4. <i class="fal fa-display" aria-hidden="true"></i> [Add or manage Monitor View][] - Apply Stylesheets to Monitor Views  
5. <i class="fal fa-bell" aria-hidden="true"></i> [E-Mail][] - Configure email alerts with formatted content using Stylesheets  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* **Core Concepts**  
  * <i class="fal fa-bolt" aria-hidden="true"></i> [Log Event][] - Understand logged events and Message Types  
  * <i class="fal fa-search" aria-hidden="true"></i> [Log Views][] - Manage user access to transformed log data  
  * <i class="fal fa-display" aria-hidden="true"></i> [Monitor Views Overview][] - Apply Stylesheets to monitoring views  
  * <i class="fal fa-language" aria-hidden="true"></i> [Character Encoding][] - How the body encoding is decided before transformation  
  * <i class="fal fa-gears" aria-hidden="true"></i> [StylesheetScriptsEnabled][] - System Parameter that allows browser scripts in Stylesheet output  

* **Notification Channels**  
  * <i class="fal fa-bell" aria-hidden="true"></i> [Alarm Plugins][] - The notification channels that use Stylesheets  
  * <i class="fal fa-envelope-open-text" aria-hidden="true"></i> [E-mail with options][] - Create interactive email alerts with decision buttons  
  * <i class="fal fa-calendar-exclamation" aria-hidden="true"></i> [Windows Event Log][] - Format Windows Event Log output  

* **Examples and templates**  
  * <i class="fal fa-code" aria-hidden="true"></i> [Alarm Plugin Object XML][] - XML structure for alarm plugin formatting  
  * <i class="fal fa-file-code" aria-hidden="true"></i> [Base64Decode XML from JSON][] - Example: Transform JSON with base64-encoded XML  
  * <i class="fal fa-code" aria-hidden="true"></i> [Stylesheet Examples][] - All XSLT and Liquid examples  

* **End-User Guides**  
  * <i class="fal fa-search" aria-hidden="true"></i> [View message formatted as][Log View - View message using a Stylesheet] - How business users open the formatted message  
  * <i class="fal fa-user" aria-hidden="true"></i> [See what happened to an order][] - Scenario that reads an order through a Stylesheet  

* **External Resources**  
  * <i class="fal fa-book" aria-hidden="true"></i> [XSLT][xslt]<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> - Learn XSLT transformation language  
  * <i class="fal fa-droplet" aria-hidden="true"></i> [Liquid][]<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> - Learn Liquid template language  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Customize/Stylesheets/Stylesheet_Preview_last.png
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Customize/Stylesheets/Stylesheet_ViewFromLogView.gif
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Customize/Stylesheets/InvariantNumbers_ORD-10002.png

[Add or manage Log View]:https://docs.nodinite.com/administration/log-management/log-views/features/add-or-manage-log-view/
[Add or manage Monitor View]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/add-or-manage-monitor-view/
[Add or manage Stylesheet]:https://docs.nodinite.com/administration/customize/stylesheets/features/add-or-manage-stylesheet/
[Alarm Plugin Object XML]:https://docs.nodinite.com/administration/customize/stylesheets/examples/alarm-plugin-object/
[Alarm Plugins]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/what-is-an-alarm-plugin/
[Base64Decode XML from JSON]:https://docs.nodinite.com/administration/customize/stylesheets/examples/base64decode-xml-from-json/
[Character Encoding]:https://docs.nodinite.com/core-services/log-event/features/character-encoding/
[E-mail]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/email/
[E-mail with options]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/email-with-options/
[Endpoints]:https://docs.nodinite.com/repository-model/endpoints/overview/
[Liquid]:https://github.com/dotliquid/dotliquid
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[Log View - View message using a Stylesheet]:https://docs.nodinite.com/getting-started/log/open-a-log-event-and-read-its-message/#stylesheet
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[Monitor Views Overview]:https://docs.nodinite.com/administration/monitor-management/monitor-views/overview/
[Permission Set for Log Views]:https://docs.nodinite.com/administration/access-management/roles/features/permission-set-for-log-views/
[Roles]:https://docs.nodinite.com/administration/access-management/roles/features/what-is-a-role/
[Search log events from a BPM]:https://docs.nodinite.com/getting-started/repository/bpms/search-log-events-from-a-bpm/
[See what happened to an order]:https://docs.nodinite.com/getting-started/scenarios/order-flow/see-what-happened-to-an-order/
[Stylesheet Examples]:https://docs.nodinite.com/administration/customize/stylesheets/examples/overview/
[Stylesheets Overview]:https://docs.nodinite.com/administration/customize/stylesheets/overview/
[StylesheetScriptsEnabled]:https://docs.nodinite.com/administration/settings/system-parameters/stylesheetscriptsenabled/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/getting-started/overview/
[Windows Event Log]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/event-log/
[xslt]:https://www.w3schools.com/xml/xml_xslt.asp