Lists: | pgsql-hackers |
---|
From: | Alex Hunsaker <badalex(at)gmail(dot)com> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | sgml and "empty" closing tags |
Date: | 2009-11-17 03:30:04 |
Message-ID: | 34d269d40911161930t1603918o8fb0d28377312300@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
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?
Should we change those to be the right closing tag? aka </literal>
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 |
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
From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Alex Hunsaker <badalex(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: sgml and "empty" closing tags |
Date: | 2009-11-17 03:44:49 |
Message-ID: | 4B021C31.5070606@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Tom Lane wrote:
> 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.)
>
Correct on both counts.
cheers
andrew
From: | Alex Hunsaker <badalex(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: sgml and "empty" closing tags |
Date: | 2009-11-17 03:54:45 |
Message-ID: | 34d269d40911161954h23640b7cxa30dde5c82b18899@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Mon, Nov 16, 2009 at 20:41, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Apparently --- it's perfectly legal in SGML. (I think not in XML.)
Cool. Thanks!
BTW anyone know how to escape < and > for google? I tried searching
for it-- but ran into a chick and egg situation. So the I tried
various forms of "google search left angle bracket", quotes,
backslashes and "+". no luck
From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Alex Hunsaker <badalex(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: sgml and "empty" closing tags |
Date: | 2009-11-17 04:25:11 |
Message-ID: | 603c8f070911162025q5fdf51b5w8a331a37653efbf2@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Mon, Nov 16, 2009 at 10:54 PM, Alex Hunsaker <badalex(at)gmail(dot)com> wrote:
> On Mon, Nov 16, 2009 at 20:41, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Apparently --- it's perfectly legal in SGML. (I think not in XML.)
>
> Cool. Thanks!
>
> BTW anyone know how to escape < and > for google? I tried searching
> for it-- but ran into a chick and egg situation. So the I tried
> various forms of "google search left angle bracket", quotes,
> backslashes and "+". no luck
I don't think you can. I gather that the Google text search algorithm
is word-based. It seems like you can't search for things that it
doesn't consider to be words. It has a pretty expansive notion of
what a word is (like "2a43" is a word, for example) but any non-word
characters are ignored (so, for example, "2a43$" returns the same hits
as "2a43").
...Robert
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
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 06:43:13 |
Message-ID: | 1258440193.10724.4.camel@fsopti579.F-Secure.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On mån, 2009-11-16 at 20:30 -0700, Alex Hunsaker wrote:
> 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?
If you have DocBook installed locally, you should have a file called
docbook.dcl, which contains the "SGML declaration" of DocBook, and
somewhere down contains this:
FEATURES
MINIMIZE
DATATAG NO
OMITTAG NO
RANK NO
SHORTTAG YES
So if you google for something like "markup minimization shorttag", you
can find more information.
For amusement, contrast this with the SGML declaration of HTML:
FEATURES
MINIMIZE
DATATAG NO
OMITTAG YES <-- This is why you can omit <body>, for example.
RANK NO
SHORTTAG YES
From: | Euler Taveira de Oliveira <euler(at)timbira(dot)com> |
---|---|
To: | Alex Hunsaker <badalex(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: sgml and "empty" closing tags |
Date: | 2009-11-17 23:39:28 |
Message-ID: | 4B033430.1060201@timbira.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Alex Hunsaker escreveu:
> BTW anyone know how to escape < and > for google?
>
You can escape < and > using < and >, respectively.
--
Euler Taveira de Oliveira
http://www.timbira.com/
From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Euler Taveira de Oliveira <euler(at)timbira(dot)com> |
Cc: | Alex Hunsaker <badalex(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: sgml and "empty" closing tags |
Date: | 2009-11-18 00:14:29 |
Message-ID: | 603c8f070911171614t4dbe093dwc49f6d19d8693b4d@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Tue, Nov 17, 2009 at 6:39 PM, Euler Taveira de Oliveira
<euler(at)timbira(dot)com> wrote:
> Alex Hunsaker escreveu:
>> BTW anyone know how to escape < and > for google?
>>
> You can escape < and > using < and >, respectively.
Searching for <foo looks for documents containing "lt" and "foo",
not documents containing "<foo".
...Robert
From: | Euler Taveira de Oliveira <euler(at)timbira(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Alex Hunsaker <badalex(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: sgml and "empty" closing tags |
Date: | 2009-11-18 01:00:10 |
Message-ID: | 4B03471A.1010401@timbira.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Robert Haas escreveu:
> On Tue, Nov 17, 2009 at 6:39 PM, Euler Taveira de Oliveira
> <euler(at)timbira(dot)com> wrote:
>> Alex Hunsaker escreveu:
>>> BTW anyone know how to escape < and > for google?
>>>
>> You can escape < and > using < and >, respectively.
>
> Searching for <foo looks for documents containing "lt" and "foo",
> not documents containing "<foo".
>
Ops, didn't read 'for google'. I thought that the OP was asking about escaping
those identifiers in SGML.
--
Euler Taveira de Oliveira
http://www.timbira.com/