- From: Francois Yergeau <FYergeau@alis.com>
- Date: Tue, 12 Mar 2002 12:10:33 -0500
- To: spec-prod@w3.org
Hi all,
I'm looking at the latest version of xmlspec.xsl in CVS (revision 1.18 at
http://dev.w3.org/cvsweb/spec-prod/html/xmlspec.xsl). I see one obvious bug
and I have a question.
1) The template for prevlocs is:
<!-- prevlocs: previous locations for this spec -->
<!-- called in a <dl> context from header -->
<xsl:template match="prevlocs">
<dt>
<xsl:text>Previous version</xsl:text>
<xsl:if test="count(locs) > 1">s</xsl:if>
<xsl:text>:</xsl:text>
</dt>
<dd>
<xsl:apply-templates/>
</dd>
</xsl:template>
It's a nice idea to add an 's' for multiple <loc>s, but it needs to say
"count(loc)" in the 6th line to work right.
2) The various "divX/head" templates each have code to generate an <a
name=".."> from the id of the div, instead of calling the nice "anchor"
template. Is there a reason for that? A downside is that the <a> has
name=".." only, not id=".."
I tried calling "anchor" as follows:
<xsl:call-template name="anchor">
<xsl:with-param name="node" select=".."/>
<xsl:with-param name="conditional" select="0"/>
</xsl:call-template>
with the expected results and no obvious ill effects.
--
François Yergeau
Received on Tuesday, 12 March 2002 12:11:36 UTC