[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Again about bug in libxslt 1.1.18

Subject: Again about bug in libxslt 1.1.18
From: "Davor Emard" <vordah@xxxxxxxxx>
Date: Tue, 21 Nov 2006 15:26:49 +0100
libxslt output html
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="{@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&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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.