To give you a better understanding the desired workflow is something like this: I already have a button. When the user clicks the button a window with a textarea appears. The user inputs his plain text and after a click on a button this data should be passed to the xsl sheet from the textarea. Then the transformation should be performed and the result should be returned.
How is it possible to pass user input to the XSL sheet? Any help would be appreciated. Thanks!
Use transformer.setParameter("key", "value");
and within the stylesheet use
<xsl:param name="key" /> at the beginning of your stylesheet.
Then you refer to it like to any other xsl variable: e.g.