---
title: Order Ready Stylesheet - XSLT Packing Slip Example
description: "Render the XML Order Ready messages of the Nodinite Order-to-Cash demo as a packing slip with the XSLT Stylesheet O2C - View Order Ready: warehouse, ship-to, carrier, tracking, and packed items (7.12)."
---

# Order Ready Stylesheet

> This page provides the **XSLT** [Stylesheet][Stylesheets] **O2C - View Order Ready** for the XML **Order Ready** messages (Step 5) in the [Order-to-Cash demo][Generate-Demo].

![O2C BPM Viewer with order ORD-10005 for Tailspin Toys, Action on the Order Completed for Transport event and View message formatted as O2C - View Order Ready, ending on the Packing Slip PKG-2025-10005, animated walkthrough (7.12)][1]  
*Animated walkthrough: in the BPM Viewer of [BPM Log Search][Search log events from a BPM], open **Action** on the *Order Completed for Transport* event of order `ORD-10005` and choose **View message formatted as 'O2C - View Order Ready'**.*  

**Give the warehouse and support the packing slip.** With <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Stylesheets][], anyone who traces an order sees where it was packed, how it ships, and the tracking number, without reading XML. On this page, you will:

* ✅ Transform the XML Order Ready message into a packing slip with XSLT  
* ✅ Show the ship-to address and the shipment next to each other  
* ✅ Open the packing slip from [Log Views][] and from [BPM Log Search][Search log events from a BPM] <sup><span class="nodinite-new-badge">New 7.11</span></sup>  

## <i class="fal fa-diagram-project" aria-hidden="true"></i> Understanding the Order Ready Stylesheet

A [Stylesheet][Stylesheets] is tied to a [Message Type][Message Types]. The business [Log Event][] of Step 5, *Order Completed for Transport*, carries the Message Type `O2C.Order.Ready/1.0`, so <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> offers **O2C - View Order Ready** for it. XSLT reads the XML body directly; the namespace `http://schemas.Contoso.example/O2C/1.0` is bound to the prefix `o` in the template, as in the [Order Entry Stylesheet][Previous-XSLT].

<div class="mermaid">
graph LR
    A["fa:fa-inbox Order Ready<br/>Log Event (XML)"] --> B{"fa:fa-tags Message Type<br/>O2C.Order.Ready/1.0"}
    B --> C["fa:fa-file-code O2C - View Order Ready<br/>(XSLT)"]
    C --> D["fa:fa-file-alt Packing slip"]
    D --> E1["fa:fa-search Log Views"]
    D --> E2["fa:fa-sitemap BPM Log Search"]
    style A fill:#2678BD
    style B fill:#9E59BB
    style C fill:#3F827B
    style D fill:#93d16d
    style E1 fill:#2678BD
    style E2 fill:#2678BD
</div>

*The Order Ready [Log Event][] (blue) is matched to its [Message Type][Message Types] (purple); the XSLT [Stylesheet][Stylesheets] (teal) renders the packing slip (green), which users open from a [Log View][Log Views] or from [BPM Log Search][Search log events from a BPM] (blue).*

### <i class="fal fa-puzzle-piece" aria-hidden="true"></i> Where Users Open the Packing Slip

|Where|How|
|---|---|
|[Log Views][]|Search the Log View, open **Action** on the *Order Completed for Transport* event, and choose **View message formatted as 'O2C - View Order Ready'**.|
|[Log Search][Search log events from a BPM] on a BPM <sup><span class="nodinite-new-badge">New 7.11</span></sup>|Click **Log Search** on the Order-to-Cash [BPM][], search for the order number, and open **Action** on the Ready for Transport event in the BPM Viewer.|

The dialog is titled **View message body formatted as 'O2C - View Order Ready'** and has the buttons **Open in New Window**, **Print**, and **Close**. The forwarding event of the step, *Packing Request Received*, logs `O2C.Forwarding/1.0`, so this Stylesheet isn't offered there.

![Packing Slip PKG-2025-10005 for order ORD-10005 rendered by the O2C - View Order Ready Stylesheet, with the Stockholm ship-to address, carrier Nordic Freight, the tracking number, one packed item with its serial number, and the status COMPLETED (7.13)][2]  
*The XML Order Ready message rendered as a packing slip: warehouse and zone, ship-to, shipment with carrier and tracking number, and the packed items with serial numbers.*  

### <i class="fal fa-gear" aria-hidden="true"></i> Stylesheet Settings

|Setting|Value|Why|
|---|---|---|
|Name|`O2C - View Order Ready`|The name users pick in the **Action** menu|
|Type|XSLT|The Order Ready body is XML|
|Render as HTML|**Checked**|The template outputs an HTML page|
|Message Body is Json|Not shown|The checkbox only appears for Liquid; XSLT always reads the body as XML|
|Message Types|`O2C.Order.Ready/1.0`|Only the Step 5 business event gets the Stylesheet|

## <i class="fal fa-file-code" aria-hidden="true"></i> Input XML

The Order Ready body of order 1 as logged by the [demo data script][Generate-Demo], the same message as on the [Step 5 page][Order-Ready-Message]. Warehouse, carrier, and address follow the customer ([the six demo customers][Demo Customers]).

```xml
<?xml version="1.0" encoding="utf-8"?>
<OrderPacking xmlns="http://schemas.Contoso.example/O2C/1.0">
  <PackingHeader>
    <PackingId>PKG-2025-10001</PackingId>
    <OrderId>ORD-10001</OrderId>
    <PackingDate>2025-10-16T16:45:30Z</PackingDate>
    <PackingStatus>COMPLETED</PackingStatus>
    <Warehouse>WH-01</Warehouse>
    <Zone>ZONE-A</Zone>
  </PackingHeader>
  <Customer>
    <CustomerId>CUST-001</CustomerId>
    <CustomerName>Contoso Corporation</CustomerName>
    <ShippingAddress>100 Commerce Drive, Suite 100, Springfield, IL 62701</ShippingAddress>
  </Customer>
  <PackedItems>
    <PackedItem>
      <LineId>1</LineId>
      <SKU>SKU-DEMO-001</SKU>
      <Description>Demo Widget</Description>
      <OrderedQuantity>1</OrderedQuantity>
      <PackedQuantity>1</PackedQuantity>
      <SerialNumber>SN-DW-202510001</SerialNumber>
      <Condition>NEW</Condition>
    </PackedItem>
  </PackedItems>
  <ShipmentInfo>
    <TrackingNumber>TRK-20251016-10001</TrackingNumber>
    <Carrier>Standard Courier</Carrier>
    <ShippingMethod>GROUND</ShippingMethod>
    <EstimatedDeliveryDate>2025-10-21</EstimatedDeliveryDate>
    <ShipmentWeight>5.0</ShipmentWeight>
    <WeightUnit>LBS</WeightUnit>
  </ShipmentInfo>
  <OrderTotal>99.95</OrderTotal>
  <Currency>USD</Currency>
</OrderPacking>
```

### <i class="fal fa-table" aria-hidden="true"></i> XML to Packing Slip Mapping

|XML element (prefix `o`)|Shown in the packing slip as|
|---|---|
|`o:PackingHeader/o:PackingId`|The title|
|`o:PackingHeader/o:OrderId`, `o:Warehouse`, `o:Zone`|*Order …, packed in* under the title|
|`o:Customer/o:CustomerName`, `o:Customer/o:ShippingAddress`|**Ship to**|
|`o:ShipmentInfo/o:Carrier`, `o:ShippingMethod`, `o:TrackingNumber`, `o:EstimatedDeliveryDate`|**Shipment**|
|`o:PackedItems/o:PackedItem`|**Packed Items** table: Line, SKU, Description, Ordered, Packed, Serial Number, Condition|
|`o:PackingHeader/o:PackingStatus`|*Status*, as a badge|

XML values show exactly as the message holds them. The packing date, the weight, and the order total are not displayed.

## <i class="fal fa-code" aria-hidden="true"></i> XSLT Template

```xml
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:o="http://schemas.Contoso.example/O2C/1.0" exclude-result-prefixes="o">
  <xsl:output method="html" indent="yes"/>
  <xsl:template match="/o:OrderPacking">
    <html>
      <head>
        <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet"/>
      </head>
      <body>
        <div class="container mt-4">
          <h1 class="mb-0">Packing Slip <xsl:value-of select="o:PackingHeader/o:PackingId"/></h1>
          <span class="text-muted">Order <xsl:value-of select="o:PackingHeader/o:OrderId"/>, packed in <xsl:value-of select="o:PackingHeader/o:Warehouse"/> / <xsl:value-of select="o:PackingHeader/o:Zone"/></span>
          <div class="row mt-3">
            <div class="col">
              <h6 class="text-muted mb-1">Ship to</h6>
              <strong><xsl:value-of select="o:Customer/o:CustomerName"/></strong><br/>
              <xsl:value-of select="o:Customer/o:ShippingAddress"/>
            </div>
            <div class="col">
              <h6 class="text-muted mb-1">Shipment</h6>
              <xsl:value-of select="o:ShipmentInfo/o:Carrier"/>, <xsl:value-of select="o:ShipmentInfo/o:ShippingMethod"/><br/>
              Tracking <strong><xsl:value-of select="o:ShipmentInfo/o:TrackingNumber"/></strong><br/>
              Estimated delivery <xsl:value-of select="o:ShipmentInfo/o:EstimatedDeliveryDate"/>
            </div>
          </div>
          <h5 class="mt-4">Packed Items</h5>
          <table class="table table-sm">
            <thead>
              <tr><th>Line</th><th>SKU</th><th>Description</th><th class="text-center">Ordered</th><th class="text-center">Packed</th><th>Serial Number</th><th>Condition</th></tr>
            </thead>
            <tbody>
              <xsl:for-each select="o:PackedItems/o:PackedItem">
                <tr>
                  <td><xsl:value-of select="o:LineId"/></td>
                  <td><xsl:value-of select="o:SKU"/></td>
                  <td><xsl:value-of select="o:Description"/></td>
                  <td class="text-center"><xsl:value-of select="o:OrderedQuantity"/></td>
                  <td class="text-center"><xsl:value-of select="o:PackedQuantity"/></td>
                  <td><xsl:value-of select="o:SerialNumber"/></td>
                  <td><xsl:value-of select="o:Condition"/></td>
                </tr>
              </xsl:for-each>
            </tbody>
          </table>
          <p>Status: <span class="badge badge-success"><xsl:value-of select="o:PackingHeader/o:PackingStatus"/></span></p>
          <div class="mt-5 pt-3 border-top text-center text-muted"><small>Rendered by a Nodinite Stylesheet (XSLT) from the Order Ready message</small></div>
        </div>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>
```

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

* <i class="fal fa-palette" aria-hidden="true"></i> [Order Shipped Stylesheet][Next-Stylesheet] — The pipe-separated delivery message of Step 6  
* <i class="fal fa-palette" aria-hidden="true"></i> [View all O2C stylesheets][Overview] — Every demo Stylesheet and its settings  
* <i class="fal fa-play" aria-hidden="true"></i> [Generate O2C Demo Data][Generate-Demo] — Create test messages for this Stylesheet  

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

* <i class="fal fa-arrow-left" aria-hidden="true"></i> [Order Planned Stylesheet][Previous-Stylesheet]  
* <i class="fal fa-box" aria-hidden="true"></i> [5. Order Completed for Transport][Order-Ready-Message] — The step this message belongs to  
* <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-tags" aria-hidden="true"></i> [Message Types][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Repository/BPMs/O2C/O2C_Stylesheet_5-Order-Ready_Open.gif
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Repository/BPMs/O2C/O2C_Stylesheet_5-Order-Ready.png

[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/
[Demo Customers]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/generate-o2c-demo-data/#fa-users-customers-products-and-grouping
[Generate-Demo]: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/
[Next-Stylesheet]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/stylesheets/6-order-shipped/
[Order-Ready-Message]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/5-order-ready/
[Overview]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/stylesheets/overview/
[Previous-Stylesheet]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/stylesheets/4-order-planned/
[Previous-XSLT]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/stylesheets/2-order-entry/
[Search log events from a BPM]:https://docs.nodinite.com/getting-started/repository/bpms/search-log-events-from-a-bpm/
[Stylesheets]:https://docs.nodinite.com/administration/customize/stylesheets/features/what-is-a-stylesheet/