- 2 minutes to read

Stylesheet Examples

Learn by example: explore XSLT and Liquid stylesheets that transform business messages into readable, formatted output. From base64-decoded XML to Alarm Plugin formatting, these examples demonstrate real-world stylesheet patterns.

On this page, you will find:

✅ Working stylesheet examples for common transformation scenarios
✅ Both XSLT and Liquid template patterns
✅ Real-world use cases from various industries and data formats


Core Examples

Base64-Decode XML from JSON

Format: JSON input with base64-encoded XML content
Technology: Liquid with JavaScript
Output: Decoded XML displayed in CodeMirror editor with download capability

Transform JSON messages that contain base64-encoded XML payloads into readable XML. Useful for systems that wrap XML inside JSON for transport, or for displaying embedded content that end-users need to inspect.

View Base64-Decode XML from JSON Example


Alarm Plugin Object Formatting

Format: Nodinite Alarm object XML
Technology: XSLT
Output: Formatted alert notifications

Transform Nodinite alarm notifications into custom formats for email, Slack, PagerDuty, and other alerting platforms. Learn the complete XML structure of alarm objects and how to extract relevant business data.

View Alarm Plugin Object Example


EDIFACT Line Breaking

Format: EDI Flat File
Technology: XSLT
Output: Line-broken, readable EDI format

Transform compact EDIFACT messages into readable line-by-line format. Useful for operators who need to inspect or verify EDI interchange content in Nodinite Log Views.

View EDIFACT Line Breaking Example


XML to XML Transformation

Format: XML to XML
Technology: XSLT
Output: Reformatted or restructured XML

Transform XML structures from one schema to another. Useful for reshaping messages to hide sensitive data, restructure for reporting, or conform to different system requirements.

View XML to XML Example


O2C Demo Stylesheets

The Order-to-Cash demo includes production-ready stylesheets for demonstrating log message formatting across 7 business domains:

  • JSON Order Received - Displays customer order details in a readable table
  • XML/CSV/PSV Examples - In development for additional steps

Learn more about using stylesheets in the O2C demo and see how raw messages transform into business-friendly reports:

View O2C Demo Stylesheets Overview


How to Apply These Examples

  1. Copy the stylesheet code from the example page
  2. Navigate to Administration → Customize → Stylesheets
  3. Click Add Stylesheet
  4. Paste the template code
  5. Bind to your Message Type
  6. Test with sample data using the Preview feature

For complete guidance, see Add or manage Stylesheet.


Next Step