- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 22 Jul 2010 11:05:43 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup/tools In directory hutz:/tmp/cvs-serv15651/tools Modified Files: generate-spec-source.xsl Log Message: all attribute links to HTML5 spec now work Index: generate-spec-source.xsl =================================================================== RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v retrieving revision 1.267 retrieving revision 1.268 diff -u -d -r1.267 -r1.268 --- generate-spec-source.xsl 22 Jul 2010 05:48:27 -0000 1.267 +++ generate-spec-source.xsl 22 Jul 2010 11:05:41 -0000 1.268 @@ -1081,9 +1081,9 @@ </section> </xsl:when> </xsl:choose> - <!-- * <xsl:message> --> - <!-- * <xsl:value-of select="$short-name"/> --> - <!-- * </xsl:message> --> + <xsl:message> + <xsl:value-of select="$short-name"/> + </xsl:message> <section> <xsl:attribute name="id"> <xsl:value-of select="$name"/> @@ -2656,11 +2656,14 @@ </span> <xsl:variable name="spec-target"> <xsl:choose> + <xsl:when test="document('../src/map-attributes.html')//*[preceding-sibling::*=$ref]"> + <xsl:value-of select="concat('#',document('../src/map-attributes.html')//*[preceding-sibling::*=$ref])"/> + </xsl:when> <xsl:when test="starts-with($href,'#scripting.attr.on')"> <xsl:value-of select="concat('#handler-',substring-after($href,'#scripting.attr.'))"/> </xsl:when> - <xsl:when test="not($name='') and document('../src/map-attributes.html')//*[preceding-sibling::*=$ref]"> - <xsl:value-of select="concat('#',document('../src/map-attributes.html')//*[preceding-sibling::*=$ref])"/> + <xsl:when test="starts-with($href,'#input.')"> + <xsl:value-of select="concat('#attr-input-',substring-after($href,'.attrs.'))"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat('#attr-',$name,'-',$attribute-name)"/> @@ -2677,11 +2680,13 @@ <xsl:with-param name="ref" select="$spec-target"/> </xsl:call-template> </xsl:variable> - <span class="spec-link"> - <a title="Read about this attribute in the HTML5 spec" - href="{$filename}.html{$spec-target}">ⓘ</a> - </span> + <xsl:if test="not($filename='')"> + <span class="spec-link"> + <a title="Read about this attribute in the HTML5 spec" + href="{$filename}.html{$spec-target}">ⓘ</a> + </span> <xsl:text> </xsl:text> + </xsl:if> <xsl:if test="not($name='') and document(concat('../elements/',$name,'.html'))//*[@id=$ref][contains(@class,'new')] or $attributes//*[@id=$ref][contains(@class,'new')] "> @@ -3214,9 +3219,8 @@ <xsl:value-of select="concat('http://dev.w3.org/html5/spec/',key('filename-map',$ref)/*[2])"/> </xsl:when> <xsl:otherwise> - <xsl:value-of select="concat('http://dev.w3.org/html5/spec-author-view/',key('filename-map',$ref)/*[2])"/> <xsl:message> - <xsl:text> NOT FOUND: </xsl:text> + <xsl:text> ** NOT FOUND: </xsl:text> <xsl:value-of select="$ref"/> </xsl:message> </xsl:otherwise>
Received on Thursday, 22 July 2010 11:05:45 UTC