createSettings (schemaLocation : string, content : nodeset, [instance : string]) : string

The method “createSettings” produces a document in the user profile for the user currently logged in.

The first two parameters are mandatory indications. An XML is submitted for “content”.

The parameter “instance” is optional. Each instance for a user profile is clear. If the instance is not specified, then the default value is “default”.

If successful, the ReferenceIdentifier for the document is returned as the return value.

<xsl:stylesheet xmlns:onion="" xmlns:xsl="" xmlns:user="" version="1.0">
<xsl:template match="/">
<xsl:variable name="setting">
<usersetting onion:schema="Onion:">
<xsl:if test="user:login('testuser', 'test')">
<xsl:variable name="settingRefId" select="user:createSettings('', $setting, 'default', 'testuser2')" />
<xsl:if test="string-length($settingRefId) > 0">The userprofile was created successfuly.</xsl:if>
<xsl:value-of select="user:logout()" />
Creating user profile