I have just been working on an old Java app and switched the jre from 1.5 to 1.6. The app uses xsl to transform xml to html and this had been working fine until I changed the jre.
Here is a extract from the xsl and xml:
XML
<link href="Uml&#228;ut.txt" target="_blank">
<style tag="text">Umläut.txt</style>
</link>
XSL
<xsl:template match="link">
<xsl:element name="td">
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>
<xsl:attribute name="target"><xsl:value-of select="@target"/></xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
</xsl:element>
</xsl:template>
The result using jre 1.5 looks like this
<td><a href="Umläut.txt" target="_blank">
<text>Umläut.txt</text>
</a></td>
The result with jre 1.6
<td><a href="Uml&#228;ut.txt" target="_blank">
<text>Umläut.txt</text>
</a></td>
Can anyone explain what has gone wrong here? Why does 1.5 convert &
to &
and 1.6 not? What can I do to correct this?