- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 05 Jul 2010 07:17:59 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup/tools In directory hutz:/tmp/cvs-serv12926/tools Modified Files: generate-spec-source.xsl Log Message: added examples to section for <a> element Index: generate-spec-source.xsl =================================================================== RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v retrieving revision 1.254 retrieving revision 1.255 diff -u -d -r1.254 -r1.255 --- generate-spec-source.xsl 3 Jul 2010 02:26:34 -0000 1.254 +++ generate-spec-source.xsl 5 Jul 2010 07:17:57 -0000 1.255 @@ -1315,7 +1315,7 @@ or starts-with(.,$name-bracket) ]]"> <xsl:text> </xsl:text> - <div class="no-number no-toc" id="{$name}-display"> + <div class="no-number no-toc display" id="{$name}-display"> <xsl:text> </xsl:text> <h2 class="element-subhead">Typical default display properties</h2> <!-- * <p class="non-norm">This section is non-normative.</p> --> @@ -1415,20 +1415,21 @@ <!-- * ***************************************************************** --> <!-- * * MAKE EXAMPLES SECTION --> <!-- * ***************************************************************** --> - <!-- * <xsl:if --> - <!-- * test="document('../elements.html')//h:*[@id=$name]//h:div[@class='examples']"> --> - <!-- * <xsl:text> </xsl:text> --> - <!-- * <div class="no-number no-toc" id="{$name}-examples"> --> - <!-- * <xsl:text> </xsl:text> --> - <!-- * <h2 class="element-subhead">Examples</h2> --> - <!-- * <xsl:text> </xsl:text> --> - <!-- * <p class="non-norm">This section is non-normative.</p> --> - <!-- * <xsl:text> </xsl:text> --> - <!-- * <xsl:copy-of select="document('../elements.html')//h:*[@id=$name]//h:div[@class='examples']/node()"/> --> - <!-- * <xsl:text> </xsl:text> --> - <!-- * </div> --> - <!-- * <xsl:text> </xsl:text> --> - <!-- * </xsl:if> --> + <xsl:if + test="document(concat('../elements/',$name,'.html'))//h:div[@id='examples']"> + <xsl:text> </xsl:text> + <div class="no-number no-toc examples" id="{$name}-examples"> + <xsl:text> </xsl:text> + <h2 class="element-subhead">Examples</h2> + <xsl:text> </xsl:text> + <xsl:for-each + select="document(concat('../elements/',$name,'.html'))//h:div[@id='examples']/h:div"> + <xsl:copy-of select="document(concat('../examples/',.,'.xml'))"/> + <xsl:text> </xsl:text> + </xsl:for-each> + </div> + <xsl:text> </xsl:text> + </xsl:if> </section> </xsl:if> </xsl:template> @@ -1790,7 +1791,7 @@ <xsl:template name="make.dom-interface.section"> <xsl:param name="name"/> <xsl:variable name="spec-url">http://dev.w3.org/html5/spec/</xsl:variable> - <div class="no-number no-toc" id="{$name}-interface"> + <div class="no-number no-toc interface" id="{$name}-interface"> <xsl:text> </xsl:text> <h2 class="element-subhead">DOM interface</h2> <xsl:choose>
Received on Monday, 5 July 2010 07:18:01 UTC