xsl-list
[Top] [All Lists]

[xsl] Again about bug in libxslt 1.1.18

2006-11-21 07:27:09
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&amp;var=3";>
 <a href="index.php?table=2&amp;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="{(_at_)url}">
     <xsl:apply-templates select="a"/>
   </form>
 </xsl:template>

 <xsl:template match="a">
   <a href="{(_at_)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&amp;var=3";>
<a href="index.php?table=2&amp;var=5">item 5</a><a
href="index.php?table=2&amp;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&amp;var=3";>
<a href="index.php?table=2&amp;var=5">item 5</a><a
href="index.php?table=2">item 5</a>
</form></body></html>

Best, regards
Davor Emard

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] Again about bug in libxslt 1.1.18, Davor Emard <=