html5/markup/tools generate-spec-source.xsl,1.227,1.228 specgen.xsl,1.47,1.48 toc.xsl,1.10,1.11

Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv6303/tools

Modified Files:
	generate-spec-source.xsl specgen.xsl toc.xsl 
Log Message:
documenting attributes with empty values better


Index: specgen.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/specgen.xsl,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- specgen.xsl	3 Feb 2010 10:27:05 -0000	1.47
+++ specgen.xsl	3 Feb 2010 14:44:07 -0000	1.48
@@ -129,9 +129,8 @@
       <xsl:if test='//*[@id="subtitle"]'>
         <h3 id="subtitle"><xsl:value-of select='//*[@id="subtitle"]'/></h3>
       </xsl:if>
-      <xsl:if test="$site = 'W3C'">
       <h2>
-        W3C
+      <xsl:if test="$site = 'W3C'">W3C </xsl:if>
         <xsl:choose>
           <xsl:when test='
             $maturity="WD"
@@ -151,7 +150,6 @@
           <xsl:call-template name='date'/>
         </em>
       </h2>
-      </xsl:if>
 
       <dl>
         <xsl:if test="$site = 'W3C'">
@@ -610,19 +608,19 @@
           <xsl:with-param name="title">
             <xsl:text>HTML5: </xsl:text>
             <xsl:for-each select='h:h2/node()
-              [not(contains(@class,"obsoleted-element"))]
-              [not(contains(@class,"changed-element"))]
-              [not(contains(@class,"new-element"))]
+              [not(contains(@class,"obsoleted-feature"))]
+              [not(contains(@class,"changed-feature"))]
+              [not(contains(@class,"new-feature"))]
               '>
               <xsl:copy-of select='.'/>
             </xsl:for-each>
-            <xsl:if test='h:h2/node()[contains(@class,"obsoleted-element")]'>
+            <xsl:if test='h:h2/node()[contains(@class,"obsoleted-feature")]'>
               <xsl:text>(OBSOLETE)</xsl:text>
             </xsl:if>
-            <xsl:if test='h:h2/node()[contains(@class,"changed-element")]'>
+            <xsl:if test='h:h2/node()[contains(@class,"changed-feature")]'>
               <xsl:text>(CHANGED)</xsl:text>
             </xsl:if>
-            <xsl:if test='h:h2/node()[contains(@class,"new-element")]'>
+            <xsl:if test='h:h2/node()[contains(@class,"new-feature")]'>
               <xsl:text>(NEW)</xsl:text>
             </xsl:if>
           </xsl:with-param>

Index: generate-spec-source.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v
retrieving revision 1.227
retrieving revision 1.228
diff -u -d -r1.227 -r1.228
--- generate-spec-source.xsl	3 Feb 2010 10:27:05 -0000	1.227
+++ generate-spec-source.xsl	3 Feb 2010 14:44:07 -0000	1.228
@@ -1064,19 +1064,19 @@
           </span>
           <xsl:if test='not($obsoleted="")'>
             <xsl:text> </xsl:text>
-            <span class="obsoleted-element"
+            <span class="obsoleted-feature"
               title="This markup feature has been obsoleted in HTML5."
               >OBSOLETE</span>
           </xsl:if>
           <xsl:if test='not($changed="")'>
             <xsl:text> </xsl:text>
-            <span class="changed-element"
+            <span class="changed-feature"
               title="The meaning of this markup feature has changed in HTML5."
               >CHANGED</span>
           </xsl:if>
           <xsl:if test='not($new="")'>
             <xsl:text> </xsl:text>
-            <span class="new-element"
+            <span class="new-feature"
               title="This markup feature is newly added in HTML5."
               >NEW</span>
           </xsl:if>
@@ -2249,17 +2249,20 @@
               </xsl:when>
               <xsl:when
                 test="not(//*[@id=$ref]//*[@class='model']/h:a)">
-                <xsl:call-template name="string.subst">
-                  <xsl:with-param name="string">
-                    <xsl:call-template name="string.subst">
-                      <xsl:with-param name="string" select="$model"/>
-                      <xsl:with-param name="target">d:string</xsl:with-param>
-                      <xsl:with-param name="replacement"></xsl:with-param>
-                    </xsl:call-template>
-                  </xsl:with-param>
-                  <xsl:with-param name="target">string "</xsl:with-param>
-                  <xsl:with-param name="replacement">"</xsl:with-param>
-                </xsl:call-template>
+                <xsl:for-each select="//*[@id=$ref]//*[@class='model']/node()">
+                  <xsl:choose>
+                    <xsl:when test="name()=''">
+                      <xsl:call-template name="string.subst">
+                        <xsl:with-param name="string" select="."/>
+                        <xsl:with-param name="target"> string "</xsl:with-param>
+                        <xsl:with-param name="replacement">"</xsl:with-param>
+                      </xsl:call-template>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:copy-of select="."/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:for-each>
               </xsl:when>
               <xsl:otherwise>
                 <xsl:for-each
@@ -2267,14 +2270,8 @@
                   <xsl:choose>
                     <xsl:when test="name()=''">
                       <xsl:call-template name="string.subst">
-                        <xsl:with-param name="string">
-                          <xsl:call-template name="string.subst">
-                            <xsl:with-param name="string" select="."/>
-                            <xsl:with-param name="target">d:string</xsl:with-param>
-                            <xsl:with-param name="replacement"></xsl:with-param>
-                          </xsl:call-template>
-                        </xsl:with-param>
-                        <xsl:with-param name="target">string "</xsl:with-param>
+                        <xsl:with-param name="string" select="."/>
+                        <xsl:with-param name="target"> string "</xsl:with-param>
                         <xsl:with-param name="replacement">"</xsl:with-param>
                       </xsl:call-template>
                     </xsl:when>
@@ -2357,14 +2354,8 @@
           <xsl:copy-of select="//*[@id=$ref]//*[@class='model']"/>
         </xsl:variable>
         <xsl:call-template name="string.subst">
-          <xsl:with-param name="string">
-            <xsl:call-template name="string.subst">
-              <xsl:with-param name="string" select="$model"/>
-              <xsl:with-param name="target">d:string</xsl:with-param>
-              <xsl:with-param name="replacement"></xsl:with-param>
-            </xsl:call-template>
-          </xsl:with-param>
-          <xsl:with-param name="target">string "</xsl:with-param>
+          <xsl:with-param name="string" select="$model"/>
+          <xsl:with-param name="target"> string "</xsl:with-param>
           <xsl:with-param name="replacement">"</xsl:with-param>
         </xsl:call-template>
       </span>
@@ -2391,14 +2382,8 @@
             <xsl:copy-of select="//*[@id=$coords.pattern]//*[@class='model']"/>
           </xsl:variable>
           <xsl:call-template name="string.subst">
-            <xsl:with-param name="string">
-              <xsl:call-template name="string.subst">
-                <xsl:with-param name="string" select="$model"/>
-                <xsl:with-param name="target">d:string</xsl:with-param>
-                <xsl:with-param name="replacement"></xsl:with-param>
-              </xsl:call-template>
-            </xsl:with-param>
-            <xsl:with-param name="target">string "</xsl:with-param>
+            <xsl:with-param name="string" select="$model"/>
+            <xsl:with-param name="target"> string "</xsl:with-param>
             <xsl:with-param name="replacement">"</xsl:with-param>
           </xsl:call-template>
         </span>
@@ -2664,13 +2649,6 @@
   <!-- * ================================================================= -->
   <xsl:template name="process.datatype.reference">
     <xsl:choose>
-      <xsl:when test="name()=''">
-        <xsl:call-template name="string.subst">
-          <xsl:with-param name="string" select="."/>
-          <xsl:with-param name="target">d:string</xsl:with-param>
-          <xsl:with-param name="replacement"></xsl:with-param>
-        </xsl:call-template>
-      </xsl:when>
       <xsl:when test="normalize-space(.)='string'">
         <a href="#data-string">string</a>
       </xsl:when>

Index: toc.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/toc.xsl,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- toc.xsl	3 Feb 2010 10:27:05 -0000	1.10
+++ toc.xsl	3 Feb 2010 14:44:07 -0000	1.11
@@ -86,29 +86,29 @@
               </span>
               <xsl:for-each select='(h:h2|h:h3|h:h4|h:h5|h:h6)/node()
               [not(normalize-space(.)="")]
-              [not(contains(@class,"obsoleted-element"))]
-              [not(contains(@class,"changed-element"))]
-              [not(contains(@class,"new-element"))]
+              [not(contains(@class,"obsoleted-feature"))]
+              [not(contains(@class,"changed-feature"))]
+              [not(contains(@class,"new-feature"))]
               '>
                 <xsl:text> </xsl:text>
                 <xsl:copy-of select='.'/>
               </xsl:for-each>
             </a>
-            <xsl:if test='(h:h2|h:h3|h:h4|h:h5|h:h6)/node()[contains(@class,"obsoleted-element")]'>
+            <xsl:if test='(h:h2|h:h3|h:h4|h:h5|h:h6)/node()[contains(@class,"obsoleted-feature")]'>
               <xsl:text> </xsl:text>
-              <span class="obsoleted-element"
+              <span class="obsoleted-feature"
                 title="This markup feature has been obsoleted in HTML5."
                 >OBSOLETE</span>
             </xsl:if>
-            <xsl:if test='(h:h2|h:h3|h:h4|h:h5|h:h6)/node()[contains(@class,"changed-element")]'>
+            <xsl:if test='(h:h2|h:h3|h:h4|h:h5|h:h6)/node()[contains(@class,"changed-feature")]'>
               <xsl:text> </xsl:text>
-              <span class="changed-element"
+              <span class="changed-feature"
                 title="The meaning of this markup feature has changed in HTML5."
                 >CHANGED</span>
             </xsl:if>
-            <xsl:if test='(h:h2|h:h3|h:h4|h:h5|h:h6)/node()[contains(@class,"new-element")]'>
+            <xsl:if test='(h:h2|h:h3|h:h4|h:h5|h:h6)/node()[contains(@class,"new-feature")]'>
               <xsl:text> </xsl:text>
-              <span class="new-element"
+              <span class="new-feature"
                 title="This markup feature is newly added in HTML5."
                 >NEW</span>
             </xsl:if>

Received on Wednesday, 3 February 2010 14:44:10 UTC