Re: [xslt] What encoding attribute values use (1.0.15 vs. 1.0.18 behavior)



On Thu, Aug 08, 2002 at 09:53:15PM +0200, Petr Vandrovec wrote:
> Hello,
>   I'm using <xsl:attribute> in one of my projects, and now I found that
> xslt behavior between 1.0.15 and 1.0.18 changed: in 1.0.15, it generated
> html output <a href="È"> (È in iso-8859-2), while 1.0.18 (and current cvs) 
> generates <a href="%C4%8C"> - È in UTF8 encoding. 

  yes it's on purpose for compliance to the way URI-References are
expected to be encoded, and href attributes are URI-References.

>   Is this change intentional, and I have to convert attribute values to
> iso-8859-2 after XSLT pass (yes, I really need iso-8859-2 in attribute
> values - for example default values for INPUT boxes), or is this
> unintentional change?

  Well, that's an error to encode URI's content in iso-8859-2, UTF8
it the right way to do this as far as I understand. This was discussed
last month in the xml@gnome.org list.

  It's not a bug it's a compliance to the standards feature !

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]