[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texinfo/tp/t test_utils.pl
From: |
Patrice Dumas |
Subject: |
texinfo/tp/t test_utils.pl |
Date: |
Tue, 18 Dec 2012 23:58:13 +0000 |
CVSROOT: /sources/texinfo
Module name: texinfo
Changes by: Patrice Dumas <pertusus> 12/12/18 23:58:13
Modified files:
tp/t : test_utils.pl
Log message:
Use DTD version from XML Converter defaults.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/test_utils.pl?cvsroot=texinfo&r1=1.128&r2=1.129
Patches:
Index: test_utils.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/test_utils.pl,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -b -r1.128 -r1.129
--- test_utils.pl 18 Dec 2012 23:38:30 -0000 1.128
+++ test_utils.pl 18 Dec 2012 23:58:12 -0000 1.129
@@ -113,6 +113,10 @@
'docbook' => 'dbk',
);
+my %xml_converter_defaults
+ = Texinfo::Convert::XML::converter_defaults(undef, undef);
+my $XML_DTD_VERSION = $xml_converter_defaults{'TEXINFO_DTD_VERSION'};
+
my %outfile_preamble = (
'docbook' => ['<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
@@ -121,8 +125,8 @@
]>
'. "<book lang=\"en\">\n", "</book>\n"],
'xml' => ['<?xml version="1.0"?>
-<!DOCTYPE texinfo PUBLIC "-//GNU//DTD TexinfoML V5.0//EN"
"http://www.gnu.org/software/texinfo/dtd/5.00/texinfo.dtd">
-<texinfo xml:lang="en">
+'."<!DOCTYPE texinfo PUBLIC \"-//GNU//DTD TexinfoML V${XML_DTD_VERSION}//EN\"
\"http://www.gnu.org/software/texinfo/dtd/${XML_DTD_VERSION}/texinfo.dtd\">
+".'<texinfo xml:lang="en">
', "</texinfo>\n"],
'html_text' => ['<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- texinfo/tp/t test_utils.pl,
Patrice Dumas <=