html5/markup/tools generate-spec-source.xsl,1.197,1.198

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

Modified Files:
	generate-spec-source.xsl 
Log Message:
added all remaining attribute descriptions that were missing


Index: generate-spec-source.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -d -r1.197 -r1.198
--- generate-spec-source.xsl	2 Aug 2009 07:07:46 -0000	1.197
+++ generate-spec-source.xsl	2 Aug 2009 08:15:43 -0000	1.198
@@ -1768,48 +1768,6 @@
                           </xsl:choose>
                         </span>
                       </xsl:when>
-                      <xsl:when test="@id = 'td.attrs' or @id = 'th.attrs'">
-                        <span class="pattern" id="{@id}">
-                          <xsl:variable name="cell-type"
-                            select="substring-before(@id,'.')"/>
-                          <xsl:for-each select="node()">
-                            <xsl:choose>
-                              <xsl:when test="@href='#tables.attrs.cell-structure'">
-                                <xsl:for-each select="//*[@id = 'tables.attrs.cell-structure']/node()">
-                                  <xsl:choose>
-                                    <xsl:when test="self::h:a">
-                                      <xsl:variable name="ref" select="substring-after(@href,'#')"/>
-                                      <a class="ref">
-                                        <xsl:attribute name="href">
-                                          <xsl:value-of select="concat('#',$cell-type,'-',$ref)"/>
-                                        </xsl:attribute>
-                                        <xsl:copy-of select="node()"/>
-                                      </a>
-                                    </xsl:when>
-                                    <xsl:otherwise>
-                                      <xsl:copy-of select="."/>
-                                    </xsl:otherwise>
-                                  </xsl:choose>
-                                </xsl:for-each>
-                              </xsl:when>
-                              <xsl:when test="@href='#tables.attrs.headers'
-                                or @href='#tables.attrs.scope'
-                                ">
-                                <xsl:variable name="ref" select="substring-after(@href,'#')"/>
-                                <a class="ref">
-                                  <xsl:attribute name="href">
-                                    <xsl:value-of select="concat('#',$cell-type,'-',$ref)"/>
-                                  </xsl:attribute>
-                                  <xsl:copy-of select="node()"/>
-                                </a>
-                              </xsl:when>
-                              <xsl:otherwise>
-                                <xsl:copy-of select="."/>
-                              </xsl:otherwise>
-                            </xsl:choose>
-                          </xsl:for-each>
-                        </span>
-                      </xsl:when>
                       <xsl:otherwise>
                         <xsl:variable name="ref" select="@id"/>
                         <xsl:choose>
@@ -1961,42 +1919,6 @@
                 </xsl:call-template>
               </xsl:for-each>
             </xsl:when>
-            <xsl:when test="@name='td'">
-              <xsl:for-each select="document('../html.rnc.spec.html')//*[@id = 'td.attrs']/h:a[not(contains(.,'common'))]">
-                <xsl:choose>
-                  <xsl:when test="contains(self::*/@href,'cell-structure')">
-                    <xsl:for-each select="document('../html.rnc.spec.html')//*[@id='tables.attrs.cell-structure']/h:a">
-                      <xsl:call-template name="make.attribute.definition">
-                        <xsl:with-param name="name" select="$name"/>
-                      </xsl:call-template>
-                    </xsl:for-each>
-                  </xsl:when>
-                  <xsl:otherwise>
-                    <xsl:call-template name="make.attribute.definition">
-                      <xsl:with-param name="name" select="$name"/>
-                    </xsl:call-template>
-                  </xsl:otherwise>
-                </xsl:choose>
-              </xsl:for-each>
-            </xsl:when>
-            <xsl:when test="@name='th'">
-              <xsl:for-each select="document('../html.rnc.spec.html')//*[@id = 'th.attrs']/h:a[not(contains(.,'common'))]">
-                <xsl:choose>
-                  <xsl:when test="contains(self::*/@href,'cell-structure')">
-                    <xsl:for-each select="document('../html.rnc.spec.html')//*[@id='tables.attrs.cell-structure']/h:a">
-                      <xsl:call-template name="make.attribute.definition">
-                        <xsl:with-param name="name" select="$name"/>
-                      </xsl:call-template>
-                    </xsl:for-each>
-                  </xsl:when>
-                  <xsl:otherwise>
-                    <xsl:call-template name="make.attribute.definition">
-                      <xsl:with-param name="name" select="$name"/>
-                    </xsl:call-template>
-                  </xsl:otherwise>
-                </xsl:choose>
-              </xsl:for-each>
-            </xsl:when>
             <xsl:otherwise>
               <xsl:for-each select="document('../html.rnc.spec.html')//*[starts-with(@id,$name-dot)
                 and substring(@id,string-length(@id)-4)='attrs']//h:a[not(contains(.,'common'))
@@ -2112,14 +2034,7 @@
               </xsl:when>
               <xsl:otherwise>
                 <xsl:variable name="adj-ref">
-                  <xsl:choose>
-                    <xsl:when test="$name = 'td' or $name = 'th'">
-                      <xsl:value-of select="concat($name,'-',$ref)"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      <xsl:value-of select="$ref"/>
-                    </xsl:otherwise>
-                  </xsl:choose>
+                  <xsl:value-of select="$ref"/>
                 </xsl:variable>
                 <a class="attribute-name"
                   id="{$adj-ref}"

Received on Sunday, 2 August 2009 08:15:55 UTC