http://onionworks.net/2006/data/application
createSettings (userReference : xlink, schemaLocation : string, content : nodeset, instance : string) : xlink
The method “createSettings()” produces a document in the user profile for a user.
The first three parameters are mandatory indications. An XML is submitted for “content”.
The parameter “instance” is optional. Each instance for a user profile is clear. The configuration of the instances takes place in a “user administration” document in the editor localisation. If the instance is not specified, then the default value is “default”.
If successful, the ReferenceIdentifier of the newly created data object (i.e. the user profile) is returned as the return value.
The web application user must be the user administrator in order to execute this method.
<xsl:stylesheet xmlns:onion="http://onionworks.net/2004/schema" xmlns:app="http://onionworks.net/2006/data/application" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
</xsl:stylesheet><xsl:variable name="setting">
<usersetting onion:schema="Onion:http://www.getit.de/2007/guestbook/usersetting">
</xsl:variable><firstName>Max</firstName>
<lastName>Mustermann</lastName>
<email>max.mustermann@example.com</email>
</usersetting><xsl:variable name="settingRefId" select="app:createSettings('onion://usermanagement/users/123', 'http://www.getit.de/2007/guestbook/usersetting', $setting, 'default')" />
<xsl:if test="string-length($settingRefId) > 0">Das Benutzerprofil wurde erstellt.</xsl:if>
</xsl:template>Creating user profile