Hi,
I am trying to use a simple xsl
string replace function. I am trying to
test my code by opening the xml in Mozilla/IE browser.
XML code:
<?xml version="2.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="replace.xsl"?>
<response>
<claim claimNumber="063544577" claimDescription="Costco Claims">
</claim>
</response>
XSL code:
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="response">
<xsl:apply-templates select="claim"/>
</xsl:template>
<xsl:template match="claim">
<xsl:value-of select="replace(@claimDescription,"Costco","Walmart")"/>
</xsl:template>
</xsl:stylesheet>
Both browsers are showing same following error
XML Parsing Error: not well-formed
Location:
file:///C:/replace.xsl
Line Number 9, Column 51:
Let me know if there is anything that Im missing.
Thanks,