[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Again about bug in libxslt 1.1.18
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|