Subject: [xsl] Again about bug in libxslt 1.1.18 From: "Davor Emard" <vordah@xxxxxxxxx> Date: Tue, 21 Nov 2006 15:26:49 +0100 |
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>
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>
<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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] more than one return valu, Michael Kay | Thread | [xsl] Enumerating elements using a , David Nesbitt |
SV: [xsl] Fwd: Flat XML File to Hie, Per Osnes | Date | Re: [xsl] XPath parsing in XSLT (ve, Florent Georges |
Month |