XSLT file help

I’m upgrading from Umbraco 7 to Umbraco 10 and the XSLT files I have been using in Umbraco 7 no longer work in Umbraco 10.

Can anyone help identify why this might be? The code I’m using is below.

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:user="urn:my-scripts"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="xsl msxsl user umbraco.library">
 
<xsl:output method="html" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="DTD/xhtml1-strict.dtd" cdata-section-elements="script style" indent="yes" encoding="utf-8"/>
 
<xsl:param name="records" />
 
<xsl:template match="/">
    
<p>Dear <xsl:value-of select="$records//fields/child::* [caption = 'Name']//value"/>,</p>

<p>*Body copy*</p>


</xsl:template>
 
</xsl:stylesheet>

This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/113112-xslt-file-help