---
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 :Nodinite: [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  

## :fa-diagram-project: 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][]; :Nodinite: 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

## :fa-list: 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.

## :fa-gears: Choosing the Engine and Message Body is Json

|Body|Engine|Message Body is Json|How the template reads the body|
|---|---|---|---|
|JSON|Liquid|✅ Checked|:Nodinite: 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|

>[!IMPORTANT]
>Check **Message Body is Json** 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.

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

## :fa-list-ol: 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] :new7.11:, 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.

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

* :fa-palette: [Order Received Stylesheet][1-Order-Received] — The first example, with an animated walkthrough  
* :fa-palette: [Order Confirmation Stylesheet][3-Order-Confirmation] — Render a CSV file with Liquid  
* :fa-play: [Generate demo data][Generate-O2C-Demo-Data] — Create test messages  

## :fa-link-horizontal: Related Topics

* :fa-file-lines: [What is a Stylesheet?][Stylesheets]  
* :fa-file-circle-plus: [Add or manage Stylesheet][]  
* :fa-magnifying-glass: [Log Views][]  
* :fa-house: [O2C Demo Overview][Overview]  
* :fa-book: [Stylesheet Examples][Stylesheet Examples]  
* :fa-sitemap: [Search log events from a BPM][]  

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/BPMs/O2C/O2C_Stylesheets_AcrossSteps.gif

[1-Order-Received]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Stylesheets/1-Order-Received.md
[2-Order-Entry]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Stylesheets/2-Order-Entry.md
[3-Order-Confirmation]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Stylesheets/3-Order-Confirmation.md
[4-Order-Planned]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Stylesheets/4-Order-Planned.md
[5-Order-Ready]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Stylesheets/5-Order-Ready.md
[6-Order-Shipped]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Stylesheets/6-Order-Shipped.md
[7-Order-Invoiced]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Stylesheets/7-Order-Invoiced.md
[Add or manage Stylesheet]:{ndr}/Administration/4.%20Customize/2.%20Stylesheets/Features/Add%20or%20manage%20Stylesheet.md
[BPM]:{ndr}/Repository%20Model/BPMs/Overview.md
[Generate-O2C-Demo-Data]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Generate-O2C-Demo-Data.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[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
[Overview]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Overview.md
[Search log events from a BPM]:{ndr}/Getting%20Started/4.%20Repository/BPMs/Search%20log%20events%20from%20a%20BPM.md
[Stylesheet Examples]:{ndr}/Administration/4.%20Customize/2.%20Stylesheets/Examples/Overview.md
[Stylesheets]:{ndr}/Administration/4.%20Customize/2.%20Stylesheets/Features/What%20is%20a%20Stylesheet.md