Re: sgml and "empty" closing tags

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alex Hunsaker <badalex(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: sgml and "empty" closing tags
Date: 2009-11-17 03:41:37
Message-ID: 19135.1258429297@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alex Hunsaker <badalex(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-11-17 03:42:40 Re: Raising the geqo_threshold default
Previous Message Alex Hunsaker 2009-11-17 03:30:04 sgml and "empty" closing tags