html5/spec-author-view/tools postprocess.xsl,1.21,1.22 preprocess.xsl,1.94,1.95

Update of /sources/public/html5/spec-author-view/tools
In directory hutz:/tmp/cvs-serv2017/tools

Modified Files:
	postprocess.xsl 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.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- preprocess.xsl	5 Jul 2011 07:47:44 -0000	1.94
+++ preprocess.xsl	5 Jul 2011 09:13:01 -0000	1.95
@@ -1,6 +1,7 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   version='1.0'>
   <xsl:param name="RCSREVISION"/>
+  <xsl:param name="html5">http://dev.w3.org/html5/spec/</xsl:param>
   <xsl:output method="html" indent="no" encoding="ascii"
     doctype-public="DUMMY"
     doctype-system="DUMMY"
@@ -263,10 +264,7 @@
       <xsl:text>, </xsl:text>
       <a href="Overview.html">multipage HTML</a>
       <xsl:text>, </xsl:text>
-      <!--
-      <a href="http://dev.w3.org/html5/spec/">full specification</a>.
-      -->
-      <a href="http://www.w3.org/TR/html5/">full specification</a>.
+      <a href="{$html5}">full specification</a>.
       <xsl:text>This is revision </xsl:text>
       <xsl:value-of select="$RCSREVISION"/>
       <xsl:text>.</xsl:text>
@@ -277,10 +275,7 @@
     <xsl:copy-of select="."/>
     <p>This document is a strict subset of
       the
-      <!--
-      <a href="http://dev.w3.org/html5/spec/">full HTML5 specification</a>
-      -->
-      <a href="http://www.w3.org/TR/html5/">full HTML5 specification</a>
+      <a href="{$html5}">full HTML5 specification</a>
       that omits user-agent (UA) implementation details. It is
       targeted toward Web authors and others who are not UA
       implementors and who want a view of the HTML
@@ -289,15 +284,9 @@
       Because this document does not provide implementation conformance
       criteria, UA implementors should not rely on it, but should instead
       refer to the
-      <!--
-      <a href="http://dev.w3.org/html5/spec/">full HTML5 specification</a>.</p>
-      -->
-      <a href="http://www.w3.org/TR/html5/">full HTML5 specification</a>.</p>
+      <a href="{$html5}">full HTML5 specification</a>.</p>
     <p>This document is an automated redaction of the
-      <!--
-      <a href="http://dev.w3.org/html5/spec/">full HTML5 specification</a>.
-      -->
-      <a href="http://www.w3.org/TR/html5/">full HTML5 specification</a>.
+      <a href="{$html5}">full HTML5 specification</a>.
       As such, the two documents are supposed to agree on normative matters
       concerning Web authors. However, if the documents disagree, this is a
       bug in the redaction process and the unredacted full HTML
@@ -549,8 +538,6 @@
   </xsl:template>
   <xsl:template match="dl[@class = 'domintro']/dt/*[@title[starts-with(.,'dom-')]]">
     <xsl:variable name="title" select="@title"/>
-    <!--
-        -->
     <xsl:choose>
       <xsl:when test="not(preceding::dl[@class = 'domintro']/dt/code[@title = $title])
         and not($title = 'dom-a-protocol')

Index: postprocess.xsl
===================================================================
RCS file: /sources/public/html5/spec-author-view/tools/postprocess.xsl,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- postprocess.xsl	5 Jul 2011 08:11:34 -0000	1.21
+++ postprocess.xsl	5 Jul 2011 09:13:00 -0000	1.22
@@ -2,6 +2,7 @@
   xmlns:h="http://www.w3.org/1999/xhtml"
   exclude-result-prefixes="h"
   version='1.0'>
+  <xsl:param name="html5">http://dev.w3.org/html5/spec/</xsl:param>
   <xsl:output method="html" indent="no" encoding="utf-8"
     doctype-public="DUMMY"
     doctype-system="DUMMY"
@@ -38,10 +39,7 @@
         <a>
           <xsl:copy-of select="@*"/>
           <xsl:attribute name="href">
-            <!--
-            <xsl:value-of select="concat('http://dev.w3.org/html5/spec/',$filename,'.html',$ref)"/>
-            -->
-            <xsl:value-of select="concat('http://www.w3.org/TR/2011/WD-html5-20110525/',$filename,'.html',$ref)"/>
+            <xsl:value-of select="concat($html5,$filename,'.html',$ref)"/>
           </xsl:attribute>
           <xsl:attribute name="class">full-spec-link</xsl:attribute>
           <xsl:attribute name="title">

Received on Tuesday, 5 July 2011 09:13:09 UTC