1- <!-- $PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.88 2009/04/27 16:27:35 momjian Exp $ -->
1+ <!-- $PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.89 2009/05/18 11:08:24 petere Exp $ -->
22
33<chapter id="ecpg">
44 <title><application>ECPG</application> - Embedded <acronym>SQL</acronym> in C</title>
@@ -1137,8 +1137,9 @@ date PGTYPESdate_from_asc(char *str, char **endptr);
11371137 currently no variable to change that within ecpg.
11381138 </para>
11391139 <para>
1140- The following input formats are allowed:
1141- <table>
1140+ <xref linkend="ecpg-pgtypesdate-from-asc-table"> shows the allowed input formats.
1141+ </para>
1142+ <table id="ecpg-pgtypesdate-from-asc-table">
11421143 <title>Valid input formats for <function>PGTYPESdate_from_asc</function></title>
11431144 <tgroup cols="2">
11441145 <thead>
@@ -1219,7 +1220,6 @@ date PGTYPESdate_from_asc(char *str, char **endptr);
12191220 </tbody>
12201221 </tgroup>
12211222 </table>
1222- </para>
12231223 </listitem>
12241224 </varlistentry>
12251225
@@ -1392,10 +1392,11 @@ int PGTYPESdate_fmt_asc(date dDate, char *fmtstring, char *outbuf);
13921392 All other characters are copied 1:1 to the output string.
13931393 </para>
13941394 <para>
1395- The following table indicates a few possible formats. This will give
1395+ <xref linkend="ecpg-pgtypesdate-fmt-asc-example- table"> indicates a few possible formats. This will give
13961396 you an idea of how to use this function. All output lines are based on
1397- the same date: November, 23rd, 1959.
1398- <table>
1397+ the same date: November 23, 1959.
1398+ </para>
1399+ <table id="ecpg-pgtypesdate-fmt-asc-example-table">
13991400 <title>Valid input formats for <function>PGTYPESdate_fmt_asc</function></title>
14001401 <tgroup cols="2">
14011402 <thead>
@@ -1456,7 +1457,6 @@ int PGTYPESdate_fmt_asc(date dDate, char *fmtstring, char *outbuf);
14561457 </tbody>
14571458 </tgroup>
14581459 </table>
1459- </para>
14601460 </listitem>
14611461 </varlistentry>
14621462
@@ -1483,9 +1483,10 @@ int PGTYPESdate_defmt_asc(date *d, char *fmt, char *str);
14831483 day.
14841484 </para>
14851485 <para>
1486- The following table indicates a few possible formats. This will give
1486+ <xref linkend="ecpg-rdefmtdate-example- table"> indicates a few possible formats. This will give
14871487 you an idea of how to use this function.
1488- <table>
1488+ </para>
1489+ <table id="ecpg-rdefmtdate-example-table">
14891490 <title>Valid input formats for <function>rdefmtdate</function></title>
14901491 <tgroup cols="3">
14911492 <thead>
@@ -1564,7 +1565,6 @@ int PGTYPESdate_defmt_asc(date *d, char *fmt, char *str);
15641565 </tbody>
15651566 </tgroup>
15661567 </table>
1567- </para>
15681568 </listitem>
15691569 </varlistentry>
15701570 </variablelist>
@@ -1612,8 +1612,9 @@ timestamp PGTYPEStimestamp_from_asc(char *str, char **endptr);
16121612 specifiers are silently discarded.
16131613 </para>
16141614 <para>
1615- The following table contains a few examples for input strings:
1616- <table>
1615+ <xref linkend="ecpg-pgtypestimestamp-from-asc-example-table"> contains a few examples for input strings.
1616+ </para>
1617+ <table id="ecpg-pgtypestimestamp-from-asc-example-table">
16171618 <title>Valid input formats for <function>PGTYPEStimestamp_from_asc</function></title>
16181619 <tgroup cols="2">
16191620 <thead>
@@ -1642,7 +1643,6 @@ timestamp PGTYPEStimestamp_from_asc(char *str, char **endptr);
16421643 </tbody>
16431644 </tgroup>
16441645 </table>
1645- </para>
16461646 </listitem>
16471647 </varlistentry>
16481648