With the XML serializer, the result is just what I expected, the character
isn't replaced :

<?xml version="1.0" encoding="iso-8859-1"?>
...
<a name="puissance reelle"/>
<table>
  <tr>
    <td bgcolor="#EEDDEE">
      <b>šDimension name : </b>
      puissance reelle
      <br/>
      <b>šDimension index : </b>
      9
    </td>
  </td>
</table>
...
parent.centerFrame.location.hash='#puissance reelle';

In this case the accented character is treated the same way inside an
attribute or inside the body of an element.


With an HTML serializer, I expect this character to be replaced by
"&eacute;".

Any idea, Vadim ?


Matthieu



> -----Message d'origine-----
> De : Vadim Gritsenko
> [mailto:[EMAIL PROTECTED]@quaternove.fr]
> Envoye : lundi 18 mars 2002 14:33
> Objet : RE: Different behaviours of HTMLSerializer, in attributes
> and elements.
>
>
> > From: Matthieu BenÊteau [mailto:[EMAIL PROTECTED]]
> >
> > Hi,
>
> <snip/>
>
> > ...
> > <a name="puissance r%C3%A9elle"></a>
> > <table>
> >   <tr>
> >     <td bgcolor="#EEDDEE">
> >       <b>Dimension name : </b>
> >       puissance r&eacute;elle
> >       <br/>
> >       <b>Dimension index : </b>
> >       9
> >     </td>
> >   </tr>
> >   ...
> > </table>
> >
> > In the "name" atribute of the anchor, the &eacute; letter has been
> replaced
> > by %C3%A9, so the following instruction will fail :
> > parent.centerFrame.location.hash='#puissance r&eacute;elle';
> >
> >
> > IMHO, this is not a correct behaviour of the HTMLSerializer.
> > Am I right ?
>
> What the result with the XML serializer?
>
> Vadim
>
> >
> > Matthieu
> >
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to