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

# :fa-file-lines: What is a stylesheet?

Transform complex XML and JSON data into user-friendly formats with :Nodinite: **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.

>[!TIP]
>Use **Stylesheets** in :Nodinite: 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.

## Why Use Stylesheets?

### :fa-business-time: Business Impact

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

### :fa-lightbulb: Common Use Cases

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

## How Stylesheets Work

:Nodinite: 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. **:fa-inbox: Log Event arrives** - System receives XML or JSON message from integration
2. **:fa-tags: Message Type identified** - :Nodinite: determines which [Message Type][Message Types] matches the event
3. **:fa-language: Body converted to UTF-8** - :Nodinite: 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 :new7.11:
4. **:fa-file-code: Stylesheet selected** - Associated XSLT or Liquid template is retrieved
5. **:fa-cogs: Transformation applied** - Engine processes message through template
6. **:fa-file-alt: Output generated** - Transformed HTML, text, or XML is produced
7. **:fa-display: Display to user** - Result appears in [Log Views][], [BPM Log Search][Search log events from a BPM] :new7.11:, 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*. :new7.12: 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.*  

## :fa-ballot-check: Key Features

### :fa-code: Transformation Engines

:Nodinite: supports two powerful template engines, each optimized for different data formats:

|Engine|Best For|Capabilities|  
|---|---|---|  
|[XSLT][xslt]<sup>:fa-arrow-up-right-from-square:</sup>|XML data|Transform XML → HTML, XML → XML, element extraction, conditional formatting|  
|[Liquid][]<sup>:fa-arrow-up-right-from-square:</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 :new7.12: 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 :Nodinite: 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.

### :fa-recycle: Flexibility and Reusability

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

### :fa-bell: 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="{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/Email.md">:fa-envelope: 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="{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/Email%20with%20Options.md">:fa-envelope-open-text: 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="{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/Event%20Log.md">:fa-calendar-exclamation: 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>

### :fa-shield-alt: Data Security and Masking

Stylesheets enable granular control over what data users can see:

* **:fa-mask: Sensitive data redaction** - Hide credit card numbers, SSNs, passwords, API keys using template logic
* **:fa-eye-slash: 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][]
* **:fa-file-contract: Compliance-ready output** - Generate audit reports that automatically exclude PII while preserving business context
* **:fa-user-lock: Custom masking rules** - Use XSLT/Liquid conditional logic to implement organization-specific data protection rules

### :fa-cogs: How It Works

:Nodinite: 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] :new7.11: - 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.

___

## :fa-hand-point-right: Next Steps

Start using Stylesheets to transform your data:

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

## :fa-link-horizontal: Related Topics

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

* **Notification Channels**  
  * :fa-bell: [Alarm Plugins][] - The notification channels that use Stylesheets  
  * :fa-envelope-open-text: [E-mail with options][] - Create interactive email alerts with decision buttons  
  * :fa-calendar-exclamation: [Windows Event Log][] - Format Windows Event Log output  

* **Examples and templates**  
  * :fa-code: [Alarm Plugin Object XML][] - XML structure for alarm plugin formatting  
  * :fa-file-code: [Base64Decode XML from JSON][] - Example: Transform JSON with base64-encoded XML  
  * :fa-code: [Stylesheet Examples][] - All XSLT and Liquid examples  

* **End-User Guides**  
  * :fa-search: [View message formatted as][Log View - View message using a Stylesheet] - How business users open the formatted message  
  * :fa-user: [See what happened to an order][] - Scenario that reads an order through a Stylesheet  

* **External Resources**  
  * :fa-book: [XSLT][xslt]<sup>:fa-arrow-up-right-from-square:</sup> - Learn XSLT transformation language  
  * :fa-droplet: [Liquid][]<sup>:fa-arrow-up-right-from-square:</sup> - Learn Liquid template language  

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Customize/Stylesheets/Stylesheet_Preview_last.png
[2]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Customize/Stylesheets/Stylesheet_ViewFromLogView.gif
[3]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Customize/Stylesheets/InvariantNumbers_ORD-10002.png

[Add or manage Log View]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/Add%20or%20Manage%20Log%20View.md
[Add or manage Monitor View]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/Add%20or%20manage%20Monitor%20View.md
[Add or manage Stylesheet]:{ndr}/Administration/4.%20Customize/2.%20Stylesheets/Features/Add%20or%20manage%20Stylesheet.md
[Alarm Plugin Object XML]:{ndr}/Administration/4.%20Customize/2.%20Stylesheets/Examples/Alarm%20Plugin%20Object.md
[Alarm Plugins]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/What%20is%20an%20Alarm%20Plugin.md
[Base64Decode XML from JSON]:{ndr}/Administration/4.%20Customize/2.%20Stylesheets/Examples/Base64Decode%20XML%20from%20JSON.md
[Character Encoding]:{ndr}/Core%20Services/Log%20Event/Features/Character%20Encoding.md
[E-mail]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/Email.md
[E-mail with options]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/Email%20with%20Options.md
[Endpoints]:{ndr}/Repository%20Model/Endpoints/Overview.md
[Liquid]:https://github.com/dotliquid/dotliquid
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Log View - View message using a Stylesheet]:{ndr}/Getting%20Started/2.%20Log/Open%20a%20Log%20Event%20and%20read%20its%20message.md#stylesheet
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Monitor Views Overview]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Overview.md
[Permission Set for Log Views]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/Permission%20Set%20for%20Log%20Views.md
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[Search log events from a BPM]:{ndr}/Getting%20Started/4.%20Repository/BPMs/Search%20log%20events%20from%20a%20BPM.md
[See what happened to an order]:{ndr}/Getting%20Started/Scenarios/Order%20flow/See%20what%20happened%20to%20an%20order.md
[Stylesheet Examples]:{ndr}/Administration/4.%20Customize/2.%20Stylesheets/Examples/Overview.md
[Stylesheets Overview]:{ndr}/Administration/4.%20Customize/2.%20Stylesheets/Overview.md
[StylesheetScriptsEnabled]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/StylesheetScriptsEnabled.md
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Getting%20Started/Overview.md
[Windows Event Log]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/Event%20Log.md
[xslt]:https://www.w3schools.com/xml/xml_xslt.asp