Ignore:
Timestamp:
31/03/13 16:34:25 (8 years ago)
Author:
julian.reschke@…
Message:

bump up document dates, update to latest version of rfc2629.xslt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/gen-reference-graph.xslt

    r6 r2218  
    44    "tr.rdf", available from <http://www.w3.org/2002/01/tr-automation/tr.rdf>)
    55
    6     Copyright (c) 2006-2007, Julian Reschke (julian.reschke@greenbytes.de)
     6    Copyright (c) 2006-2013, Julian Reschke (julian.reschke@greenbytes.de)
    77    All rights reserved.
    88
     
    168168    <xsl:value-of select="concat('http://tools.ietf.org/html/',translate($node/rfced:doc-id,$ucase,$lcase))"/>
    169169    <xsl:text>"][tooltip = "</xsl:text>
    170     <xsl:value-of select="$node/rfced:title"/>
     170    <xsl:call-template name="replace-substring">
     171      <xsl:with-param name="string" select="$node/rfced:title"/>
     172      <xsl:with-param name="replace">"</xsl:with-param>
     173      <xsl:with-param name="by">\"</xsl:with-param>
     174    </xsl:call-template>
    171175    <xsl:text>"]</xsl:text>
    172176    <xsl:value-of select="$boxstyle"/>
     
    421425</xsl:template>
    422426
     427<xsl:template name="replace-substring">
     428  <xsl:param name="string" />
     429  <xsl:param name="replace" />
     430  <xsl:param name="by" />
     431
     432  <xsl:choose>
     433    <xsl:when test="contains($string,$replace)">
     434      <xsl:value-of select="concat(substring-before($string, $replace),$by)" />
     435      <xsl:call-template name="replace-substring">
     436        <xsl:with-param name="string" select="substring-after($string,$replace)" />
     437        <xsl:with-param name="replace" select="$replace" />
     438        <xsl:with-param name="by" select="$by" />
     439      </xsl:call-template>
     440    </xsl:when>
     441    <xsl:otherwise><xsl:value-of select="$string" /></xsl:otherwise>
     442  </xsl:choose>
     443
     444</xsl:template>
     445
    423446</xsl:transform>
Note: See TracChangeset for help on using the changeset viewer.