I believe I've found a problem with how sablotron handles quoting of
quotes...

This xml input snippet

    <raw>&quot;The Economist&quot;
&lt;[EMAIL PROTECTED]&gt;</raw>

with this corresponding stylesheet snippet

    <a><xsl:attribute name="href"><xsl:value-of
select="from/address/raw"/></xsl:attribute><xsl:value-of
select="from/address/name"/></a>

produces the following output:

    <a
href=""The%20Economist"%20&lt;[EMAIL PROTECTED]>">The
Economist</a>

This is with the sabcmd in Debian unstable, which reports "sabcmd 0.50
(December 19, 2000)".

The attached files demonstrate the problem.

-Mark Bartel

PS  Great product!
<headers>
	<message>
		<from>
			<address>
				<name>The Economist</name>
				<email>[EMAIL PROTECTED]</email>
				<raw>&quot;The Economist&quot; &lt;[EMAIL PROTECTED]&gt;</raw>
			</address>
		</from>
	</message>
</headers>
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="html" encoding="iso-8859-1"/>

<!-- match the messages -->
	<xsl:template match="headers">
		<html><head><title>quoting test</title></head>
		<body>
			<xsl:for-each select="message">
				<tr>
					<td><a><xsl:attribute name="href"><xsl:value-of select="from/address/raw"/></xsl:attribute><xsl:value-of select="from/address/name"/></a></td>
				</tr>
			</xsl:for-each>
		</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
Title: quoting test
">The Economist

Reply via email to