Subject: Re: Special characters turn out as garbage in xslt->html conversi on
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 8 Sep 2000 15:36:45 -0600 (MDT)
|
Kay Michael wrote:
> I think the <a name=""> attribute should also be escaped this way even
> though its value is not a URI, this is a minor omission from the XSLT spec.
Why? Is it because a URI fragment might look like "#ma%C3%B1nana" and you
want there to be an anchor name that looks the same? That wouldn't work
because if you have <a name="ma%C3%B1nana">...</a>, you would have to use
a URI ending in "#ma%25C3%25B1nana" to link to it. The URI is decoded
before it is compared to the anchor name.. changing this would require a
change to the HTML spec, not just XSLT, no?
- Mike
____________________________________________________________________
Mike J. Brown, software engineer at My XML/XSL resources:
webb.net in Denver, Colorado, USA http://www.skew.org/xml/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|