• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

charset_coder/H23-Sep-2015-718565

doc/H03-May-2022-744656

dtdcoder/H23-Sep-2015-2,0901,535

m4/H23-Sep-2015-8,7167,852

src/H03-May-2022-20,02613,408

tests/H03-May-2022-649536

AUTHORSH A D30-Jan-2014384 1610

COPYINGH A D30-Jan-201418 KiB350288

ChangeLogH A D23-Sep-20155.4 KiB191112

INSTALLH A D27-Mar-20096.8 KiB168129

Makefile.amH A D07-Feb-2014239 83

Makefile.inH A D23-Sep-201525.1 KiB826725

NEWSH A D27-Mar-20090

READMEH A D19-Aug-20153.3 KiB11777

TODOH A D27-Mar-20090

acinclude.m4H A D30-Jan-201437 21

aclocal.m4H A D23-Sep-201595.1 KiB2,5722,427

compileH A D26-Apr-20157.2 KiB348258

config.guessH A D27-Mar-200943.2 KiB1,5011,289

config.h.inH A D23-Sep-20154.6 KiB175126

config.rpathH A D23-Sep-201517.9 KiB667563

config.subH A D27-Mar-200931.8 KiB1,6171,473

configureH A D23-Sep-2015461.5 KiB15,85813,274

configure.acH A D23-Sep-2015792 3728

depcompH A D27-Mar-200912.6 KiB442288

install-shH A D27-Mar-20096.2 KiB277169

ltmain.shH A D14-Oct-2014277 KiB9,6627,310

missingH A D07-Feb-20146.7 KiB216143

mkinstalldirsH A D27-Mar-20091.9 KiB11285

ylwrapH A D26-Apr-20156.7 KiB248143

README

1Html2xhtml is a command-line tool that converts HTML files to XHTML
2files. The path of the HTML input file can be provided as a command-
3line argument. If not, it is read from stdin.
4
5Xhtml2xhtml tries always to generate valid XHTML files.  It is able to
6correct many common errors in input HTML files without loose of infor‐
7mation.  However, for some errors, html2xhtml may decide to loose some
8information in order to generate a valid XHTML output.  This can be
9avoided with the -e option, which allows html2xhtml to generate non-
10valid output in these cases.
11
12Html2xhtml can generate the XHTML output compliant to one of the fol‐
13lowing document types: XHTML 1.0 (Transitional, Strict and Frameset),
14XHTML 1.1, XHTML Basic and XHTML Mobile Profile.
15
16
17HOW TO RUN THE PROGRAM
18-----------------------------------------------------------------------
19
20For full information about how to run the program
21see doc/html2xhtml.txt in the source code distribution,
22the html2xhtml.txt file in the Windows binaries ZIP file
23or the html2xhtml manpage. Some examples are shown below.
24
25- By default, the program reads the input file from its standard input
26and dumps the output file to its standard output:
27
28cat input.html | html2xhtml
29
30- The input can also be specified as a command line argument:
31
32html2xhtml input.html
33
34- In order to save the output to a file, redirect the standard output:
35
36html2xhtml input.html >output.html
37
38- Alternatively, you can specify the output file name with the -o option:
39
40html2xhtml input.html -o output.html
41
42- Select the document type of the output with -t:
43
44html2xhtml input.html -t 1.1 -o output.html
45
46The available values are:
47
48transitional: XHTML 1.0 Transitional
49frameset: XHTML 1.0 Frameset
50strict: XHTML 1.0 Strict
511.1: XHTML 1.1
52basic-1.0: XHTML Basic 1.0
53basic-1.1: XHTML Basic 1.1
54mp: XHTML Mobile Profile
55print-1.0: XHTML Print 1.0
56
57Use "transitional" if you just want to tidy up the markup.
58
59- Choose an output character encoding (by default, the program uses
60the character encoding detected in the input):
61
62html2xhtml input.html --ocs utf-8 -o output.html
63
64Get the list of available character sets:
65
66./src/html2xhtml --lcs
67
68
69HOW TO COMPILE AND INSTALL THE PROGRAM FROM THE SOURCE TARBALL
70-----------------------------------------------------------------------
71
72Enter the main directory of the source distribution and type:
73
74$ ./configure
75$ make
76
77You can run the test battery in order to check that the program is
78working as expected:
79
80$ cd tests
81$ ./test.sh
82$ cd ..
83
84If you want to install the program in your system, type then (it may
85require root priviledges):
86
87$ make install
88
89See ./INSTALL for more information.
90
91The program has been tested to compile on GNU/Linux and Windows (in
92both Cygwin and MinGW). If compiled in Cygwin, the program depends
93on "cygwin1.dll".
94
95
96HOW TO COMPILE AND INSTALL THE PROGRAM FROM THE GIT SOURCES
97-----------------------------------------------------------------------
98
99The source code in the Git repository does not include the files
100generated by the autotools. In order to build the ./configure script,
101run the following commands from the main directory of the sources:
102
103$ aclocal
104$ libtoolize
105$ touch config.rpath
106$ autoheader
107$ automake --add-missing
108$ autoconf
109
110In OS X you need to use the glibtoolize command instead of libtoolize.
111
112After that, you should get the ./configure script and proceed as
113explained above:
114
115$ ./configure
116$ make
117