---
title: StylesheetScriptsEnabled System Parameter – Browser Scripts in Nodinite Stylesheets
description: "The StylesheetScriptsEnabled System Parameter decides whether a Nodinite Stylesheet's own browser script runs where its output is shown: script tags, event handlers and javascript: links, in XSLT and Liquid. Scripts run isolated from the Web Client; msxsl:script never runs."
---

# StylesheetScriptsEnabled - System Parameter

**StylesheetScriptsEnabled** decides whether a [Stylesheet's][What is a Stylesheet] own browser script runs where the [Web Client][] shows its output: script tags, event handlers such as `onerror` and `onclick`, and `javascript:` links, in XSLT and Liquid alike, also when they come from the logged message.

<h2 id="at-a-glance"><i class="fal fa-table" aria-hidden="true"></i> At a Glance</h2>

| Property | Value |
| --- | --- |
| Key | `StylesheetScriptsEnabled` |
| Data type | boolean |
| Default | `false` (scripts don't run) on a new installation; an upgrade keeps the current value |
| Read by | [Web Client][] only |
| Takes effect | Within about 45 seconds; no restart needed |
| Status | ✅ Active |
| Since | Nodinite 7 |

## <i class="fal fa-gears" aria-hidden="true"></i> How It Works

![StylesheetScriptsEnabled set to false and saved; in a Log View the EDIFACT invoice formatted by the Line break an EDIFACT example stays empty; set to true and saved; formatted again, the invoice shows one segment per line, animated walkthrough (7.12)][Hero]  
*Animated walkthrough: with `false` the [Line break an EDIFACT][] Stylesheet loses its script, and the formatted invoice stays empty. With `true` the script runs, isolated from the Web Client, and the invoice shows one segment per line. The value was put back afterwards.*  

[Stylesheets][] format message bodies in [Log Views][]: the **View message body formatted as** dialog, the Stylesheet editor preview, and **Open in New Window**. <sup><span class="nodinite-new-badge">New 7.12</span></sup> That output always runs in a frame with an origin of its own. Its script, when allowed, can't read the Web Client's window, cookies, storage, or API answers. Charts, [Mermaid][] diagrams, forms, links that open new tabs, downloads, and **Print** keep working, and so do images from the [Image Library][] and icons.

| Value | Behaviour |
| --- | --- |
| `false` (default on a new installation) | ❌ No script from a Stylesheet runs: no script tags, no event handlers, no `javascript:` links. Mermaid diagrams still draw, because <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>'s own page scripts run. Chart.js charts don't, because they need the Stylesheet's own script. Liquid templates lose their script blocks before rendering, as always. |
| `true` | ✅ The Stylesheet's scripts run, isolated from the Web Client as described above. A script error inside a library such as Chart.js shows only as *Script error.*, without details. |

The [Logging Service][] and the [Monitoring Service][] don't read this parameter, and alert e-mails sent through [Alarm Plugins][] never run browser script.

The [Line break an EDIFACT][] and [Base64Decode XML from JSON][] examples contain JavaScript and need this parameter set to `true`.

<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><sup><span class="nodinite-new-badge">New 7.12</span></sup> A new installation sets <strong>StylesheetScriptsEnabled</strong> to <code>false</code>. An upgrade keeps the value it already has, and installations before 7.12 were set up with <code>true</code>. After an upgrade, check the value, and set it to <code>false</code> unless a Stylesheet needs scripts.</p></div>
</aside>

<h3 id="msxsl-script">msxsl:script Never Runs</h3>

`msxsl:script` blocks in XSLT Stylesheets never run in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 7, whatever the value of this parameter, because .NET can't compile them. A Stylesheet with an unused block works. A Stylesheet that calls a script function shows this message instead of the formatted body:

![The View message body formatted as dialog with the message that the Stylesheet calls an msxsl:script and scripts in XSLT Stylesheets can't run in Nodinite 7 (7.12)][1]  
*A Stylesheet that calls an `msxsl:script` function: use the built-in functions instead, or remove the script.*  

Rewrite such a Stylesheet with standard XSLT functions. For example, format a date with `substring` and `concat` instead of a C# `DateTime` script:

```xml
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <result>
      <formatted-date>
        <!-- 2026-11-09T15:43:22 becomes 2026-11-09 15:43:22 -->
        <xsl:value-of select="concat(substring(/data/timestamp, 1, 10), ' ', substring(/data/timestamp, 12, 8))"/>
      </formatted-date>
    </result>
  </xsl:template>
</xsl:stylesheet>
```

## <i class="fal fa-lightbulb" aria-hidden="true"></i> Choosing a Value

* For security, keep the default `false` unless a Stylesheet really needs browser script, for example for Chart.js charts.
* Before you set it to `false`, review your [Stylesheets][] for scripts. Their output still shows, without the parts the scripts draw.
* Scripts run isolated, but they still run in the reader's browser. Review who is a member of the Administrator [Role][Roles], and review new Stylesheets before you use them.

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

* <i class="fal fa-palette" aria-hidden="true"></i> [What is a Stylesheet][]  
* <i class="fal fa-pen-to-square" aria-hidden="true"></i> [Add or manage Stylesheet][]  
* <i class="fal fa-gears" aria-hidden="true"></i> [Manage System Parameters][]  

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

* <i class="fal fa-palette" aria-hidden="true"></i> [Stylesheets][]  
* <i class="fal fa-list" aria-hidden="true"></i> [Log Views][]  
* <i class="fal fa-bell" aria-hidden="true"></i> [Alarm Plugins][]  
* <i class="fal fa-users-cog" aria-hidden="true"></i> [Roles][]  
* <i class="fal fa-globe" aria-hidden="true"></i> [Web Client][]  
* <i class="fal fa-shield-halved" aria-hidden="true"></i> [ArticleSecurityPolicy][]  
* <i class="fal fa-shield-halved" aria-hidden="true"></i> [HTTP Security Headers][]  
* <i class="fal fa-cog" aria-hidden="true"></i> [System Parameters][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Customize/Stylesheets/XsltScriptNotSupported.png

[Add or manage Stylesheet]:https://docs.nodinite.com/administration/customize/stylesheets/features/add-or-manage-stylesheet/
[Alarm Plugins]:https://docs.nodinite.com/administration/settings/alarm-plugins/overview/
[ArticleSecurityPolicy]:https://docs.nodinite.com/administration/settings/system-parameters/articlesecuritypolicy/
[Base64Decode XML from JSON]:https://docs.nodinite.com/administration/customize/stylesheets/examples/base64decode-xml-from-json/
[Hero]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Settings/SP/SystemParameters_StylesheetScripts.gif
[HTTP Security Headers]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/hardening/http-security-headers/
[Image Library]:https://docs.nodinite.com/repository-model/images/features/what-is-the-image-library/
[Line break an EDIFACT]:https://docs.nodinite.com/administration/customize/stylesheets/examples/line-break-an-edifact/
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/overview/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[Manage System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/manage-system-parameters/
[Mermaid]:https://docs.nodinite.com/mapify/features/mermaid-rendering/
[Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/overview/
[Roles]:https://docs.nodinite.com/administration/access-management/roles/overview/
[Stylesheets]:https://docs.nodinite.com/administration/customize/stylesheets/overview/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Web Client]:https://docs.nodinite.com/core-services/web-client/overview/
[What is a Stylesheet]:https://docs.nodinite.com/administration/customize/stylesheets/features/what-is-a-stylesheet/