Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 095B8B5DE15 for ; Sat, 3 Sep 2011 20:09:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 23781-10 for ; Sat, 3 Sep 2011 23:09:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id F1640B5DE11 for ; Sat, 3 Sep 2011 20:09:28 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p83N9Rv27485; Sat, 3 Sep 2011 19:09:27 -0400 (EDT) From: Bruce Momjian Message-Id: <201109032309.p83N9Rv27485@momjian.us> Subject: Re: sgml cleanup: unescaped '>' characters In-Reply-To: <1315088545.11695.25.camel@vanquo.pezone.net> To: Peter Eisentraut Date: Sat, 3 Sep 2011 19:09:27 -0400 (EDT) CC: Josh Kupershmidt , pgsql-docs X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/11 X-Sequence-Number: 6932 Peter Eisentraut wrote: > On l?r, 2011-09-03 at 16:47 -0400, Bruce Momjian wrote: > > Peter Eisentraut wrote: > > > On tor, 2011-09-01 at 17:31 -0400, Bruce Momjian wrote: > > > > Peter Eisentraut wrote: > > > > > On tor, 2011-09-01 at 14:17 -0400, Bruce Momjian wrote: > > > > > > > That still leaves open why we bother about escaping <. > > > > > > > > > > > > The problem is that I often add SGML that has: > > > > > > > > > > > > if (1 < 0) ... > > > > > > > > > > > > I need something to warn me about those, especially in the release > > > > > > notes. > > > > > > > > > > Why do you need to be warned about that? > > > > > > > > If I have: > > > > > > > > if (1 < fred) > > > > > > > > it will think "fred" is a SGML tag, no? > > > > > > No, a < followed by a space is not a tag, it's character data. If it > > > thought it were a tag, it would complain. > > > > Sometimes it is '<' (in single quotes), which I thought would be a > > problem. > > The bottom line is, the SGML parser can figure that out itself, and if > it has a problem, it will complain. We don't need to second guess it > with regular expressions that are handcrafted out of thin air. > > I was hoping you would remember whether you initially put this in > because of some tool problem. But if we are not finding any supporting > evidence, I would suggest that we just scrap this thing entirely. I put it in to warn about release.sgml markup problems, so I properly escaped all non-tag '>' and '<' characters. I have removed the tool. We can always re-add it if we find it is needed. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +