summaryrefslogtreecommitdiffstats
path: root/tools/system_messages.cc
diff options
context:
space:
mode:
authorTomek Mrugalski <tomasz@isc.org>2018-02-06 14:28:55 +0100
committerTomek Mrugalski <tomasz@isc.org>2018-02-06 14:28:55 +0100
commitfde5de6b409ba935648bd09d27e9631fdb8b0d71 (patch)
tree7470960d097ce0cca0904ecf72f1bff5f521f4ab /tools/system_messages.cc
parent[github39] Merge branch 'docbook-upgrade' of https://github.com/andreipavelQ/... (diff)
downloadkea-fde5de6b409ba935648bd09d27e9631fdb8b0d71.tar.xz
kea-fde5de6b409ba935648bd09d27e9631fdb8b0d71.zip
[github39] system_messages tool converted to DocBook 5.0
Diffstat (limited to 'tools/system_messages.cc')
-rw-r--r--tools/system_messages.cc23
1 files changed, 11 insertions, 12 deletions
diff --git a/tools/system_messages.cc b/tools/system_messages.cc
index e76991b9d8..f7c6a0fab4 100644
--- a/tools/system_messages.cc
+++ b/tools/system_messages.cc
@@ -76,32 +76,31 @@ DictionaryType dictionary;
/// this is output before anything else.
const std::string FILE_HEADER =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\
-<!DOCTYPE book PUBLIC \"-//OASIS//DTD DocBook XML V4.2//EN\"\n\
-\"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd\" [\n\
-<!ENTITY mdash \"&#x2014;\" >\n\
-<!ENTITY % version SYSTEM \"version.ent\">\n\
-%version;\n\
-]>\n\
+<!DOCTYPE book [\
+<!ENTITY % keaversion SYSTEM \"version.ent\">\
+%keaversion;\
+]>\
+\n\
<!--\n\
This XML document is generated using the system_messages tool\n\
based on the .mes message files.\n\
\n\
Do not edit this file.\n\
-->\n\
-<book>\n\
+<book xmlns=\"http://docbook.org/ns/docbook\" version=\"5.0\">\n\
<?xml-stylesheet href=\"kea-guide.css\" type=\"text/css\"?>\n\
\n\
- <bookinfo>\n\
+ <info>\n\
<title>Kea Messages Manual</title>\n\
\n\
<copyright>\n\
- <year>2011-2017</year>\n\
+ <year>2011-2018</year>\n\
<holder>Internet Systems Consortium, Inc. (\"ISC\")</holder>\n\
</copyright>\n\
\n\
<abstract>\n\
<para>\n\
- This is the messages manual for Kea version &__VERSION__;.\n\
+ This is the messages manual for Kea version &keaversion;.\n\
The most up-to-date version of this document, along with\n\
other documents for Kea, can be found at\n\
<ulink url=\"http://kea.isc.org/docs\"/>.\n\
@@ -109,8 +108,8 @@ const std::string FILE_HEADER =
</abstract>\n\
\n\
<releaseinfo>This is the messages manual for Kea version\n\
- &__VERSION__;.</releaseinfo>\n\
- </bookinfo>\n\
+ &keaversion;.</releaseinfo>\n\
+ </info>\n\
\n\
<chapter id=\"intro\">\n\
<title>Introduction</title>\n\