Format and constraints of rules

Define an authenticated user mapping rule as an XSL template in an XSL style sheet.

Write the rule in a valid XSL template rule format by using XSLT version 1.0. It must return a text document that contains the string identifiers in User mapping rules evaluator.

The following authenticated user mapping rule example references the XML data that is defined in stsuuser:STSUniversalUser to add an attribute that is called authn_method to the user credential.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:stsuuser=
"urn:ibm:names:ITFIM:1.0:stsuuser" version="1.0">

<!-- Required to constrain output of rule evaluation -->
<xsl:output method="text" omit-xml-declaration="yes" encoding='UTF=8' indent="no"/>

<!-- Need this to ensure default text node printing is off -->
<xsl:template match="text()"></xsl:template>

<!-- Let's make it easier by matching the constant part of our XML name -->
<xsl:template match="/XMLUMI/stsuuser:STSUniversalUser/stsuuser:AttributeList">
    <attribute name='authn_method'><xsl:value-of select="stsuuser:Attribute
    [@name='method']/stsuuser:Value"/></attribute>
</xsl:template>

</xsl:stylesheet>