---
title: O2C Demo Stylesheets - Format and Display Log Events
description: "The Nodinite Order-to-Cash demo has one Stylesheet per step: Liquid for JSON, CSV, and pipe-separated bodies, and XSLT for XML. See which Stylesheet renders which message, and how Message Body is Json works."
---

# O2C Demo Stylesheets

Read every message of an order as a business document. The [Order-to-Cash demo][Overview] logs seven messages per order in four formats, and <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Stylesheets][] render each of them as an order, a schedule, a packing slip, a delivery note, or an invoice, with no external tools.

![BPM Log Search of the Order-to-Cash BPM: one order opened step by step, Order Received as an Order Report, Order Entry as an ERP document, and Order Delivered as a delivery note, animated walkthrough (7.12)][1]  
*Animated walkthrough: one order in [BPM Log Search][Search log events from a BPM], read through three Stylesheets: JSON (Step 1), XML (Step 2), and pipe-separated (Step 6). The walkthrough shows order ORD-10002; the step pages show ORD-10005.*  

On this page, you will:

* ✅ Find the Stylesheet for each of the seven O2C steps  
* ✅ See which engine renders which format: Liquid for JSON, CSV, and PSV, XSLT for XML  
* ✅ Set **Message Body is Json** right for each format  

## <i class="fal fa-diagram-project" aria-hidden="true"></i> What Are Stylesheets?

A **Stylesheet** is a template that transforms raw message data into a readable view. Instead of showing raw JSON, XML, or delimited text, a Stylesheet presents the business data (customer names, order IDs, amounts, statuses) as a document. Each Stylesheet is tied to one or more [Message Types][]; <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> offers it in the **Action** menu of every [Log Event][] with a matching Message Type.

<div class="mermaid">
graph LR
    A["fa:fa-file-code Raw message<br/>JSON, XML, CSV, PSV"] --> B{"fa:fa-tags Message Type"}
    B --> C["fa:fa-palette Stylesheet<br/>Liquid or XSLT"]
    C --> D["fa:fa-file-alt Business document"]
    style A fill:#2678BD
    style B fill:#9E59BB
    style C fill:#FFD525
    style D fill:#93d16d
</div>

*The raw message (blue) is matched to its [Message Type][Message Types] (purple); the Liquid or XSLT [Stylesheet][Stylesheets] (yellow) renders a business document (green).*

### Why Use Stylesheets

* **User-friendly displays**: turn technical formats into readable documents that business users understand
* **Data protection**: show the business context without the fields a user shouldn't see
* **Consistency**: render every message of a Message Type the same way

## <i class="fal fa-list" aria-hidden="true"></i> Available Stylesheets

The demo has one Stylesheet per step. Each is bound only to the Message Type of its step's business event, the event the [BPM][] shows. The step numbers are the ones the BPM shows (Step 1 to Step 7).

|Step|Format|Engine|Stylesheet|Message Type|Renders|
|---|---|---|---|---|---|
|1|JSON|Liquid|[O2C - View Order][1-Order-Received]|`O2C.Order.Received/1.0`|Order Report: customer, ship-to, order lines, total|
|2|XML|XSLT|[O2C - View Order Entry][2-Order-Entry]|`O2C.Order.Entry/1.0`|ERP reference, dates, status, lines with reservation|
|3|CSV|Liquid|[O2C - View Order Confirmation][3-Order-Confirmation]|`O2C.Order.Confirmation/1.0`|Confirmation number, customer and e-mail, lines, ship date|
|4|JSON|Liquid|[O2C - View Order Planned][4-Order-Planned]|`O2C.Order.Scheduled/1.0`|Schedule, priority, production lines, materials|
|5|XML|XSLT|[O2C - View Order Ready][5-Order-Ready]|`O2C.Order.Ready/1.0`|Packing slip: warehouse, ship-to, carrier, tracking, items|
|6|PSV|Liquid|[O2C - View Order Shipped][6-Order-Shipped]|`O2C.Order.Delivered/1.0`|Delivery note with proof of delivery|
|7|JSON|Liquid|[O2C - View Order Invoice][7-Order-Invoiced]|`O2C.Order.Invoice/1.0`|Invoice: bill-to, terms, lines with tax, totals|

Every Stylesheet is active and has **Render as HTML** checked. The forwarding events of the steps log `O2C.Forwarding/1.0`; of the demo Stylesheets, only **O2C - View Order** is also bound to it, because the forwarding event of Step 1 (*Order Forwarded to ERP*) carries the same JSON. On the forwarding events of the other steps it renders an empty Order Report.

## <i class="fal fa-gears" aria-hidden="true"></i> Choosing the Engine and Message Body is Json

|Body|Engine|Message Body is Json|How the template reads the body|
|---|---|---|---|
|JSON|Liquid|✅ Checked|<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> parses the JSON; every property is a Liquid variable (`{{ orderId }}`, `{{ customer.name }}`)|
|XML|XSLT|Not shown|XSLT reads the XML directly; the checkbox only appears for Liquid|
|CSV, PSV|Liquid|☐ Unchecked (no effect)|The whole body is one string in `data`; the template splits it with Liquid filters|

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>Check <strong>Message Body is Json</strong> for JSON bodies. With it unchecked, a JSON template still renders, but every field is empty. For XML, CSV, and PSV it has no effect; leave it unchecked.</p></div>
</aside>

**Message Body is Json** is a setting on the Stylesheet, not on the [Log View][Log Views]. When it is unchecked, or the body isn't JSON, the raw body is in the Liquid variable `data`, and Liquid filters handle it: the [CSV][3-Order-Confirmation] and [PSV][6-Order-Shipped] templates split `data` into lines and fields with `newline_to_br`, `split`, and `strip`. A quoted field that contains the separator is split too, since Liquid has no CSV parser.

The JSON parser normalizes dates and numbers before Liquid sees them (`2025-10-16T14:30:00Z` shows as `2025-10-16 14:30:00`, `1245.0` as `1245`). XML, CSV, and PSV values show exactly as the message holds them.

## <i class="fal fa-list-ol" aria-hidden="true"></i> How to Use

1. [Add a Stylesheet][Add or manage Stylesheet] and paste the template from the step's page.
2. Set **Type** and **Message Body is Json** as in the table above, and check **Render as HTML**.
3. Associate the Stylesheet with the step's [Message Type][Message Types].
4. Open a matching event from a [Log View][Log Views] or from [BPM Log Search][Search log events from a BPM] <sup><span class="nodinite-new-badge">New 7.11</span></sup>, choose **Action**, and pick **View message formatted as** the Stylesheet. The dialog **View message body formatted as '…'** has the buttons **Open in New Window**, **Print**, and **Close**.

For complete guidance on creating and managing Stylesheets, see [What is a Stylesheet?][Stylesheets] in the Customize section.

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

* <i class="fal fa-palette" aria-hidden="true"></i> [Order Received Stylesheet][1-Order-Received] — The first example, with an animated walkthrough  
* <i class="fal fa-palette" aria-hidden="true"></i> [Order Confirmation Stylesheet][3-Order-Confirmation] — Render a CSV file with Liquid  
* <i class="fal fa-play" aria-hidden="true"></i> [Generate demo data][Generate-O2C-Demo-Data] — Create test messages  

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

* <i class="fal fa-file-lines" aria-hidden="true"></i> [What is a Stylesheet?][Stylesheets]  
* <i class="fal fa-file-circle-plus" aria-hidden="true"></i> [Add or manage Stylesheet][]  
* <i class="fal fa-magnifying-glass" aria-hidden="true"></i> [Log Views][]  
* <i class="fal fa-house" aria-hidden="true"></i> [O2C Demo Overview][Overview]  
* <i class="fal fa-book" aria-hidden="true"></i> [Stylesheet Examples][Stylesheet Examples]  
* <i class="fal fa-sitemap" aria-hidden="true"></i> [Search log events from a BPM][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Repository/BPMs/O2C/O2C_Stylesheets_AcrossSteps.gif

[1-Order-Received]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/stylesheets/1-order-received/
[2-Order-Entry]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/stylesheets/2-order-entry/
[3-Order-Confirmation]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/stylesheets/3-order-confirmation/
[4-Order-Planned]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/stylesheets/4-order-planned/
[5-Order-Ready]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/stylesheets/5-order-ready/
[6-Order-Shipped]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/stylesheets/6-order-shipped/
[7-Order-Invoiced]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/stylesheets/7-order-invoiced/
[Add or manage Stylesheet]:https://docs.nodinite.com/administration/customize/stylesheets/features/add-or-manage-stylesheet/
[BPM]:https://docs.nodinite.com/repository-model/bpms/overview/
[Generate-O2C-Demo-Data]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/generate-o2c-demo-data/
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[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/
[Overview]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/overview/
[Search log events from a BPM]:https://docs.nodinite.com/getting-started/repository/bpms/search-log-events-from-a-bpm/
[Stylesheet Examples]:https://docs.nodinite.com/administration/customize/stylesheets/examples/overview/
[Stylesheets]:https://docs.nodinite.com/administration/customize/stylesheets/features/what-is-a-stylesheet/