i have the xsl sheet below that takes a job list via xml. the problem is that the translate part only works on the first record. Any ideas why?
<xsl:stylesheet version = '1.0'
xmlns:xsl='<xsl:template match="/">
<xsl:for-each select="nhs_search/vacancy_details">
<p>
<strong>Job Reference; <xsl:value-of select="job_reference"/></strong>
<br />
<strong>Job title; </strong><xsl:value-of select="job_title"/>
<br />
<strong>Description; </strong><xsl:value-of select = "translate(job_description,'–','')" />
<br />
<strong>Salary; </strong><xsl:value-of select="job_salary"/>
<br />
<strong>Location; </strong><xsl:value-of select="job_location"/>
<br />
<strong>Close date; </strong><xsl:value-of select="job_closedate"/>
<br />
<strong>Apply at;</strong>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="job_url"/>
</xsl:attribute>
NHS Jobs
</xsl:element>
</p>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
<xsl:stylesheet version = '1.0'
xmlns:xsl='<xsl:template match="/">
<xsl:for-each select="nhs_search/vacancy_details">
<p>
<strong>Job Reference; <xsl:value-of select="job_reference"/></strong>
<br />
<strong>Job title; </strong><xsl:value-of select="job_title"/>
<br />
<strong>Description; </strong><xsl:value-of select = "translate(job_description,'–','')" />
<br />
<strong>Salary; </strong><xsl:value-of select="job_salary"/>
<br />
<strong>Location; </strong><xsl:value-of select="job_location"/>
<br />
<strong>Close date; </strong><xsl:value-of select="job_closedate"/>
<br />
<strong>Apply at;</strong>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="job_url"/>
</xsl:attribute>
NHS Jobs
</xsl:element>
</p>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>