- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 29 Jan 2010 00:36:25 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup/tools In directory hutz:/tmp/cvs-serv2457/tools Modified Files: generate-spec-source.xsl Log Message: experiment with prose content model Index: generate-spec-source.xsl =================================================================== RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v retrieving revision 1.212 retrieving revision 1.213 diff -u -d -r1.212 -r1.213 --- generate-spec-source.xsl 29 Jan 2010 00:25:43 -0000 1.212 +++ generate-spec-source.xsl 29 Jan 2010 00:36:23 -0000 1.213 @@ -1245,6 +1245,15 @@ <xsl:template name="make.content.models.section"> <xsl:param name="name"/> <xsl:param name="name-dot" select="concat($name, '.')"/> + <xsl:if + test="document(concat('../elements/',$name,'.html'))//h:div[@id='prose-model']"> + <div class="no-number no-toc"> + <h2 class="element-subhead">Permitted contents</h2> + <div class="content-models"> + <xsl:copy-of select="document(concat('../elements/',$name,'.html'))//h:div[@id='prose-model']/node()"/> + </div> + </div> + </xsl:if> <div class="no-number no-toc" id="{$name}-content"> <xsl:text> </xsl:text> <h2 class="element-subhead">Content model</h2> @@ -1272,12 +1281,6 @@ </xsl:otherwise> </xsl:choose> </xsl:variable> - <xsl:if - test="document(concat('../elements/',$name,'.html'))//h:div[@id='prose-model']"> - <div class="prose-model"> - <xsl:copy-of select="document(concat('../elements/',$name,'.html'))//h:div[@id='prose-model']/node()"/> - </div> - </xsl:if> <xsl:text> </xsl:text> <xsl:element name="{$wrapper}"> <xsl:attribute name="id">
Received on Friday, 29 January 2010 00:36:27 UTC