My Question is how do I change ' to ' via the xsl?
In ie i get Community Nurse — Children and Young People's Directorate
In opera i get Community Nurse — Children and Young People's Directorate
----------------------------------------------------------------------------------------------------
Hi I have the following XML
Code XML:<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE nhs_search [ <!ELEMENT nhs_search (status, vacancy_details*) > <!ELEMENT status (number_of_jobs_found, message*)> <!ELEMENT number_of_jobs_found (#PCDATA)> <!ELEMENT message (#PCDATA)> <!ELEMENT vacancy_details (id, job_reference, job_title, job_description, job_specialty?, job_salary, job_location, job_closedate, job_postdate, job_url)> <!ELEMENT id (#PCDATA)> <!ELEMENT job_reference (#PCDATA)> <!ELEMENT job_title (#PCDATA)> <!ELEMENT job_description (#PCDATA)> <!ELEMENT job_specialty (#PCDATA)> <!ELEMENT job_salary (#PCDATA)> <!ELEMENT job_location (#PCDATA)> <!ELEMENT job_closedate (#PCDATA)> <!ELEMENT job_postdate (#PCDATA)> <!ELEMENT job_url (#PCDATA)> ]> <nhs_search> <status> <number_of_jobs_found>20</number_of_jobs_found> <message></message> </status> <vacancy_details> <id>912080005</id> <job_reference>346-CYP-01</job_reference> <job_title>Community Nurse</job_title> <job_description>An opportunity has arisen within the service for an additional Community Nurse. The Children and Young People’s Service provides a specialist mental health, community based approach to young people, 0-17th year. The service operates as a multi-disciplinary team; nursing psychology and psychiatry, who work together to provide an effective service. The Community Nursing Service works within a multi-agency framework and...</job_description> <job_specialty>Children and Young People&apos;s Directorate</job_specialty> <job_salary>&#163;24,103 - &#163;32,653 pr pa</job_salary> <job_location>County Durham</job_location> <job_closedate>05/09/2008</job_closedate> <job_postdate>22/08/2008</job_postdate> <job_url>http://www.jobs.nhs.uk/cgi-bin/vacdetails.cgi?selection=912080005</job_url> </vacancy_details> </nhs_search>
which gets transformed by the following XSL
Code XML:<!-- DWXMLSource="http://www.jobs.nhs.uk/extsearch?client_id=122252&internal_only=n&infonly=1" --> <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "*"> <!ENTITY copy "©"> <!ENTITY reg "®"> <!ENTITY trade "™"> <!ENTITY mdash "—"> <!ENTITY ldquo "“"> <!ENTITY rdquo "”"> <!ENTITY pound "£"> <!ENTITY yen "¥"> <!ENTITY euro "€"> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wpc="com.sap.nw.wpc.km.service.linkmanager.XsltHelper"> <xsl:output method="html"/> <xsl:template match="/"> <xsl:for-each select="nhs_search/vacancy_details"> <xsl:variable name="apos"><xsl:text disable-output-escaping="yes">'</xsl:text></xsl:variable> <p><xsl:value-of select="job_title" disable-output-escaping="yes"/> — <xsl:value-of select="job_specialty" disable-output-escaping="yes"/></p> <p><xsl:value-of select="job_postdate" disable-output-escaping="yes"/> / <xsl:value-of select="job_closedate" disable-output-escaping="yes"/></p> <p><xsl:value-of select="job_reference" disable-output-escaping="yes"/> </p> <p><xsl:value-of select="job_salary" disable-output-escaping="yes"/></p> <p><xsl:value-of select="job_description"/></p> <p><xsl:value-of select="job_url" disable-output-escaping="yes"/></p> <hr /> </xsl:for-each> </xsl:template> </xsl:stylesheet>
Resulting in
My Question is how do I change ' to ' via the xsl?HTML Code:Community Nurse — Children and Young People's Directorate 22/08/2008 / 05/09/2008 346-CYP-01 £24,103 - £32,653 pr pa An opportunity has arisen within the service for an additional Community Nurse. The Children and Young People’s Service provides a specialist mental health, community based approach to young people, 0-17th year. The service operates as a multi-disciplinary team; nursing psychology and psychiatry, who work together to provide an effective service. The Community Nursing Service works within a multi-agency framework and... http://www.jobs.nhs.uk/cgi-bin/vacdetails.cgi?selection=912080005
I have googled and googled and googled this to no avail any help and assistance will be greatfully recieved.
The XML cannot be modyfied and comes from
http://www.jobs.nhs.uk/extsearch?cli...ly=n&infonly=1
Thank you in advance
Regards
Damien



Bookmarks