[Home] [By Thread] [By Date] [Recent Entries]
HI
I have received reports from other people able to reproduce this bug however no solution so far. <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="layout1.xsl"?> <formular url="http://server/application?table=1&var=3"> <a href="index.php?table=2&var=5">item 5</a> </formular> <?xml version="1.0" encoding="iso-8859-2"?>
<!-- Edited with Emacs xslide -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" encoding="utf-8"/>
<xsl:template match="/">
<html>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template> <xsl:template match="formular">
<form action="{@url}">
<xsl:apply-templates select="a"/>
</form>
</xsl:template> <xsl:template match="a">
<a href="{@href}"><xsl:value-of select="."/></a>
<xsl:copy-of select="."/>
</xsl:template></xsl:stylesheet> Correct output: <html><body><form action="http://server/application?table=1&var=3"> <a href="index.php?table=2&var=5">item 5</a><a href="index.php?table=2&var=5">item 5</a> </form></body></html> Instead, an error is reported: error : unterminated entity reference var=5 with the faulty output: <html><body><form action="http://server/application?table=1&var=3"> <a href="index.php?table=2&var=5">item 5</a><a href="index.php?table=2">item 5</a> </form></body></html> Best, regards Davor Emard
|

Cart



