validity error : ID already defined

Bug #818737 reported by aka
10
This bug affects 2 people
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://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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://www.w3.org/TR/html4/struct/links.html#h-12.2.3

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: xsltproc 1.1.26-6
ProcVersionSignature: Ubuntu 2.6.35-30.54-generic 2.6.35.13
Uname: Linux 2.6.35-30-generic x86_64
NonfreeKernelModules: nvidia wl
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

Revision history for this message
aka (vangop) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libxslt (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.