How to access username in xsl?

anderserla

Member since: 2015-02-26 10:21

Added: 2015-02-26 10:24

Hi
I would like to acces username in my Javscript app that is included in a xsl template. Could you give me a hint how to do that?

Regards
Anders Erlandsson

JonnySvedje

Member since: 2015-05-18 09:02

Added: 2015-05-18 09:13

Wouldnt it be possible to transform the username from xml via xsl to a data-attribute on an element or a hidden input field?

anderserla

Member since: 2015-02-26 10:21

Added: 2015-05-18 11:11

Solved it by using <xsl:value-of select="usr" />