W3C home > Mailing lists > Public > public-html-commits@w3.org > July 2011

html5/spec-author-view/tools preprocess.xsl,1.96,1.97

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 06 Jul 2011 03:55:17 +0000
To: public-html-commits@w3.org
Message-Id: <E1QeJCn-0003MU-Ve@lionel-hutz.w3.org>
Update of /sources/public/html5/spec-author-view/tools
In directory hutz:/tmp/cvs-serv12880/tools

Modified Files:
	preprocess.xsl 
Log Message:
Attempt to reorganise the rendering section to make it more usable for implementors (whatwg r6276)

[updated by splitter]


Index: preprocess.xsl
===================================================================
RCS file: /sources/public/html5/spec-author-view/tools/preprocess.xsl,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -d -r1.96 -r1.97
--- preprocess.xsl	5 Jul 2011 16:21:47 -0000	1.96
+++ preprocess.xsl	6 Jul 2011 03:55:15 -0000	1.97
@@ -467,32 +467,47 @@
     </a>
   </xsl:template>
   <xsl:template match="div[@class = 'impl']">
-    <xsl:for-each select="p[child::a[@href = '#reflect']]
-      | p[child::dfn[@id = 'dom-a-protocol']]
-      | p[child::dfn[@id = 'dom-area-protocol']]
-      | p[child::dfn[@id = 'dom-base-href']]
-      | p[child::dfn[@id = 'dom-cva-validity']]
-      | p[child::dfn[@id = 'dom-dragevent-initdragevent']]
-      | p[child::dfn[@id = 'dom-external']]
-      | p[child::dfn[@id = 'dom-history']]
-      | p[child::dfn[@id = 'dom-meter-value']]
-      | p[child::dfn[@id = 'dom-hashchangeevent-inithashchangeevent']]
-      | p[child::dfn[@id = 'dom-pagetransitionevent-initpagetransitionevent']]
-      | p[child::dfn[@id = 'dom-popstateevent-initpopstateevent']]
-      | p[child::dfn[@id = 'dom-progress-value']]
-      | p[child::dfn[@id = 'dom-input-indeterminate']]
-      | p[child::dfn[@id = 'dom-media-startoffsettime']]
-      | p[child::dfn[@id = 'dom-tokenlist-tostring']]
-      | p[child::dfn[starts-with(@id, 'dom-iframe-')]]
-      | p[child::dfn[starts-with(@id, 'dom-image-')]]
-      | p[child::dfn[starts-with(@id, 'dom-object-')]]
-      ">
-      <xsl:text>&#10;</xsl:text>
-      <p>
-        <xsl:apply-templates/>
-      </p>
-      <xsl:text>&#10;</xsl:text>
-    </xsl:for-each>
+    <xsl:choose>
+      <xsl:when test="*[@id = 'common-parser-idioms']">
+        <div>
+          <xsl:copy-of select="h4"/>
+          <xsl:for-each select="p[child::dfn[@id = 'space-character']]
+            | p[@class = 'note']
+            | p[child::dfn[@id = 'white_space']]
+            | p[child::dfn[@id = 'alphanumeric-ascii-characters']]">
+            <xsl:copy-of select="."/>
+          </xsl:for-each>
+        </div>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:for-each select="p[child::a[@href = '#reflect']]
+          | p[child::dfn[@id = 'dom-a-protocol']]
+          | p[child::dfn[@id = 'dom-area-protocol']]
+          | p[child::dfn[@id = 'dom-base-href']]
+          | p[child::dfn[@id = 'dom-cva-validity']]
+          | p[child::dfn[@id = 'dom-dragevent-initdragevent']]
+          | p[child::dfn[@id = 'dom-external']]
+          | p[child::dfn[@id = 'dom-history']]
+          | p[child::dfn[@id = 'dom-meter-value']]
+          | p[child::dfn[@id = 'dom-hashchangeevent-inithashchangeevent']]
+          | p[child::dfn[@id = 'dom-pagetransitionevent-initpagetransitionevent']]
+          | p[child::dfn[@id = 'dom-popstateevent-initpopstateevent']]
+          | p[child::dfn[@id = 'dom-progress-value']]
+          | p[child::dfn[@id = 'dom-input-indeterminate']]
+          | p[child::dfn[@id = 'dom-media-startoffsettime']]
+          | p[child::dfn[@id = 'dom-tokenlist-tostring']]
+          | p[child::dfn[starts-with(@id, 'dom-iframe-')]]
+          | p[child::dfn[starts-with(@id, 'dom-image-')]]
+          | p[child::dfn[starts-with(@id, 'dom-object-')]]
+          ">
+          <xsl:text>&#10;</xsl:text>
+          <p>
+            <xsl:apply-templates/>
+          </p>
+          <xsl:text>&#10;</xsl:text>
+        </xsl:for-each>
+      </xsl:otherwise>
+    </xsl:choose>
   </xsl:template>
   <xsl:template match="pre[@class = 'idl']//a[@href[starts-with(.,'#handler-')]]">
     <xsl:choose>
Received on Wednesday, 6 July 2011 03:55:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 6 July 2011 03:55:22 GMT