Changeset 308 for rfc2629xslt/check-references.xslt
- Timestamp:
- 10/08/08 14:19:14 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/check-references.xslt
r285 r308 36 36 xmlns:ed="http://greenbytes.de/2002/rfcedit" 37 37 xmlns:rfced="http://www.rfc-editor.org/rfc-index" 38 xmlns:x="http://purl.org/net/xml2rfc/ext" 38 39 > 39 40 40 41 <xsl:output method="text" encoding="UTF-8"/> 41 42 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 43 50 <xsl:param name="link-check" /> 44 51 45 52 <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> 48 55 </xsl:if> 49 56 … … 168 175 169 176 <!-- check the status of the normatively referred drafts --> 170 <xsl:when test="$intended-level=' PROPOSED' and ($title='References' or $title='Normative References') and177 <xsl:when test="$intended-level='proposed' and ($title='References' or $title='Normative References') and 171 178 ($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')"> 172 179 <!-- ok --> 173 180 </xsl:when> 174 <xsl:when test="$intended-level=' DRAFT' and ($title='References' or $title='Normative References') and181 <xsl:when test="$intended-level='draft' and ($title='References' or $title='Normative References') and 175 182 ($stat/rfced:publication-status='DRAFT STANDARD' or $stat/rfced:publication-status='STANDARD' or $stat/rfced:publication-status='BEST CURRENT PRACTICE')"> 176 183 <!-- ok --> 177 184 </xsl:when> 178 <xsl:when test="$intended-level=' STANDARD' and ($title='References' or $title='Normative References') and185 <xsl:when test="$intended-level='internet' and ($title='References' or $title='Normative References') and 179 186 ($stat/rfced:publication-status='STANDARD' or $stat/rfced:publication-status='BEST CURRENT PRACTICE')"> 180 187 <!-- ok -->
Note: See TracChangeset
for help on using the changeset viewer.