Ignore:
Timestamp:
31/12/07 13:49:54 (12 years ago)
Author:
julian.reschke@…
Message:

Update to latest version of rfc2629.xslt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629.xslt

    r32 r118  
    627627      </xsl:when>
    628628      <xsl:otherwise>
    629         <xsl:message><xsl:value-of select="$node-set-warning"/></xsl:message>
    630         <p class="error"><xsl:value-of select="$node-set-warning"/></p>
     629        <xsl:call-template name="error">
     630          <xsl:with-param name="msg" select="$node-set-warning"/>
     631        </xsl:call-template>
    631632      </xsl:otherwise>
    632633    </xsl:choose>
     
    696697        </xsl:when>   
    697698        <xsl:otherwise>
    698           <xsl:message><xsl:value-of select="$node-set-warning"/></xsl:message>
    699           <p class="error"><xsl:value-of select="$node-set-warning"/></p>
     699          <xsl:call-template name="error">
     700            <xsl:with-param name="msg" select="$node-set-warning"/>
     701          </xsl:call-template>
    700702        </xsl:otherwise>
    701703      </xsl:choose>
     
    739741      </xsl:when>
    740742      <xsl:otherwise>
    741         <xsl:message><xsl:value-of select="$node-set-warning"/></xsl:message>
    742         <p class="error"><xsl:value-of select="$node-set-warning"/></p>
     743        <xsl:call-template name="error">
     744          <xsl:with-param name="msg" select="$node-set-warning"/>
     745        </xsl:call-template>
    743746      </xsl:otherwise>
    744747    </xsl:choose>
     
    16761679    <!-- Other x:fmt values than "none": unsupported -->
    16771680    <xsl:when test="@x:fmt and @x:fmt!='none'">
    1678       <xsl:message>unknown xref/@x:fmt extension: <xsl:value-of select="@x:fmt"/></xsl:message>
    1679       <span class="error">unknown xref/@x:fmt extension: <xsl:value-of select="@x:fmt"/></span>
     1681      <xsl:call-template name="error">
     1682        <xsl:with-param name="msg" select="concat('unknown xref/@x:fmt extension: ',@x:fmt)"/>
     1683      </xsl:call-template>
    16801684    </xsl:when>
    16811685
     
    17231727  <xsl:variable name="node" select="$src//*[@anchor=$target]" />
    17241728  <xsl:if test="count($node)=0 and not(ancestor::ed:del)">
    1725     <xsl:message>Undefined target: <xsl:value-of select="@target" /></xsl:message>
    1726     <span class="error">Undefined target: <xsl:value-of select="@target" /></span>
     1729    <xsl:call-template name="error">
     1730      <xsl:with-param name="msg" select="concat('Undefined target: ',@target)"/>
     1731    </xsl:call-template>
    17271732  </xsl:if>
    17281733
     
    18621867     
    18631868      <xsl:if test="$fmt and not($fmt='()' or $fmt=',' or $fmt='of' or $fmt='sec' or $fmt='anchor' or $fmt='number')">
    1864         <xsl:message>unknown xref/@x:fmt extension: <xsl:value-of select="$fmt"/></xsl:message>
    1865         <span class="error">unknown xref/@x:fmt extension: <xsl:value-of select="$fmt"/></span>
     1869        <xsl:call-template name="error">
     1870          <xsl:with-param name="msg" select="concat('unknown xref/@x:fmt extension: ',$fmt)"/>
     1871        </xsl:call-template>
    18661872      </xsl:if>
    18671873
     
    19681974   
    19691975    <xsl:otherwise>
    1970       <xsl:message>xref to unknown element: <xsl:value-of select="name($node)"/></xsl:message>
    1971       <span class="error">xref to unknown element: <xsl:value-of select="name($node)"/></span>
     1976      <xsl:call-template name="error">
     1977        <xsl:with-param name="msg" select="concat('xref to unknown element: ',name($node))"/>
     1978      </xsl:call-template>
    19721979    </xsl:otherwise>
    19731980  </xsl:choose>
     
    37103717    <xsl:when test="contains($list,',')">
    37113718      <xsl:variable name="rfcNo" select="substring-before($list,',')" />
     3719      <xsl:if test="count(//references//reference/seriesInfo[@name='RFC' and @value=$rfcNo])=0">
     3720        <xsl:call-template name="warning">
     3721          <xsl:with-param name="inline" select="'no'"/>
     3722          <xsl:with-param name="msg" select="concat('front matter mentions RFC',$rfcNo,' for which there is no reference element')"/>
     3723        </xsl:call-template>
     3724      </xsl:if>
    37123725      <a href="{concat($rfcUrlPrefix,$rfcNo,$rfcUrlPostfix)}"><xsl:value-of select="$rfcNo" /></a>,
    37133726      <xsl:call-template name="rfclist">
     
    37173730    <xsl:otherwise>
    37183731      <xsl:variable name="rfcNo" select="$list" />
     3732      <xsl:if test="count(//references//reference/seriesInfo[@name='RFC' and @value=$rfcNo])=0">
     3733        <xsl:call-template name="warning">
     3734          <xsl:with-param name="inline" select="'no'"/>
     3735          <xsl:with-param name="msg" select="concat('front matter mentions RFC',$rfcNo,' for which there is no reference element')"/>
     3736        </xsl:call-template>
     3737      </xsl:if>
    37193738      <a href="{concat($rfcUrlPrefix,$rfcNo,$rfcUrlPostfix)}"><xsl:value-of select="$rfcNo" /></a>
    37203739    </xsl:otherwise>
     
    43474366  <xsl:param name="msg"/>
    43484367  <xsl:param name="msg2"/>
    4349   <div class="error">WARNING: <xsl:value-of select="$msg"/></div>
     4368  <xsl:param name="inline"/>
     4369  <xsl:if test="$inline!='no'">
     4370    <div class="error">WARNING: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/></div>
     4371  </xsl:if>
    43504372  <xsl:message>WARNING: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/><xsl:call-template name="lineno"/></xsl:message>
    43514373</xsl:template>
     
    43544376  <xsl:param name="msg"/>
    43554377  <xsl:param name="msg2"/>
    4356   <div class="error">ERROR: <xsl:value-of select="$msg"/></div>
     4378  <xsl:param name="inline"/>
     4379  <xsl:if test="$inline='no'">
     4380    <div class="error">ERROR: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/></div>
     4381  </xsl:if>
    43574382  <xsl:message>ERROR: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/><xsl:call-template name="lineno"/></xsl:message>
    43584383</xsl:template>
     
    46234648    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    46244649    <!-- when RCS keyword substitution in place, add version info -->
    4625     <xsl:if test="contains('$Revision: 1.353 $',':')">
    4626       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.353 $', 'Revision: '),'$','')),', ')" />
     4650    <xsl:if test="contains('$Revision: 1.354 $',':')">
     4651      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.354 $', 'Revision: '),'$','')),', ')" />
    46274652    </xsl:if>
    4628     <xsl:if test="contains('$Date: 2007/12/11 23:20:44 $',':')">
    4629       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2007/12/11 23:20:44 $', 'Date: '),'$','')),', ')" />
     4653    <xsl:if test="contains('$Date: 2007/12/31 13:43:05 $',':')">
     4654      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2007/12/31 13:43:05 $', 'Date: '),'$','')),', ')" />
    46304655    </xsl:if>
    46314656    <xsl:value-of select="concat('XSLT vendor: ',system-property('xsl:vendor'),' ',system-property('xsl:vendor-url'))" />
Note: See TracChangeset for help on using the changeset viewer.