<xsl:variable name="last-xyz" select="string(xyz[last()])"/>
(When you say "the value of the xyz tag", I assume you mean the value of the xyz *element*. Elements have two tags, a start tag and and end tag, and if the "value of a tag" means anything, then the value is "xyz".)
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference