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.
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
- Copy the stylesheet code from the example page
- Navigate to Administration → Customize → Stylesheets
- Click Add Stylesheet
- Paste the template code
- Bind to your Message Type
- Test with sample data using the Preview feature
For complete guidance, see Add or manage Stylesheet.
Next Step
- Choose an example above and review the complete code
- Add or manage Stylesheet to deploy in Nodinite
- Message Types - Associate stylesheets with your messages