Ok, maybe this will help. Here is what I have to show the Nick Name, and the name field includes 0 to 3 NickNickNick, I need to parse it to ||| or Nick|Nick|Nick| or Nick|| or Nick|Nick||
<xsl:choose>
<xsl:when test="name[@type='other']">
<xsl:apply-templates select="name[@type='other']"/>
<xsl:text>|</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>|</xsl:text>
<xsl:text>|</xsl:text>
<xsl:text>|</xsl:text>
</xsl:otherwise>
<xsl:text>#10;</xsl:text>
</xsl:choose>
And, here is the output:
99999999|U|R|lastnm, firstnm middle|GQZE|Department of XXXXX Management|Director|||||||123 fun Street, Second Floor|EMP|6114|
00-000-000-0000||00-000-000-0000||99999999|
[email protected]|M|||||||||||00-000-000-0000|99999999|||||||||||||||||||||99999
999|W|W||S|W|||lastnm, firstnmlastnm, firstnm M.|
What should I change in the code so I see this output:
99999999|U|R|lastnm, firstnm middle|GQZE|Department of XXXXX Management|Director|||||||123 fun Street, Second Floor|EMP|6114|
00-000-000-0000||00-000-000-0000||99999999|
[email protected]|M|||||||||||00-000-000-0000|99999999|||||||||||||||||||||99999
999|W|W||S|W|||lastnm, firstnm|lastnm, firstnm M.||
Thanks for all your help,
Victoria