In Xpath 2 you can use tokenize
to split the mail addresses:
tokenize($emails, ",")
E.g, in XSLT probably:
<xsl:variable name="email" select="tokenize($emails, ',')"/>
Then you can access them with $email[1]
, $email[2]
, ...
That makes more sense than using "$email1"