Package: tex4ht
Version: 20051214-1
Severity: normal

*** Please type your report below this line ***

Tex4ht produces invalid xml on the following file (test.tex):

\documentclass{article}

\begin{document}
\begin{enumerate}
\item\label{item:1} First item.
\item\label{item:2} Second and last item.
\end{enumerate}
\end{document}

I compile it with:

mk4ht xhmlatex test.tex

Then I check the validity of the output:

xmllint --noout --valid test.html

The result is:

test.html:18: element li: validity error : No declaration for 
attribute value of element li
><a
^
test.html:22: element li: validity error : No declaration for 
attribute value of element li
><a
^


For completeness the generated file test.html:

<?xml version="1.0" encoding="iso-8859-1" ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" 
"http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"; > 
<html xmlns="http://www.w3.org/1999/xhtml";  
> 
<head><title></title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<meta name="generator" content="TeX4ht 
(http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn.html)" /> 
<meta name="originator" content="TeX4ht 
(http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn.html)" /> 
<!-- xhtml,mathml,html --> 
<meta name="src" content="test.tex" /> 
<meta name="date" content="2005-12-19 16:57:00" /> 
<link rel="stylesheet" type="text/css" href="test.css" /> 
</head><body 
>
     <ol  class="enumerate1" >
     <li class="enumerate" value="1" 
><a 
 id="x1-3x1"></a> First item.
     </li>
     <li class="enumerate" value="2" 
><a 
 id="x1-5x2"></a> Second and last item.</li></ol>
    
</body></html> 


I guess the problem is that the XHTML+MATHML DTD uses the strict 
version of XHTML, which disallows the deprecated attribute "value".

        Gabor Braun


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.14-2-686
Locale: LANG=hu_HU.iso88592, LC_CTYPE=hu_HU.iso88592 (charmap=ISO-8859-2) 
(ignored: LC_ALL set to hu_HU.iso88592)

Versions of packages tex4ht depends on:
ii  libc6                         2.3.5-8    GNU C Library: Shared libraries 
an
ii  libkpathsea3                  2.0.2-30   path search library for teTeX 
(run
ii  tetex-bin                     3.0-12     The teTeX binary files
ii  tex4ht-common                 20051214-1 LaTeX and TeX for Hypertext 
(HTML)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to