diff --git a/reference/bzip2/book.xml b/reference/bzip2/book.xml
new file mode 100644
index 0000000000..0c7f757c2d
--- /dev/null
+++ b/reference/bzip2/book.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+ Bzip2 Compression
+
+
+
+ &reftitle.intro;
+
+ The bzip2 functions are used to transparently read and write bzip2 (.bz2)
+ compressed files.
+
+
+
+
+ &reference.bzip2.setup;
+ &reference.bzip2.constants;
+ &reference.bzip2.examples;
+ &reference.bzip2.reference;
+
+
+
+
+
diff --git a/reference/bzip2/constants.xml b/reference/bzip2/constants.xml
new file mode 100644
index 0000000000..a841f13ad0
--- /dev/null
+++ b/reference/bzip2/constants.xml
@@ -0,0 +1,29 @@
+
+
+
+
+ &reftitle.constants;
+ &no.constants;
+
+
+
+
diff --git a/reference/bzip2/examples.xml b/reference/bzip2/examples.xml
new file mode 100644
index 0000000000..0e7537a5f8
--- /dev/null
+++ b/reference/bzip2/examples.xml
@@ -0,0 +1,65 @@
+
+
+
+
+ &reftitle.examples;
+
+ This example opens a temporary file and writes a test string to
+ it, then prints out the contents of the file.
+
+
+ Small bzip2 Example
+
+
+]]>
+
+
+
+
+
+
diff --git a/reference/bzip2/reference.xml b/reference/bzip2/reference.xml
index cf3700e90d..b84dca9a82 100644
--- a/reference/bzip2/reference.xml
+++ b/reference/bzip2/reference.xml
@@ -1,95 +1,14 @@
-
-
-
+
-
- Bzip2 Compression Functions
- Bzip2
+
+ Bzip2 &Functions;
+ Bzip2
-
-
- &reftitle.intro;
-
- The bzip2 functions are used to transparently read and write bzip2 (.bz2)
- compressed files.
-
-
-
-
- &reftitle.required;
-
- This module uses the functions of the bzip2
- library by Julian Seward. This module requires bzip2/libbzip2
- version >= 1.0.x.
-
-
+ &reference.bzip2.entities.functions;
- &reference.bzip2.configure;
+
-
- &reftitle.runtime;
- &no.config;
-
-
-
- &reftitle.resources;
-
- This extension defines one resource type: a file pointer identifying
- the bz2-file to work on.
-
-
-
-
- &reftitle.constants;
- &no.constants;
-
-
-
- &reftitle.examples;
-
- This example opens a temporary file and writes a test string to
- it, then prints out the contents of the file.
-
-
- Small bzip2 Example
-
-
-]]>
-
-
-
-
-
-&reference.bzip2.entities.functions;
-
-
+
+
+ &reftitle.setup;
+
+
+
+ &reftitle.required;
+
+ This module uses the functions of the bzip2
+ library by Julian Seward. This module requires bzip2/libbzip2
+ version >= 1.0.x.
+
+
+
+
+
+ &reference.bzip2.configure;
+
+
+
+
+ &reftitle.runtime;
+ &no.config;
+
+
+
+
+
+ &reftitle.resources;
+
+ This extension defines one resource type: a file pointer identifying
+ the bz2-file to work on.
+
+
+
+
+
+
+
+