I need to specify a location to insert the counter for the unique name token. Anyone know of a way to do that? In this case I am using unique name to generate an email address. If the numeral is appended to the end, you have an email address that is not valid. Here is my example so far:

<do-set-default-attr-value name="Internet EMail Address" write-back="true">
<arg-value type="string">
<token-unique-name counter-pad="false" name="Internet EMail Address" scope="subtree">
<arg-string>
<token-attr name="Given Name"/>
<token-text xml:space="preserve">.</token-text>
<token-substring length="1">
<token-attr name="uthMiddleName"/>
</token-substring>
<token-text xml:space="preserve">.</token-text>
<token-attr name="Surname"/>
<token-text xml:space="preserve">@uth.tmc.edu</token-text>
</arg-string>
</token-unique-name>
</arg-value>
</do-set-default-attr-value>

What I'd ideally like to do is have an argument string that looks something like:

<arg-string>
<token-attr name="Given Name"/>
<token-text xml:space="preserve">.</token-text>
<token-substring length="1">
<token-attr name="uthMiddleName"/>
</token-substring>
<token-text xml:space="preserve">.</token-text>
<token-attr name="Surname"/>
<token-counter>
<token-text xml:space="preserve">.</token-text>
<token-counter-value/>
</token-counter>
<token-text xml:space="preserve">@uth.tmc.edu</token-text>
</arg-string>

This adds the following section:
<token-counter>
<token-text xml:space="preserve">.</token-text>
<token-counter-value/>
</token-counter>

Basically the counter would be an inherent IF statement so that you could include other bits and pieces if needed (like I have done with an additional period here) and then you could specify the location of the counter value itself.

Any way to access and locate that value? I can't find anything so I'm afraid I will have to resort to having 10 patterns with a different number on each and just not using the counter option?

Or is there an easy way to append the domain name portion while doing the query so that the token only builds the naming portion? I know developers love it when you start repurposing things