- From: Dan Connolly <connolly@w3.org>
- Date: Mon, 09 Jul 2001 15:44:40 -0500
- To: Norman Walsh <Norman.Walsh@Sun.COM>
- CC: spec-prod@w3.org
Norman Walsh wrote: > > / Charles McCathieNevile <charles@w3.org> was heard to say: > | but > | <div> > | <h2><a name="intro" id="intro"></a>1. Introduction </h2> > | <p>This specification... > | > | works everywhere so far as I can tell... > > Right. I believe that's what the stylesheets generate now. Really? By "the stylesheets" I gather you mean $Id: xmlspec.xsl,v 1.11 2001/06/12 19:32:35 ndw Exp $ in http://dev.w3.org/cvsweb/spec-prod/html/ The relevant code seems to be: <xsl:template match="div1/head"> <xsl:text> </xsl:text> <h2> <a> <xsl:attribute name="name"> <xsl:choose> <xsl:when test="../@id"> <xsl:value-of select="../@id"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="generate-id(..)"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> </a> <xsl:apply-templates select=".." mode="divnum"/> <xsl:apply-templates/> </h2> </xsl:template> which doesn't look like it produces an id attribute. This looks suspect too: <h2> <a name="contents">Table of Contents</a> </h2> -- Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Monday, 9 July 2001 16:44:42 UTC