Ignore:
Timestamp:
01/12/10 12:07:53 (10 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/samples/rfc2629.xslt

    r1072 r1095  
    406406      <xsl:call-template name="error">
    407407        <xsl:with-param name="msg" select="concat('Unsupported value for /rfc/@submissionType: ', /rfc/@submissionType)"/>
     408        <xsl:with-param name="inline" select="'no'"/>
     409      </xsl:call-template>
     410    </xsl:otherwise>
     411  </xsl:choose>
     412 
     413  <!-- sanity check on @consensus -->
     414  <xsl:if test="/rfc/@consensus and (/rfc/@submissionType='IAB' or /rfc/@submissionType='independent')">
     415    <xsl:call-template name="warning">
     416      <xsl:with-param name="msg" select="concat('/rfc/@consensus meaningless with a /rfc/@submissionType value of ', /rfc/@submissionType)"/>
     417      <xsl:with-param name="inline" select="'no'"/>
     418    </xsl:call-template>
     419  </xsl:if>
     420</xsl:variable>
     421
     422<xsl:variable name="consensus">
     423  <xsl:choose>
     424    <xsl:when test="/rfc/@consensus='yes' or not(/rfc/@consensus)">yes</xsl:when>
     425    <xsl:when test="/rfc/@consensus='no'">no</xsl:when>
     426    <xsl:otherwise>
     427      <xsl:value-of select="concat('(UNSUPPORTED VALUE FOR CONSENSUS: ',/rfc/@consensus,')')"/>
     428      <xsl:call-template name="error">
     429        <xsl:with-param name="msg" select="concat('Unsupported value for /rfc/@consensus: ', /rfc/@consensus)"/>
    408430        <xsl:with-param name="inline" select="'no'"/>
    409431      </xsl:call-template>
     
    34143436  margin-left: 0em;
    34153437}
    3416 <xsl:if test="$has-index">ul.ind {
     3438<xsl:if test="$has-index">ul.ind, ul.ind ul {
    34173439  list-style: none;
    34183440  margin-left: 1.5em;
     
    43094331          (IETF).
    43104332          <xsl:choose>
    4311             <xsl:when test="not(/rfc/@consensus) or /rfc/@consensus='yes'">
     4333            <xsl:when test="$consensus='yes'">
    43124334              It represents the consensus of the IETF community.  It has
    43134335              received public review and has been approved for publication by
     
    43174339              It has been approved for publication by the Internet Engineering
    43184340              Steering Group (IESG).
     4341              <!-- sanity check of $consensus -->
     4342              <xsl:if test="/rfc/@category='std' or /rfc/@category='bcp'">
     4343                <xsl:call-template name="error">
     4344                  <xsl:with-param name="msg" select="'IETF BCPs and Standards Track documents require IETF consensus, check values of @category and @consensus!'"/>
     4345                  <xsl:with-param name="inline" select="'no'"/>
     4346                </xsl:call-template>
     4347              </xsl:if>
    43194348            </xsl:otherwise>
    43204349          </xsl:choose>
     
    43314360          deployment.
    43324361          <xsl:choose>
    4333             <xsl:when test="(not(/rfc/@consensus) or /rfc/@consensus='yes') and /rfc/front/workgroup!=''">
     4362            <xsl:when test="$consensus='yes' and /rfc/front/workgroup!=''">
    43344363              This RFC represents the consensus of the
    43354364              <xsl:value-of select="/rfc/front/workgroup"/> Research Group of the Internet
    43364365              Research Task Force (IRTF).
    43374366            </xsl:when>
    4338             <xsl:when test="/rfc/@consensus='no' and /rfc/front/workgroup!=''">
     4367            <xsl:when test="$consensus='no' and /rfc/front/workgroup!=''">
    43394368              This RFC represents the individual opinion(s) of one or more
    43404369              members of the <xsl:value-of select="/rfc/front/workgroup"/> Research Group of the
     
    61676196    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    61686197    <!-- when RCS keyword substitution in place, add version info -->
    6169     <xsl:if test="contains('$Revision: 1.531 $',':')">
    6170       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.531 $', 'Revision: '),'$','')),', ')" />
     6198    <xsl:if test="contains('$Revision: 1.536 $',':')">
     6199      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.536 $', 'Revision: '),'$','')),', ')" />
    61716200    </xsl:if>
    6172     <xsl:if test="contains('$Date: 2010-10-31 21:50:52 $',':')">
    6173       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2010-10-31 21:50:52 $', 'Date: '),'$','')),', ')" />
     6201    <xsl:if test="contains('$Date: 2010-11-29 12:56:12 $',':')">
     6202      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2010-11-29 12:56:12 $', 'Date: '),'$','')),', ')" />
    61746203    </xsl:if>
    61756204    <xsl:value-of select="concat('XSLT vendor: ',system-property('xsl:vendor'),' ',system-property('xsl:vendor-url'))" />
     
    66706699      <xsl:text> (at line </xsl:text>
    66716700      <xsl:value-of select="saxon-old:line-number()"/>
     6701      <xsl:if test="function-available('saxon-old:systemId')">
     6702        <xsl:variable name="rootsys">
     6703          <xsl:for-each select="/*">
     6704            <xsl:value-of select="saxon-old:systemId()"/>
     6705          </xsl:for-each>
     6706        </xsl:variable>
     6707        <xsl:if test="$rootsys != saxon-old:systemId()">
     6708          <xsl:text> of </xsl:text>
     6709          <xsl:value-of select="saxon-old:systemId()"/>
     6710        </xsl:if>
     6711      </xsl:if>
    66726712      <xsl:text>)</xsl:text>
    66736713    </xsl:if>
     
    66776717      <xsl:text> (at line </xsl:text>
    66786718      <xsl:value-of select="saxon:line-number()"/>
     6719      <xsl:if test="function-available('saxon:systemId')">
     6720        <xsl:variable name="rootsys">
     6721          <xsl:for-each select="/*">
     6722            <xsl:value-of select="saxon:systemId()"/>
     6723          </xsl:for-each>
     6724        </xsl:variable>
     6725        <xsl:if test="$rootsys != saxon:systemId()">
     6726          <xsl:text> of </xsl:text>
     6727          <xsl:value-of select="saxon:systemId()"/>
     6728        </xsl:if>
     6729      </xsl:if>
    66796730      <xsl:text>)</xsl:text>
    66806731    </xsl:if>
Note: See TracChangeset for help on using the changeset viewer.