[erlang-bugs] xmerl and standard HTML entity refs

Ulf Wiger (TN/EAB) ulf.wiger@REDACTED
Thu May 3 10:58:36 CEST 2007


I just noticed that xmerl_scan only recognizes the very limited set of
entity references that I coded for back in 2000. (-:

(This limited set happens to be the only predefined entity refs in the
XML 1.0 standard, so that isn't a bug per se.)

Is there any plan to include recognition of standard HTML entity refs,
such as nbsp, iexcl, pound, frac14, etc.?


16> edoc:file("exprecs.erl").
2670- fatal: {unknown_entity_ref,nbsp}
2580- fatal: error_scanning_entity_ref
exprecs.erl, in module header: at line 28: error in XML parser: {fatal,
                         {error_scanning_entity_ref,
                             {file,file_name_unknown},
                             {line,86},
                             {col,18}}}.
** exited: error **

I realize that xmerl can be customized with a rules function which, for
example, can handle entity references, but in this case, I was kinda
hoping that edoc would allow me to use some standard HTML entity refs,
and it currently doesn't.

I think edoc should handle the standard HTML entity references. One way
to do this is to extend xmerl to handle them, perhaps through a special
XHTML parsing function.

BR,
Ulf W
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20070503/354a8903/attachment.htm>


More information about the erlang-bugs mailing list