I'm going back to this notice as it has remained unanswered.

Escaping the href attribute in the same way as URIs is fine from my 
point of view. The XSLT specs suggest the html  output method to escape 
non-ASCII  characters in URI attribute values.

All you need is to change your data or template so that the resulting 
href contains URL only.

Regards,
Petr


Mark Bartel wrote:

> 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>
> 
> ------------------------------------------------------------------------
> 
> l>
> in.xml
> 
> Content-Type:
> 
> text/xml
> Content-Encoding:
> 
> quoted-printable
> 
> 
> ------------------------------------------------------------------------
> style.xsl
> 
> Content-Type:
> 
> text/xml
> Content-Encoding:
> 
> quoted-printable
> 
> 
> ------------------------------------------------------------------------
> out.html
> 
> Content-Type:
> 
> text/html
> Content-Encoding:
> 
> quoted-printable
> 
> 

-- 
Petr Cimprich
Ginger Alliance Ltd.
www.gingerall.com

Reply via email to