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

html5/markup/tools generate-spec-source.xsl,1.283,1.284

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 31 Jul 2010 20:14:46 +0000
To: public-html-commits@w3.org
Message-Id: <E1OfISE-0006Mt-69@lionel-hutz.w3.org>
Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv24264/tools

Modified Files:
	generate-spec-source.xsl 
Log Message:
build tweak

Index: generate-spec-source.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v
retrieving revision 1.283
retrieving revision 1.284
diff -u -d -r1.283 -r1.284
--- generate-spec-source.xsl	31 Jul 2010 14:48:53 -0000	1.283
+++ generate-spec-source.xsl	31 Jul 2010 20:14:44 -0000	1.284
@@ -17,6 +17,13 @@
   <xsl:key name="elements" match="*" use="@id"/>
   <xsl:key name="filename-map" match="ul" use="li"/>
   <xsl:key name="interface-name" match="pre[@class='idl']" use="dfn/@id"/>
+  <xsl:variable name="htmlelement-filename">
+    <xsl:call-template name="get-spec-filename">
+      <xsl:with-param name="ref">#htmlelement</xsl:with-param>
+      <xsl:with-param name="base">http://dev.w3.org/html5/spec/</xsl:with-param>
+      <xsl:with-param name="fragment-file">../fragment-links-full.html</xsl:with-param>
+    </xsl:call-template>
+  </xsl:variable>
   <xsl:variable name="assertions">
     <!-- * FIXME: really should be doing this with keys... -->
     <xsl:for-each
@@ -1877,6 +1884,12 @@
                     </xsl:otherwise>
                   </xsl:choose>
                 </xsl:when>
+                <xsl:when test="not(name() = '')">
+                  <xsl:element name="{local-name(.)}">
+                    <xsl:copy-of select="@*"/>
+                    <xsl:copy-of select="node()"/>
+                  </xsl:element>
+                </xsl:when>
                 <xsl:otherwise>
                   <xsl:copy-of select="."/>
                 </xsl:otherwise>
@@ -1886,7 +1899,7 @@
         </xsl:when>
         <xsl:otherwise>
           <p class="dom-interface">Uses
-            <a href="{$spec-url}#htmlelement" title="HTMLElement">HTMLElement</a>.
+            <a href="{$htmlelement-filename}#htmlelement" title="HTMLElement">HTMLElement</a>.
           </p>
         </xsl:otherwise>
       </xsl:choose>
@@ -3050,7 +3063,7 @@
       select="translate($interface,
       'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
       'abcdefghijklmnopqrstuvwxyz')"/>
-    <xsl:param name="base">../spec-author-view/</xsl:param>
+    <xsl:param name="base">../spec-multipage/</xsl:param>
     <xsl:variable name="filename">
       <xsl:call-template name="get-spec-filename">
         <xsl:with-param name="ref" select="concat('#',$lowercase-interface)"/>
Received on Saturday, 31 July 2010 20:14:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 31 July 2010 20:14:50 GMT