Follow me @MarkXA

Subscribe

Donate

XSL extension functions

To access XSL extension functions, add a namespace reference to "urn:ddrmenu" to your stylesheet, e.g.

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ddr="urn:ddrmenu">

This will give you access to the following function:

  • UserIsInRole(roleName): returns "true" or "false" depending on whether the current user is in the specified role. e.g.
    <xsl:if test="ddr:UserIsInRole('Administrators')='true'">