Ignore:
Timestamp:
Aug 10, 2008, 7:19:14 AM (11 years ago)
Author:
julian.reschke@…
Message:

update to latest version of rfc2629.xslt, annotate spec with intended maturity level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/check-references.xslt

    r285 r308  
    3636                xmlns:ed="http://greenbytes.de/2002/rfcedit"
    3737                xmlns:rfced="http://www.rfc-editor.org/rfc-index"
     38                xmlns:x="http://purl.org/net/xml2rfc/ext"
    3839>
    3940
    4041<xsl:output method="text" encoding="UTF-8"/>
    4142
    42 <xsl:param name="intended-level" />
     43<xsl:param name="intended-level">
     44  <xsl:choose>
     45    <xsl:when test="/rfc/@x:maturity-level"><xsl:value-of select="/rfc/@x:maturity-level"/></xsl:when>
     46    <xsl:otherwise/>
     47  </xsl:choose>
     48</xsl:param>
     49
    4350<xsl:param name="link-check" />
    4451
    4552<xsl:template match="/">
    46   <xsl:if test="$intended-level!='' and ($intended-level!='PROPOSED' and $intended-level!='DRAFT' and $intended-level!='STANDARD')">
    47     <xsl:message terminate='yes'>intended-level: unsupported value (must be 'PROPOSED', 'DRAFT' or 'STANDARD')!</xsl:message>
     53  <xsl:if test="$intended-level!='' and ($intended-level!='proposed' and $intended-level!='draft' and $intended-level!='internet')">
     54    <xsl:message terminate='yes'>intended-level: unsupported value (must be 'proposed', 'draft' or 'internet')!</xsl:message>
    4855  </xsl:if>
    4956 
     
    168175
    169176    <!-- check the status of the normatively referred drafts -->
    170     <xsl:when test="$intended-level='PROPOSED' and ($title='References' or $title='Normative References') and
     177    <xsl:when test="$intended-level='proposed' and ($title='References' or $title='Normative References') and
    171178      ($stat/rfced:publication-status='PROPOSED STANDARD' or $stat/rfced:publication-status='DRAFT STANDARD' or $stat/rfced:publication-status='STANDARD' or $stat/rfced:publication-status='BEST CURRENT PRACTICE')">
    172179      <!-- ok -->
    173180    </xsl:when>
    174     <xsl:when test="$intended-level='DRAFT' and ($title='References' or $title='Normative References') and
     181    <xsl:when test="$intended-level='draft' and ($title='References' or $title='Normative References') and
    175182      ($stat/rfced:publication-status='DRAFT STANDARD' or $stat/rfced:publication-status='STANDARD' or $stat/rfced:publication-status='BEST CURRENT PRACTICE')">
    176183      <!-- ok -->
    177184    </xsl:when>
    178     <xsl:when test="$intended-level='STANDARD' and ($title='References' or $title='Normative References') and
     185    <xsl:when test="$intended-level='internet' and ($title='References' or $title='Normative References') and
    179186      ($stat/rfced:publication-status='STANDARD' or $stat/rfced:publication-status='BEST CURRENT PRACTICE')">
    180187      <!-- ok -->
Note: See TracChangeset for help on using the changeset viewer.