<xsl:copy-of select="key('k1', .,ancestor::record)/name"/> solved the issue for me, using XSLT 3.0 (thanks Martin).
<xsl:copy-of select="key('k1', .,ancestor::record)/name"/>
Thanks to you all for your feedback and sharing of expertise - very much appreciated.