Fix WebIDL and Makefile for HG migration
authorRyan Sleevi <sleevi@google.com>
Fri, 30 Nov 2012 16:24:33 -0800
changeset 1 0fe9b34c13fb
parent 0 ca944b205467
child 2 d73cb1b6596e
Fix WebIDL and Makefile for HG migration
spec/Makefile
spec/Overview-WebCryptoAPI.xml
spec/Overview.html
spec/WebIDL.xsl
--- a/spec/Makefile	Fri Nov 30 15:48:41 2012 -0800
+++ b/spec/Makefile	Fri Nov 30 16:24:33 2012 -0800
@@ -1,2 +1,2 @@
 Overview.html : Overview-WebCryptoAPI.xml WebIDL.xsl
-	xsltproc --nodtdattr WebIDL.xsl Overview-WebCryptoAPI.xml >Overview.html
+	xsltproc --nodtdattr --stringparam now `date +%Y%m%d` --stringparam rev "0" WebIDL.xsl Overview-WebCryptoAPI.xml >Overview.html
--- a/spec/Overview-WebCryptoAPI.xml	Fri Nov 30 15:48:41 2012 -0800
+++ b/spec/Overview-WebCryptoAPI.xml	Fri Nov 30 16:24:33 2012 -0800
@@ -58,8 +58,6 @@
     <div class='section'>
       <h2>Abstract</h2>
       <p>
-  
-
 This specification describes a JavaScript API for performing basic
 cryptographic operations in web applications, such as hashing,
 signature generation and verification, and encryption and decryption.
--- a/spec/Overview.html	Fri Nov 30 15:48:41 2012 -0800
+++ b/spec/Overview.html	Fri Nov 30 16:24:33 2012 -0800
@@ -12,7 +12,7 @@
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     <title>Web Cryptography API</title>
 
-    <meta name="revision" content="$Id: Overview.html,v 1.41 2012-11-12 13:18:15 hhalpin Exp $" />
+    <meta name="revision" content="$Id: Overview-WebCryptoAPI.xml,v 1.53 2012-11-12 13:16:44 hhalpin Exp $" />
 
     <link rel="stylesheet" href="webcrypto.css" type="text/css" />
     <script src="section-links.js" type="application/ecmascript"></script>
@@ -30,14 +30,12 @@
   <link rel="stylesheet" href="//www.w3.org/StyleSheets/TR/W3C-ED" type="text/css" /></head>
 
   <body>
-    <div class="head"><div><a href="http://www.w3.org/"><img src="//www.w3.org/Icons/w3c_home" width="72" height="48" alt="W3C" /></a></div><h1>Web Cryptography API</h1><h2>W3C Editor’s Draft <em>12 November 2012</em></h2><dl><dt>Latest Editor’s Draft:</dt><dd><a href="http://www.w3.org/2012/webcrypto/WebCryptoAPI">http://www.w3.org/2012/webcrypto/WebCryptoAPI</a></dd><dt>Latest Published Version:</dt><dd><a href="http://www.w3.org/TR/WebCryptoAPI/">http://www.w3.org/TR/WebCryptoAPI/</a></dd><dt>Previous Version(s):</dt><dd><a href="http://www.w3.org/TR/2012/webcrypto/">http://www.w3.org/TR/2012/webcrypto/</a></dd><dt>Editors:</dt><dd><a href="http://ddahl.com/">David Dahl</a>, Mozilla Corporation &lt;[email protected]&gt;</dd><dd><a href="http://www.google.com/">Ryan Sleevi</a>, Google, Inc. &lt;[email protected]&gt;</dd><dt>Participate:</dt><dd><p>Send feedback to <a href="mailto:[email protected]?subject=%5BWebCryptoAPI%5D">[email protected]</a> (<a href="http://lists.w3.org/Archives/Public/public-webcrypto/">archives</a>), or <a href="https://www.w3.org/Bugs/Public/enter_bug.cgi?product=Web%20Cryptography&amp;component=Web%20Cryptography%20API%20Document">file a bug</a> 
+    <div class="head"><div><a href="http://www.w3.org/"><img src="//www.w3.org/Icons/w3c_home" width="72" height="48" alt="W3C" /></a></div><h1>Web Cryptography API</h1><h2>W3C Editor’s Draft <em>30 November 2012</em></h2><dl><dt>Latest Editor’s Draft:</dt><dd><a href="http://www.w3.org/2012/webcrypto/WebCryptoAPI">http://www.w3.org/2012/webcrypto/WebCryptoAPI</a></dd><dt>Latest Published Version:</dt><dd><a href="http://www.w3.org/TR/WebCryptoAPI/">http://www.w3.org/TR/WebCryptoAPI/</a></dd><dt>Previous Version(s):</dt><dd><a href="http://www.w3.org/TR/2012/webcrypto/">http://www.w3.org/TR/2012/webcrypto/</a></dd><dt>Editors:</dt><dd><a href="http://ddahl.com/">David Dahl</a>, Mozilla Corporation &lt;[email protected]&gt;</dd><dd><a href="http://www.google.com/">Ryan Sleevi</a>, Google, Inc. &lt;[email protected]&gt;</dd><dt>Participate:</dt><dd><p>Send feedback to <a href="mailto:[email protected]?subject=%5BWebCryptoAPI%5D">[email protected]</a> (<a href="http://lists.w3.org/Archives/Public/public-webcrypto/">archives</a>), or <a href="https://www.w3.org/Bugs/Public/enter_bug.cgi?product=Web%20Cryptography&amp;component=Web%20Cryptography%20API%20Document">file a bug</a> 
     (see <a href="https://www.w3.org/Bugs/Public/buglist.cgi?product=Web%20Cryptography&amp;component=Web%20Cryptography%20API%20Document&amp;resolution=---">existing bugs</a>).</p></dd></dl><p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> &copy; Cryp <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>&reg;</sup> (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="http://www.ercim.org/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.</p></div><hr />
 
     <div class="section">
       <h2>Abstract</h2>
       <p>
-  
-
 This specification describes a JavaScript API for performing basic
 cryptographic operations in web applications, such as hashing,
 signature generation and verification, and encryption and decryption.
@@ -49,7 +47,7 @@
 signing, and the confidentiality and integrity of communications.
       </p>
   
-      <div class="ednote"><div class="ednoteHeader">Editorial note</div><p>This is revision $Id: Overview.html,v 1.41 2012-11-12 13:18:15 hhalpin Exp $.</p><p>There are 14 further editorial notes in the document.</p></div>
+      <div class="ednote"><div class="ednoteHeader">Editorial note</div><p>There are 14 further editorial notes in the document.</p></div>
     </div>
 
     <div class="section">
--- a/spec/WebIDL.xsl	Fri Nov 30 15:48:41 2012 -0800
+++ b/spec/WebIDL.xsl	Fri Nov 30 16:24:33 2012 -0800
@@ -12,10 +12,11 @@
               media-type='application/xhtml+xml; charset=UTF-8'/>
 
   <xsl:variable name='options' select='/*/h:head/x:options'/>
-  <xsl:variable name='id' select='/*/h:head/h:meta[@name="revision"]/@content'/>
-  <xsl:variable name='rev' select='substring-before(substring-after(substring-after($id, " "), " "), " ")'/>
   <xsl:variable name='tocpi' select='//processing-instruction("toc")[1]'/>
 
+  <xsl:param name='rev'>??</xsl:param>
+  <xsl:param name='now'>12340506</xsl:param>
+
   <xsl:template match='/'>
     <xsl:text>&#xa;</xsl:text>
     <xsl:if test='$options/x:maturity="ED"'>
@@ -183,7 +184,7 @@
     <xsl:variable name='date'>
       <xsl:choose>
         <xsl:when test='$options/x:maturity="ED"'>
-          <xsl:value-of select='translate(substring-before(substring-after(substring-after(substring-after($id, " "), " "), " "), " "), "/", "")'/>
+          <xsl:value-of select='$now'/>
         </xsl:when>
         <xsl:otherwise>
           <xsl:value-of select='substring($options/x:versions/x:this/@href, string-length($options/x:versions/x:this/@href) - 8, 8)'/>
@@ -348,7 +349,6 @@
     <xsl:if test='$options/x:maturity="ED"'>
       <div class='ednote'>
         <div class='ednoteHeader'>Editorial note</div>
-        <p>This is revision <xsl:value-of select='$id'/>.</p>
         <xsl:variable name='n' select='count(//h:div[@class="ednote"])'/>
         <xsl:if test='$n'>
           <p>There are <xsl:value-of select='$n'/> further editorial notes in the document.</p>