<token-map> maps the result of
the enclosed tokens from the values specified by
the src column to the dest column in
the the mapping
table specified by table. If the values from multiple
source columns are to be mapped to a dest column,
<token-map-source-col> can to be used
inside <token-map> with the details
of multiple source dolumns. The type attribute can be used
to specify if all the values of the source columns have to be matched
or the value of any of source column can be matched. Refer examples below.
The table attribute should be the slash form
DN of the DirXML-Resource object containing the mapping table to
be used. The DN may be relative to the including
policy.
If this token is evaluated in a context where a
node-set result is expected and multiple rows are
matched by the value being mapped, then a node-set
is returned that contains the values from the
destination column of each matching row. Otherwise
only the value from the first matching row is
returned.
If no rows are matched by the value being mapped and
a non-empty value for default-value is provided,
then the token returns the value of default-value,
otherwise it returns the empty string if being evaluated
in a context that is expecting a string, or an empty node-set
if evaluated in a context that is expecting a node-set.
Example
<token-map dest="code" source="dept" table="./Department Table">
<token-op-attr name="OU"/>
</token-map>
<token-map dest="resourceDN" source="entitlementName" table="..\EntitlementLLIDMapping" type="AND">
<token-local-variable="entName"/>
<token-map-source-col name="LLID">
<token-local-variable name="_llid_"/>
</token-map-source-col>
</token-map>