--- a/uffi/ref_func_libr.xml
+++ b/uffi/ref_func_libr.xml
@@ -1,9 +1,13 @@
-<?xml version="1.0" encoding="utf-8"?><!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
-<book lang="en">
- <reference id="uffi.func_libr">
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE book [
+<!ENTITY % eclent SYSTEM "../ecl.ent">
+%eclent;
+]>
+<book xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
+ <reference xml:id="uffi.func_libr">
   <title>Functions &amp; Libraries</title>
 
-  <refentry id="uffi.def-function">
+  <refentry xml:id="uffi.def-function">
    <refnamediv>
     <refname><function>def-function</function></refname>
     <refpurpose>Declares a function. 
@@ -70,7 +74,7 @@
    </refsect1>
   </refentry>
 
-  <refentry id="uffi.load-foreign-library">
+  <refentry xml:id="uffi.load-foreign-library">
    <refnamediv>
     <refname><function>load-foreign-library</function></refname>
     <refpurpose>Loads a foreign library. 
@@ -152,7 +156,7 @@
    </refsect1>
   </refentry>
 
-  <refentry id="uffi.find-foreign-library">
+  <refentry xml:id="uffi.find-foreign-library">
    <refnamediv>
     <refname><function>find-foreign-library</function></refname>
     <refpurpose>Finds a foreign library file.