encoded diacritics

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    #1

    encoded diacritics

    How knows this?

    Is it allowed using encoded diacritics, e.g. ö é in an XML-file?

    When I open such XML-file with IE or Mozilla, they both say it's an error,
    but it seems its not compliant with HTML.


  • Jukka K. Korpela

    #2
    Re: encoded diacritics

    <Jan-nospam@greenpag es.nl> wrote:
    [color=blue]
    > Is it allowed using encoded diacritics, e.g. &ouml; &eacute; in an
    > XML-file?[/color]

    It is allowed to use entity references in XML, but you need to define
    them.
    [color=blue]
    > When I open such XML-file with IE or Mozilla, they both say it's an
    > error, but it seems its not compliant with HTML.[/color]

    But what has HTML got to do with this?

    This is actually a fairly complex issue. Well, maybe not so complex, but
    confusing to people who think that XML is extended HTML (a misconception
    that has probably been created intentionally, to some extent).

    The short answer is that you cannot assume that HTML entities are
    _predefined_ in XML, and there's usually no point in trying to use those
    entities in XML (except for the few entities like &lt; that _are_
    predefined in XML). See http://www.cs.tut.fi/~jkorpela/www/ent.xml
    for an attempt to explain this a bit more.

    --
    Yucca, http://www.cs.tut.fi/~jkorpela/

    Comment

    Working...