Re: [BUGS] BUG #3734: Invalid XML schema output.

2007-11-25 Thread Peter Eisentraut
Euler Taveira de Oliveira wrote: > Bruce Momjian wrote: > >> Agreed. Feel free to add whitespace before every /> of simple xml > >> elements. > > > > Uh, was this done? > > Nope. Attached is a patch that does it. I'm attaching another cosmetic > patch that replaces the use of some single quotes wit

Re: [BUGS] BUG #3734: Invalid XML schema output.

2007-11-23 Thread Michael Glaesemann
On Nov 23, 2007, at 12:30 , Peter Eisentraut wrote: Am Freitag, 23. November 2007 schrieb Michael Glaesemann: It's because some browser *HTML* parsers that aren't fully XML compliant won't parse it correctly Yes, that is pretty much it, but that is obviously irrelevant nowadays and for us,

Re: [BUGS] BUG #3734: Invalid XML schema output.

2007-11-23 Thread Peter Eisentraut
Am Freitag, 23. November 2007 schrieb Michael Glaesemann: > It's because some browser *HTML* parsers that aren't fully XML   > compliant won't parse it correctly Yes, that is pretty much it, but that is obviously irrelevant nowadays and for us, especially. Some sources seem to use it for stylist

Re: [BUGS] BUG #3734: Invalid XML schema output.

2007-11-23 Thread Michael Glaesemann
On Nov 23, 2007, at 11:22 , Harald Armin Massa wrote: within XHTML it is recommended to use , because some parsers will not parse it correctly without that space. It's because some browser *HTML* parsers that aren't fully XML compliant won't parse it correctly, not because some XML parsers

Re: [BUGS] BUG #3734: Invalid XML schema output.

2007-11-23 Thread Harald Armin Massa
> > I assumed XML is for both human and program reading; in fact, I thought > that was its big benefit. I assume we are taking the difference between > "" vs "", right? I will admit I don't know much about XML. > > within XHTML it is recommended to use , because some parsers will not parse it co

Re: [BUGS] BUG #3734: Invalid XML schema output.

2007-11-23 Thread Bruce Momjian
Tom Lane wrote: > Euler Taveira de Oliveira <[EMAIL PROTECTED]> writes: > > Bruce Momjian wrote: > >>> Agreed. Feel free to add whitespace before every /> of simple xml > >>> elements. > >> > >> Uh, was this done? > >> > > Nope. Attached is a patch that does it. > > Er ... why exactly is it a g

Re: [BUGS] BUG #3734: Invalid XML schema output.

2007-11-22 Thread Tom Lane
Euler Taveira de Oliveira <[EMAIL PROTECTED]> writes: > Bruce Momjian wrote: >>> Agreed. Feel free to add whitespace before every /> of simple xml elements. >> >> Uh, was this done? >> > Nope. Attached is a patch that does it. Er ... why exactly is it a good idea to bloat XML output with cosmeti

Re: [BUGS] BUG #3734: Invalid XML schema output.

2007-11-22 Thread Euler Taveira de Oliveira
Bruce Momjian wrote: >> Agreed. Feel free to add whitespace before every /> of simple xml elements. > > Uh, was this done? > Nope. Attached is a patch that does it. I'm attaching another cosmetic patch that replaces the use of some single quotes with double quotes in the XML attributes output.

Re: [BUGS] BUG #3734: Invalid XML schema output.

2007-11-22 Thread Bruce Momjian
Peter Eisentraut wrote: > Bruce Momjian wrote: > > Euler Taveira de Oliveira wrote: > > > Peter Eisentraut wrote: > > > > Having a space before /> appears to be common practice, including in > > > > the examples in the SQL/XML spec. > > > > > > Agreed. Feel free to add whitespace before every /> of

Re: [BUGS] BUG #3734: Invalid XML schema output.

2007-11-21 Thread Peter Eisentraut
Bruce Momjian wrote: > Euler Taveira de Oliveira wrote: > > Peter Eisentraut wrote: > > > Having a space before /> appears to be common practice, including in > > > the examples in the SQL/XML spec. > > > > Agreed. Feel free to add whitespace before every /> of simple xml > > elements. > > Uh, was

Re: [BUGS] BUG #3734: Invalid XML schema output.

2007-11-21 Thread Bruce Momjian
Euler Taveira de Oliveira wrote: > Peter Eisentraut wrote: > > > Having a space before /> appears to be common practice, including in the > > examples in the SQL/XML spec. > > > Agreed. Feel free to add whitespace before every /> of simple xml elements. Uh, was this done? -- Bruce Momjian

Re: [BUGS] BUG #3734: Invalid XML schema output.

2007-11-12 Thread Euler Taveira de Oliveira
Peter Eisentraut wrote: > Having a space before /> appears to be common practice, including in the > examples in the SQL/XML spec. > Agreed. Feel free to add whitespace before every /> of simple xml elements. -- Euler Taveira de Oliveira http://www.timbira.com/ ---

Re: [BUGS] BUG #3734: Invalid XML schema output.

2007-11-11 Thread Peter Eisentraut
Euler Taveira de Oliveira wrote: > I'm attaching another small patch to strip some space and be > consistent with other xml tags. Having a space before /> appears to be common practice, including in the examples in the SQL/XML spec. -- Peter Eisentraut http://developer.postgresql.org/~petere/

Re: [BUGS] BUG #3734: Invalid XML schema output.

2007-11-10 Thread Tom Lane
Euler Taveira de Oliveira <[EMAIL PROTECTED]> writes: > Ben Leslie wrote: >> The specific problem is that the following is malformed; the xsd:restriction >> tag is never closed. > Exact. Per 9.11 (6, b, iv) or 9.15 (8, m, vi), it's a simple element. > The attached patch should fix it. > I'm attach

Re: [BUGS] BUG #3734: Invalid XML schema output.

2007-11-09 Thread Euler Taveira de Oliveira
Ben Leslie wrote: > The specific problem is that the following is malformed; the xsd:restriction > tag is never closed. > > > > > Exact. Per 9.11 (6, b, iv) or 9.15 (8, m, vi), it's a simple element. The attached patch should fix it. I'm attaching another small patch to strip some space

[BUGS] BUG #3734: Invalid XML schema output.

2007-11-09 Thread Ben Leslie
The following bug has been logged online: Bug reference: 3734 Logged by: Ben Leslie Email address: [EMAIL PROTECTED] PostgreSQL version: 8.3 beta2 Operating system: Mac OS X Description:Invalid XML schema output. Details: database_to_xml_and_xmlschema creates an inv