External XSLT functions


XSLT allows using an external function for specific data management, that cannot be performed by means of XSLT. In the XSLT theme, you can use two external functions - fixquote and replace. On Linux systems, they are implemented in the panel side, on Windows - on Microsoft JScript, and are located in extfunc.xsl.

To use the functions in xsl, add namespace mgr into the file, and import the extfunc.xsl file.

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="" xmlns:mgr="" exclude-result-prefixes="mgr">
  <xsl:import href="extfunc.xsl"/>
The fixquote function escapes quotation marks.

The replace function is used for replacement.


<xsl:value-of select="mgr:fixquote(/doc/comment)"/>