- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 26 Jul 2010 04:06:28 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv3707/tools
Modified Files:
generate-spec-source.xsl
Log Message:
make the Datatypes section a bit more user-friendly, and better aligned with the HTML5 spec; particularly, definition of "ID reference" and various sets of tokens
Index: generate-spec-source.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v
retrieving revision 1.271
retrieving revision 1.272
diff -u -d -r1.271 -r1.272
--- generate-spec-source.xsl 24 Jul 2010 17:15:29 -0000 1.271
+++ generate-spec-source.xsl 26 Jul 2010 04:06:26 -0000 1.272
@@ -512,6 +512,9 @@
<section id="{@id}-def" class="no-toc">
<xsl:text> </xsl:text>
<xsl:choose>
+ <xsl:when test="$pattern='tokens'">
+ <h2 class="common-subhead"><dfn id="{@id}">Set of space-separated tokens</dfn></h2>
+ </xsl:when>
<xsl:when test="$pattern='browsing-context-name'">
<h2 class="common-subhead"><dfn id="{@id}">Browsing-context name</dfn></h2>
</xsl:when>
@@ -597,10 +600,10 @@
<h2 class="common-subhead"><dfn id="{@id}">ID</dfn></h2>
</xsl:when>
<xsl:when test="$pattern='idref'">
- <h2 class="common-subhead"><dfn id="{@id}">IDREF</dfn></h2>
+ <h2 class="common-subhead"><dfn id="{@id}">ID reference</dfn></h2>
</xsl:when>
<xsl:when test="$pattern='idrefs'">
- <h2 class="common-subhead"><dfn id="{@id}">IDREFS</dfn></h2>
+ <h2 class="common-subhead"><dfn id="{@id}">Set of ID references</dfn></h2>
</xsl:when>
<xsl:otherwise>
<h2 class="common-subhead">
@@ -616,8 +619,6 @@
</xsl:otherwise>
</xsl:choose>
<xsl:text> </xsl:text>
- <div class="content-models">
- <xsl:text> </xsl:text>
<!-- * <div> -->
<!-- * <span -->
<!-- * class="common-pattern-name"> -->
@@ -636,11 +637,19 @@
<xsl:copy-of
select="document('../src/datatypes.html')//
h:dd[preceding-sibling::h:dt=substring-after(current()/@id,'.data.')][not(position()=1)]/node()"/>
- </div>
<xsl:text> </xsl:text>
</section>
+ <xsl:text> </xsl:text>
+ <xsl:if test="$pattern='tokens'">
+ <section id="data-unordered-tokens-def" class="no-toc">
+ <h2 class="common-subhead"><dfn id="data-unordered-tokens">Unordered set of unique space-separated tokens</dfn></h2>
+ <xsl:copy-of
+ select="document('../src/datatypes.html')//
+ h:dd[preceding-sibling::h:dt='unordered-tokens'][not(position()=1)]/node()"/>
+ </section>
+ </xsl:if>
</xsl:for-each>
- <xsl:text> </xsl:text>
+ <xsl:text> </xsl:text>
</section>
<xsl:text> </xsl:text>
<xsl:if test="not($aria=0)">
@@ -2609,6 +2618,9 @@
</xsl:when>
<xsl:otherwise>
<xsl:choose>
+ <xsl:when test=".='tokens'">
+ <a href="{@href}">set of space-separated tokens</a>
+ </xsl:when>
<xsl:when test=".='browsing-context-name'">
<a href="{@href}">browsing-context name</a>
</xsl:when>
@@ -2691,10 +2703,10 @@
<a href="{@href}">ID</a>
</xsl:when>
<xsl:when test=".='idref'">
- <a href="{@href}">IDREF</a>
+ <a href="{@href}">ID reference</a>
</xsl:when>
<xsl:when test=".='idrefs'">
- <a href="{@href}">IDREFS</a>
+ <a href="{@href}">set of ID references</a>
</xsl:when>
<xsl:when test=".='normal-character-data'">
<a href="{@href}">normal character data</a>
@@ -3077,6 +3089,9 @@
<xsl:when test="normalize-space(.)='string'">
<a href="#data-string">string</a>
</xsl:when>
+ <xsl:when test=".='tokens'">
+ <a href="{@href}">set of space-separated tokens</a>
+ </xsl:when>
<xsl:when test=".='browsing-context-name'">
<a href="{@href}">browsing-context name</a>
</xsl:when>
@@ -3159,10 +3174,10 @@
<a href="{@href}">ID</a>
</xsl:when>
<xsl:when test=".='idref'">
- <a href="{@href}">IDREF</a>
+ <a href="{@href}">ID reference</a>
</xsl:when>
<xsl:when test=".='idrefs'">
- <a href="{@href}">IDREFS</a>
+ <a href="{@href}">set of ID references</a>
</xsl:when>
<xsl:when test=".='normal-character-data'">
<a href="{@href}">normal character data</a>
Received on Monday, 26 July 2010 04:06:32 UTC