From 5f372f9e593186fbd15189990cfbbdfbfa151980 Mon Sep 17 00:00:00 2001
From: "Thomas G. Lockhart" <lockhart@fourpalms.org>
Date: Wed, 29 Jul 1998 06:50:04 +0000
Subject: [PATCH] Add id field to chapter and book tags to allow output file
 names  to be meaningful.

---
 doc/src/sgml/admin.sgml      |  2 +-
 doc/src/sgml/advanced.sgml   |  2 +-
 doc/src/sgml/array.sgml      |  2 +-
 doc/src/sgml/compiler.sgml   |  2 +-
 doc/src/sgml/datatype.sgml   |  2 +-
 doc/src/sgml/dfunc.sgml      |  2 +-
 doc/src/sgml/ecpg.sgml       |  2 +-
 doc/src/sgml/environ.sgml    |  2 +-
 doc/src/sgml/extend.sgml     |  2 +-
 doc/src/sgml/func-ref.sgml   |  2 +-
 doc/src/sgml/gist.sgml       |  2 +-
 doc/src/sgml/inherit.sgml    |  2 +-
 doc/src/sgml/install.sgml    |  2 +-
 doc/src/sgml/jdbc.sgml       |  2 +-
 doc/src/sgml/libpq.sgml      |  2 +-
 doc/src/sgml/lobj.sgml       |  2 +-
 doc/src/sgml/manage.sgml     |  2 +-
 doc/src/sgml/odbc.sgml       |  2 +-
 doc/src/sgml/pgaccess.sgml   |  2 +-
 doc/src/sgml/programmer.sgml |  2 +-
 doc/src/sgml/protocol.sgml   |  2 +-
 doc/src/sgml/psql.sgml       |  2 +-
 doc/src/sgml/query-ug.sgml   |  2 +-
 doc/src/sgml/query.sgml      |  2 +-
 doc/src/sgml/recovery.sgml   |  2 +-
 doc/src/sgml/regress.sgml    |  2 +-
 doc/src/sgml/rules.sgml      |  2 +-
 doc/src/sgml/spi.sgml        |  2 +-
 doc/src/sgml/start-ag.sgml   | 12 ++++++------
 doc/src/sgml/storage.sgml    |  2 +-
 doc/src/sgml/trigger.sgml    |  2 +-
 doc/src/sgml/tutorial.sgml   |  2 +-
 doc/src/sgml/typeconv.sgml   |  2 +-
 doc/src/sgml/user.sgml       |  2 +-
 doc/src/sgml/xaggr.sgml      |  2 +-
 doc/src/sgml/xfunc.sgml      |  2 +-
 doc/src/sgml/xindex.sgml     |  2 +-
 doc/src/sgml/xoper.sgml      |  2 +-
 doc/src/sgml/xtypes.sgml     |  2 +-
 39 files changed, 44 insertions(+), 44 deletions(-)

diff --git a/doc/src/sgml/admin.sgml b/doc/src/sgml/admin.sgml
index de0f6a3f7a0..c7bbe53220e 100644
--- a/doc/src/sgml/admin.sgml
+++ b/doc/src/sgml/admin.sgml
@@ -18,7 +18,7 @@
 <!entity biblio   SYSTEM "biblio.sgml">
 ]>
 <!-- entity manpages SYSTEM "man/manpages.sgml" subdoc -->
-<Book>
+<Book Id="admin">
 
 <!-- Title information -->
 
diff --git a/doc/src/sgml/advanced.sgml b/doc/src/sgml/advanced.sgml
index c9d2256b198..f0709c3ea83 100644
--- a/doc/src/sgml/advanced.sgml
+++ b/doc/src/sgml/advanced.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="advanced">
 <Title>Advanced <ProductName>Postgres</ProductName> <Acronym>SQL</Acronym> Features</Title>
 
 <Para>
diff --git a/doc/src/sgml/array.sgml b/doc/src/sgml/array.sgml
index aada6f71c65..e6f54b675ac 100644
--- a/doc/src/sgml/array.sgml
+++ b/doc/src/sgml/array.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="arrays">
 <Title>Arrays</Title>
 
 <Para>
diff --git a/doc/src/sgml/compiler.sgml b/doc/src/sgml/compiler.sgml
index 5d9c0eb0755..f04b48b0ee6 100644
--- a/doc/src/sgml/compiler.sgml
+++ b/doc/src/sgml/compiler.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="compiler">
 <DocInfo>
 <AuthorGroup>
 <Author>
diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml
index 0d7b03596cf..db84f5ae172 100644
--- a/doc/src/sgml/datatype.sgml
+++ b/doc/src/sgml/datatype.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="datatype">
 <Title>Data Types</Title>
 
 <Abstract>
diff --git a/doc/src/sgml/dfunc.sgml b/doc/src/sgml/dfunc.sgml
index d4097e77404..4cd047ab343 100644
--- a/doc/src/sgml/dfunc.sgml
+++ b/doc/src/sgml/dfunc.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="dfunc">
 <Title>Linking Dynamically-Loaded Functions</Title>
 
 <Para>
diff --git a/doc/src/sgml/ecpg.sgml b/doc/src/sgml/ecpg.sgml
index 32fd459e525..cf7681b926e 100644
--- a/doc/src/sgml/ecpg.sgml
+++ b/doc/src/sgml/ecpg.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="ecpg">
 <DocInfo>
 <AuthorGroup>
 <Author>
diff --git a/doc/src/sgml/environ.sgml b/doc/src/sgml/environ.sgml
index 64d9506423e..862ccbdbdaa 100644
--- a/doc/src/sgml/environ.sgml
+++ b/doc/src/sgml/environ.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="environ">
 <Title>Setting Up Your Environment</Title>
 
 <Para>
diff --git a/doc/src/sgml/extend.sgml b/doc/src/sgml/extend.sgml
index fe790b2542d..bddaafb091d 100644
--- a/doc/src/sgml/extend.sgml
+++ b/doc/src/sgml/extend.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="extend">
 <Title>Extending <Acronym>SQL</Acronym>: An Overview</Title>
 
 <Para>
diff --git a/doc/src/sgml/func-ref.sgml b/doc/src/sgml/func-ref.sgml
index 66f476fb2e9..129a9d2473a 100644
--- a/doc/src/sgml/func-ref.sgml
+++ b/doc/src/sgml/func-ref.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="func-ref">
 <Title>Functions</Title>
 
 <Abstract>
diff --git a/doc/src/sgml/gist.sgml b/doc/src/sgml/gist.sgml
index 63feea7ee2c..84273b4ffc5 100644
--- a/doc/src/sgml/gist.sgml
+++ b/doc/src/sgml/gist.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="gist">
 <DocInfo>
 <AuthorGroup>
 <Author>
diff --git a/doc/src/sgml/inherit.sgml b/doc/src/sgml/inherit.sgml
index be2bcfa237f..9d6cecf1b35 100644
--- a/doc/src/sgml/inherit.sgml
+++ b/doc/src/sgml/inherit.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="inherit">
 <Title>Inheritance</Title>
 
 <Para>
diff --git a/doc/src/sgml/install.sgml b/doc/src/sgml/install.sgml
index 9a67c98640b..7a4803ddca3 100644
--- a/doc/src/sgml/install.sgml
+++ b/doc/src/sgml/install.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="install">
 <Title>Installation</Title>
 
 <Abstract>
diff --git a/doc/src/sgml/jdbc.sgml b/doc/src/sgml/jdbc.sgml
index 3b7279762df..35f137e48b2 100644
--- a/doc/src/sgml/jdbc.sgml
+++ b/doc/src/sgml/jdbc.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="jdbc">
 <Title>JDBC Interface</Title>
 
 <Para>
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml
index 5dcab589007..b165e1d91f5 100644
--- a/doc/src/sgml/libpq.sgml
+++ b/doc/src/sgml/libpq.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="libpq">
 <Title><FileName>libpq</FileName></Title>
 
 <Para>
diff --git a/doc/src/sgml/lobj.sgml b/doc/src/sgml/lobj.sgml
index 8462de95072..a7bed5001a5 100644
--- a/doc/src/sgml/lobj.sgml
+++ b/doc/src/sgml/lobj.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="largeObjects">
 <Title>Large Objects</Title>
 
 <Para>
diff --git a/doc/src/sgml/manage.sgml b/doc/src/sgml/manage.sgml
index 332dc2459da..22c0a918394 100644
--- a/doc/src/sgml/manage.sgml
+++ b/doc/src/sgml/manage.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="manage">
 <Title>Managing a Database</Title>
 
 <Para>
diff --git a/doc/src/sgml/odbc.sgml b/doc/src/sgml/odbc.sgml
index cb75579b6b6..c9e2d5821ca 100644
--- a/doc/src/sgml/odbc.sgml
+++ b/doc/src/sgml/odbc.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="odbc">
 <DocInfo>
 <AuthorGroup>
 <Author>
diff --git a/doc/src/sgml/pgaccess.sgml b/doc/src/sgml/pgaccess.sgml
index 9404e71b4e1..90e02cd0441 100644
--- a/doc/src/sgml/pgaccess.sgml
+++ b/doc/src/sgml/pgaccess.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="pgaccess">
 <Title><Command>pgaccess</Command></Title>
 
 <Para>
diff --git a/doc/src/sgml/programmer.sgml b/doc/src/sgml/programmer.sgml
index f8e95c8dd11..38a74e3457e 100644
--- a/doc/src/sgml/programmer.sgml
+++ b/doc/src/sgml/programmer.sgml
@@ -59,7 +59,7 @@
 <!entity contacts SYSTEM "contacts.sgml">
 ]>
 <!-- entity manpages SYSTEM "man/manpages.sgml" subdoc -->
-<Book>
+<Book Id="programmer">
 
 <!-- Title information -->
 
diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml
index 1fd64282a51..3f87d58f171 100644
--- a/doc/src/sgml/protocol.sgml
+++ b/doc/src/sgml/protocol.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="protocol">
 <DocInfo>
 <Author>
 <FirstName>Phil</FirstName>
diff --git a/doc/src/sgml/psql.sgml b/doc/src/sgml/psql.sgml
index 28ff1cd9a24..1846eaead4a 100644
--- a/doc/src/sgml/psql.sgml
+++ b/doc/src/sgml/psql.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="psql">
 <Title><Command>psql</Command></Title>
 
 <Para>
diff --git a/doc/src/sgml/query-ug.sgml b/doc/src/sgml/query-ug.sgml
index abd496f5f50..6d4112ce2bd 100644
--- a/doc/src/sgml/query-ug.sgml
+++ b/doc/src/sgml/query-ug.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="query-ug">
 <TITLE>The Query Language</TITLE>
 
 <Para>
diff --git a/doc/src/sgml/query.sgml b/doc/src/sgml/query.sgml
index df119fd365a..52f230235c1 100644
--- a/doc/src/sgml/query.sgml
+++ b/doc/src/sgml/query.sgml
@@ -1,4 +1,4 @@
-<Chapter ID="QUERY">
+<Chapter ID="query">
 <TITLE>The Query Language</TITLE>
 
 <Para>
diff --git a/doc/src/sgml/recovery.sgml b/doc/src/sgml/recovery.sgml
index 2eec4e885e4..ba19b6ed6c5 100644
--- a/doc/src/sgml/recovery.sgml
+++ b/doc/src/sgml/recovery.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="recovery">
 <Title>Database Recovery</Title>
 
 <Para>
diff --git a/doc/src/sgml/regress.sgml b/doc/src/sgml/regress.sgml
index f5a8d8a3d5f..a31817e1dd9 100644
--- a/doc/src/sgml/regress.sgml
+++ b/doc/src/sgml/regress.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="regress">
 <Title>Regression Test</Title>
 
 <Abstract>
diff --git a/doc/src/sgml/rules.sgml b/doc/src/sgml/rules.sgml
index 236d3fc9cc6..29a4c1d6828 100644
--- a/doc/src/sgml/rules.sgml
+++ b/doc/src/sgml/rules.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="rules">
 <Title>The <ProductName>Postgres</ProductName> Rule System</Title>
 
 <Para>
diff --git a/doc/src/sgml/spi.sgml b/doc/src/sgml/spi.sgml
index c403f816f87..0316f079e3e 100644
--- a/doc/src/sgml/spi.sgml
+++ b/doc/src/sgml/spi.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="spi">
 <DocInfo>
 <AuthorGroup>
 <Author>
diff --git a/doc/src/sgml/start-ag.sgml b/doc/src/sgml/start-ag.sgml
index 6ca52ddaf70..4e08fe77bac 100644
--- a/doc/src/sgml/start-ag.sgml
+++ b/doc/src/sgml/start-ag.sgml
@@ -4,7 +4,7 @@
 -	- thomas 1998-02-24
 -->
 
-<Chapter>
+<Chapter Id="start-ag">
 <Title>Runtime Environment</Title>
 
 <Para>
@@ -153,7 +153,7 @@ There is one evident drawback of using locale - it's speed ! So, use locale only
 
 </Chapter>
 
-<Chapter>
+<Chapter Id="postmaster">
 <Title>Starting <Application>postmaster</Application></Title>
 
 <Para>
@@ -186,7 +186,7 @@ There is one evident drawback of using locale - it's speed ! So, use locale only
 </Para>
 </Chapter>
 
-<Chapter>
+<Chapter Id="newuser">
 <Title>Adding and Deleting Users</Title>
 
 <Para>
@@ -200,7 +200,7 @@ to the underlying
 </Para>
 </Chapter>
 
-<Chapter>
+<Chapter Id="disk">
 <Title>Disk Management</Title>
 
 <Para>
@@ -266,7 +266,7 @@ To test the new location, create a database <Database>test</Database> by typing
 </Sect1>
 </Chapter>
 
-<Chapter>
+<Chapter Id="trouble">
 <Title>Troubleshooting</Title>
 
 <Para>
@@ -296,7 +296,7 @@ FATAL 1:Feb 17 23:19:55:process userid (2360) != database owner (268)
 </Para>
 </Chapter>
 
-<Chapter>
+<Chapter Id="manage-ag">
 <Title>Managing a Database</Title>
 
 <Para>
diff --git a/doc/src/sgml/storage.sgml b/doc/src/sgml/storage.sgml
index 7a0495e2270..10ece92393e 100644
--- a/doc/src/sgml/storage.sgml
+++ b/doc/src/sgml/storage.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="storage">
 <Title>Disk Storage</Title>
 
 <Para>
diff --git a/doc/src/sgml/trigger.sgml b/doc/src/sgml/trigger.sgml
index b8b7fc12ab3..f612f651686 100644
--- a/doc/src/sgml/trigger.sgml
+++ b/doc/src/sgml/trigger.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="triggers">
 <Title>Triggers</Title>
 
 <Para>
diff --git a/doc/src/sgml/tutorial.sgml b/doc/src/sgml/tutorial.sgml
index 6ff48eb750e..5873a377726 100644
--- a/doc/src/sgml/tutorial.sgml
+++ b/doc/src/sgml/tutorial.sgml
@@ -12,7 +12,7 @@
 <!entity advanced SYSTEM "advanced.sgml">
 <!entity biblio   SYSTEM "biblio.sgml">
 ]>
-<Book>
+<Book Id="tutorial">
 
 <!-- Title information -->
 
diff --git a/doc/src/sgml/typeconv.sgml b/doc/src/sgml/typeconv.sgml
index 674bf843b63..451e85138eb 100644
--- a/doc/src/sgml/typeconv.sgml
+++ b/doc/src/sgml/typeconv.sgml
@@ -1,4 +1,4 @@
-<chapter>
+<chapter Id="typeconv">
 <title>Type Conversion</title>
 
 <para>
diff --git a/doc/src/sgml/user.sgml b/doc/src/sgml/user.sgml
index c6d18b9963e..86f35f2f4bb 100644
--- a/doc/src/sgml/user.sgml
+++ b/doc/src/sgml/user.sgml
@@ -23,7 +23,7 @@
 <!entity biblio   SYSTEM "biblio.sgml">
 ]>
 <!-- entity manpages SYSTEM "man/manpages.sgml" subdoc -->
-<Book>
+<Book Id="user">
 
 <!-- Title information -->
 
diff --git a/doc/src/sgml/xaggr.sgml b/doc/src/sgml/xaggr.sgml
index 81df0a8577e..b4d9aa44028 100644
--- a/doc/src/sgml/xaggr.sgml
+++ b/doc/src/sgml/xaggr.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="xaggr">
 <Title>Extending <Acronym>SQL</Acronym>: Aggregates</Title>
 
 <Para>
diff --git a/doc/src/sgml/xfunc.sgml b/doc/src/sgml/xfunc.sgml
index 880ea9fdc46..cbad3a04bae 100644
--- a/doc/src/sgml/xfunc.sgml
+++ b/doc/src/sgml/xfunc.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="xfunc">
 <Title>Extending <Acronym>SQL</Acronym>: Functions</Title>
 
 <Para>
diff --git a/doc/src/sgml/xindex.sgml b/doc/src/sgml/xindex.sgml
index b77af369e6a..820ebc9d296 100644
--- a/doc/src/sgml/xindex.sgml
+++ b/doc/src/sgml/xindex.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="xindex">
 <Title>Interfacing Extensions To Indices</Title>
 
 <Para>
diff --git a/doc/src/sgml/xoper.sgml b/doc/src/sgml/xoper.sgml
index fa5e7342f67..1e96e0a18c1 100644
--- a/doc/src/sgml/xoper.sgml
+++ b/doc/src/sgml/xoper.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="xoper">
 <Title>Extending <Acronym>SQL</Acronym>: Operators</Title>
 
 <Para>
diff --git a/doc/src/sgml/xtypes.sgml b/doc/src/sgml/xtypes.sgml
index 980fa2f0093..b1e592ea496 100644
--- a/doc/src/sgml/xtypes.sgml
+++ b/doc/src/sgml/xtypes.sgml
@@ -1,4 +1,4 @@
-<Chapter>
+<Chapter Id="xtypes">
 <Title>Extending <Acronym>SQL</Acronym>: Types</Title>
 <Para>
      As previously mentioned, there are two kinds  of  types
-- 
GitLab