Yoshiki Hayashi wrote:
> Quote from HTML 2.0 (RFC 1866):
> 
> <!ELEMENT A     - - %A.content -(A)>
> <!ENTITY % A.content   "(%heading|%text)*">
> <!ENTITY % heading "H1|H2|H3|H4|H5|H6">
> <!ENTITY % text "#PCDATA | A | IMG | BR | %phrase | %font">
> <!ENTITY % font " TT | B | I ">
> <!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | CITE ">
> 
> > <a name="..."><a></a></a> ... Well, I suppose nesting <a> tags is
> > probably not allowed.
> 
> It's allowed in HTML 2.0 but not in HTML 4.0.

My collegue who understands DTDs says the "-(A)" above means that it
is not allowed in HTML 2.0, either.  But he also tells me that having
nothing between <a> and </a> is allowed, because of
"(%heading|%text)*"; last time we checked this, we looked at a DTD
that had a "+" somewhere, but we don't remember where we found that
DTD.

So it looks like a bug in x-mosaic after all.

> Wwhy can't you just insert '*', '_', ' ' or something?

"&nbsp;" works (" " doesn't), but does not look well when it is
followed by a "<p>".  If it's easy to leave the "<p>" out, the
following would be the solution:

  <li><a name="fn-40">&nbsp;</a>
  We use ...

- anton

Reply via email to