Re: sgml and "empty" closing tags

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: sgml and "empty" closing tags
Дата
Msg-id 19135.1258429297@sss.pgh.pa.us
обсуждение исходный текст
Ответ на sgml and "empty" closing tags  (Alex Hunsaker <badalex@gmail.com>)
Ответы Re: sgml and "empty" closing tags
Re: sgml and "empty" closing tags
Список pgsql-hackers
Alex Hunsaker <badalex@gmail.com> writes:
> While looking over the writable cte patch I noticed queries.sgml has
> lots of things in the form "<literal>FROM</>".  I tried various
> googles to see if </> is some kind of sgml/xml shorthand for close the
> last opened tag.  But alas, nothing found.  Bad google foo?

Apparently --- it's perfectly legal in SGML.  (I think not in XML.)

> Should we change those to be the right closing tag? aka </literal>

You'd be wasting your time.

I don't think it's good style to use </> when the opening tag is far
away or there are other tags between.  But for examples like the one
you cite, it's perfectly reasonable.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alex Hunsaker
Дата:
Сообщение: sgml and "empty" closing tags
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Raising the geqo_threshold default