The Extensible Stylesheet Language (XSL) is used in WebManager to transform the unpersonalized XML of a page to personalized HTML. Personalization can be done for a page or in a form handler. The XML of the latter looks different, it only contains the flow information.
Using XSL for user profiles
The expressions below can be used for personalization of a page. See the Personalization Toolkit documentation on how to use these in WebManager.
Show all fields + values from the user session
Show the username from the session
Show the entire user name:
Check if a user has logged in
type: condition
Check if a user has not logged in
type: condition
Check if a webuser is part of a certain webuser group:
Check if this is the first visit of a visitor
Check if the visitor has visited the site before
Check if the user is younger than 50
Using XSL in forms
Basically the same as transforming the information on a page, XSL can be used to retrieve form information from the flow part of the unpersonalized page XML and display it.
Show all form values on the page
Check if the form session exists
or
Check a form value based on an xsltag
Show the contents of a form field based on an XSL tag
XSL in form handlers
The expressions below can be used in form handlers. Note that form handlers do not use the complete unpersonalized page XML; they only have access to the "flow" part of it. Therefore the XPATH expressions will start with "/flow" instead of "/root/system/flow".
Check on form errors
Check a form value based on an xsltag
Show all form values in for example an email handler:
Miscellaneous expressions
Show a request (query string) parameter:
Generic personaliztion tag to show a request (query string) parameter:
Then use with:
To create an A HREF tag with XSL:
How to xmldebug on sites where you can't access xmldebug (don't use this on production environments!):
in menu Format -> Personalize make an expression with tag name wm-xmldebug of typ xsl with this XSLT:
XSL characters
- space:
- greater than '>' :
- less than '<' :
