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

html5/markup/tools specgen.xsl,1.52,1.53

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 08 Feb 2010 08:53:48 +0000
To: public-html-commits@w3.org
Message-Id: <E1NePNM-0007X9-NM@lionel-hutz.w3.org>
Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv28879/tools

Modified Files:
	specgen.xsl 
Log Message:
checkpointing

Index: specgen.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/specgen.xsl,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- specgen.xsl	8 Feb 2010 06:49:37 -0000	1.52
+++ specgen.xsl	8 Feb 2010 08:53:46 -0000	1.53
@@ -647,7 +647,31 @@
     </xsl:choose>
   </xsl:template>
   <xsl:template match='*'/>
-  <xsl:template match="h:a[@href[starts-with(.,'#')]]" name="link-handler">
+  <xsl:template match="h:a[@href[starts-with(.,'#')]][ancestor::*[@class='elem-mdl']]"
+    priority="100">
+    <xsl:choose>
+      <xsl:when test="preceding-sibling::h:span[@class='postfix intermixed']
+        and contains(@href,'.attrs')
+        "/>
+      <xsl:otherwise>
+        <!-- * if we don’t inject this span, the CSS-generated dot/period -->
+        <!-- * we append to content models ends up getting underlined as -->
+        <!-- * part of any preceding hyperlink -->
+        <span>
+          <xsl:call-template name="link-handler" select="."/>
+        </span>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+  <xsl:template match="h:a[@href[starts-with(.,'#')]]" name="link-handler"> <xsl:choose>
+      <xsl:when test="preceding-sibling::h:span[@class='postfix intermixed']
+        and ancestor::*[@class='elem-mdl']
+        and contains(@href,'.attrs')
+        "/>
+      <xsl:otherwise>
+        <!-- * if we don’t inject this span, the CSS-generated dot/period -->
+        <!-- * we append to content models ends up getting underlined as -->
+        <!-- * part of any preceding hyperlink -->
     <!-- * href ID references in chunked output need to become intra-file -->
     <!-- * references to IDs that are to targets in other files; so this -->
     <!-- * template prepends the correct file name to all "bare" -->
@@ -696,10 +720,6 @@
           |key('id',$href)/ancestor::h:section[(count(ancestor::h:section)=0 and not(@id='elements'))]
           "/>
         <xsl:choose>
-          <xsl:when test="preceding-sibling::h:span[@class='postfix intermixed']
-            and ancestor::*[@class='elem-mdl']
-            and contains($href,'.attrs')
-          "/>
           <xsl:when test="$href='syntax'">
             <a>
               <xsl:copy-of select="@*"/>
@@ -873,6 +893,8 @@
         </xsl:when>
       </xsl:choose>
     </xsl:if>
+  </xsl:otherwise>
+  </xsl:choose>
   </xsl:template>
   <xsl:template match="h:div[@id='tocjump']">
     <div id="tocjump" class="skip-link" style="text-align: center">
Received on Monday, 8 February 2010 08:53:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 8 February 2010 08:53:51 GMT