Re: attribute value escaping (was Re: disable escaping in copy)

Subject: Re: attribute value escaping (was Re: disable escaping in copy)
From: Scott_Boag@xxxxxxxxx
Date: Thu, 8 Jun 2000 19:07:21 -0400
> I'm not convinced that Xalan is making a good
> decision here, because section 2.4.2 says

We are trying to follow
http://www.w3.org/TR/xslt#section-HTML-Output-Method where it says "The
html output method should escape non-ASCII characters in URI attribute
values using the method recommended in Section B.2.1 of the HTML 4.0
Recommendation."

But, this is very problematic.  We took it out for a while, then put it
back in because another user was having problems with it not being in.
Argh!!!  What's a poor XSLT processor coder to do?  I would love to find
the right behavior for this.  I'm certainly not very happy with the current
behavior in Xalan.

> FWIW, http://www.ietf.org/rfc/rfc2396.txt section 2.4.3 says that "`"
> must be escaped as well.

OK, not sure why it's not.

> If Xalan emits closing tags for </img> when there's no text in between,
> that's a bug.

If I do:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version
="1.0">
     <xsl:output method="html"/>
     <xsl:template match="/"><html><img>
                </img></html></xsl:template>
</xsl:stylesheet>

I get:

<html>
    <img></html>
So I'm not sure what's going on.

-scott






 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread