Added xsl:value-of to get $agent value.