I'm trying to use the translate function in my Input Transform SS to
force my association to lower case. I can get it to work by doing this
(below) but it's a bit messy using 2 association variables.

<!-- for each record, do an add -->
<xsl:for-each select="delimited-text/record">
<!-- see NDSDTD doc on web for Add verb syntax & details -->
<!-- get the association id into a variable -->
<xsl:variable name="association_var"
select="field[@name=$association-field-name]"/>
<!-- Force association to lower case -->
<xsl:variable name="ucase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
<xsl:variable name="lcase" select="'abcdefghijklmnopqrstuvwxyz '"/>
<xsl:variable name="association"
select="translate($association_var,$ucase,$lcase)"/>
<!-- get the src-dn id into a variable, replacing invalid DN
characters with a dash -->
<xsl:variable name="temp1"
select="concat(field[@name=$srcdn-field-name1],' ')"/>
<xsl:variable name="temp2"
select="concat($temp1,field[@name=$srcdn-field-name2])"/>
<xsl:variable name="srcdn"
select="translate($temp2,'+=,.','-----')"/>
<!-- generate the add event -->
<add class-name="{$object-class}" src-dn="{$srcdn}">
<!-- generate the association -->
<association>
<xsl:value-of select="$association"/>
</association>
<!-- handle each field -->

I'm trying to use value-of (see below) but it doesn't work. Where am i
going wrong.

<!-- for each record, do an add -->
<xsl:for-each select="delimited-text/record">
<!-- see NDSDTD doc on web for Add verb syntax & details -->
<!-- get the association id into a variable -->
<xsl:variable name="association"
select="field[@name=$association-field-name]"/>
<!-- Force association to lower case -->
<xsl:variable name="ucase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
<xsl:variable name="lcase" select="'abcdefghijklmnopqrstuvwxyz '"/>
<xsl:value-of select="translate($association,$ucase,$lcase)"/>
<!-- get the src-dn id into a variable, replacing invalid DN
characters with a dash -->
<xsl:variable name="temp1"
select="concat(field[@name=$srcdn-field-name1],' ')"/>
<xsl:variable name="temp2"
select="concat($temp1,field[@name=$srcdn-field-name2])"/>
<xsl:variable name="srcdn"
select="translate($temp2,'+=,.','-----')"/>
<!-- generate the add event -->
<add class-name="{$object-class}" src-dn="{$srcdn}">
<!-- generate the association -->
<association>
<xsl:value-of select="$association"/>
</association>