Subject: Re: [xsl] Accents problems in "action" attribute of a <fORM> element From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx> Date: Fri, 18 Jun 2004 11:58:40 +0100 |
Hi !Well if you are using output method of HTML (or your document element is "HTML" then URL's should be escaped as per HTML spec. I believe that URL's do not allow accented characters because they are non ASCII.
I'd like to work in english, so that i don't have accent probems anymore !!
I'm working with MSXML parser and make the transfomation job XML+XSL==>HTML
with ASP/DOM
My XML starts with <?xml version="1.0" encoding="UTF-8"?> It contains an <TRUC cible="ohe"> element.
While matching TRUC in an xsl template, i notice that accent problems
depends on the HTML element in which I put the XML datas.
If I do : <form action={@cible}> then I get after transformation : <form
action="oh%C3%A9"/>
If I do exactly the same but with another attribute name (which is not HTML
but anyway...) :
<form actionABCD={@cible}> then I get after transformation : <form
action="ohe"/>
Is there some solutions, or something I missed ?
For information :
My XSL starts with : <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" encoding="ISO-8859-1"/>
(the problem is the same without the <xsl:output> element)
My ASP page makes the tranformation using Response.write
objXML.transformNode(objXSL) (where objXML, and objXSL are the loaded files
of my xml and my xsl files)
I put :
Response.charset = "ISO-8859-1"
Response.contentType = "text/html"
at the beginning of the file but It doesn't seems to change anything.
Hope you can help me, thanks in advance,
Matthieu.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Accents problems in "action" attrib, Ricaud Matthieu | Thread | RE: [xsl] Accents problems in "acti, Ricaud Matthieu |
RE: [xsl] format number with change, James Steven | Date | re: ANN: Saxon.NET - v.8.0-B port t, Joeri Belis |
Month |