validity error : ID already defined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libxslt (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi!
I have an xhtml I want to transform. It was processed by html tidy, so it is a valid xhtml. But It fails to transform with
o.xml:845: element a: validity error : ID top already defined
<a name="top" id="top"></a>
This is a single top id in the whole doc.
I extracted the part
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://
<html xmlns="http://
<head>
<meta name="generator" content=
"HTML Tidy for Linux (vers 25 March 2009), see www.w3.org" />
<title></title>
</head>
<body>
<div class="g-unit" id="doc-content"><a name="top" id="top"></a>
<h1>The Developer's Guide</h1>
</div>
</body>
</html>
but still get the error.
cmd is
xsltproc --novalid --html -o out.htm t.xsl /tmp/3.htm
if I skip --html it works. (I'm not sure what --html does, but without it xsltproc complains on named entities)
Anyway, having name and id with same value in the same tag is VALID, so it shouldn't complain.
see http://
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: xsltproc 1.1.26-6
ProcVersionSign
Uname: Linux 2.6.35-30-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Sun Jul 31 07:03:17 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
PATH=(custom, user)
LANG=en_GB.utf8
SHELL=/bin/bash
SourcePackage: libxslt
Status changed to 'Confirmed' because the bug affects multiple users.