- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Sat, 01 Aug 2009 16:46:58 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup/tools In directory hutz:/tmp/cvs-serv28460/tools Modified Files: generate-spec-source.xsl Log Message: added missing descriptions for common/shared forms attributes Index: generate-spec-source.xsl =================================================================== RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v retrieving revision 1.195 retrieving revision 1.196 diff -u -d -r1.195 -r1.196 --- generate-spec-source.xsl 1 Aug 2009 10:44:34 -0000 1.195 +++ generate-spec-source.xsl 1 Aug 2009 16:46:56 -0000 1.196 @@ -334,9 +334,9 @@ </xsl:for-each> </section> <xsl:text> </xsl:text> - <section id="form-attributes"> + <section id="forms-attributes"> <xsl:text> </xsl:text> - <h2>Form attributes</h2> + <h2>Forms attributes</h2> <xsl:text> </xsl:text> <dl class="attr-defs"> <xsl:text> </xsl:text> @@ -390,8 +390,18 @@ </span> <a class="hash" href="#{@id}">#</a> </dt> - <xsl:message>Missing description for:<xsl:text> </xsl:text><xsl:value-of select="@id"/></xsl:message> - <dd><i class="TK">(detailed attribute description to come)</i></dd> + <xsl:variable name="ref" select="@id"/> + <xsl:choose> + <xsl:when + test="document('../src/attributes.html')//*[@id=$ref]"> + <xsl:copy-of + select="document('../src/attributes.html')//h:dd[preceding-sibling::h:dt[@id=$ref]]"/> + </xsl:when> + <xsl:otherwise> + <xsl:message>Missing description for:<xsl:text> </xsl:text><xsl:value-of select="@id"/></xsl:message> + <dd><i class="TK">(detailed attribute description to come)</i></dd> + </xsl:otherwise> + </xsl:choose> </xsl:for-each> <xsl:text> </xsl:text> </dl>
Received on Saturday, 1 August 2009 16:47:12 UTC