Ignore:
Timestamp:
Dec 31, 2007, 5:49:54 AM (12 years ago)
Author:
julian.reschke@…
Message:

Update to latest version of rfc2629.xslt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629toXHTML.xslt

    r32 r118  
    468468      </xsl:when>
    469469      <xsl:otherwise>
    470         <xsl:message><xsl:value-of select="$node-set-warning"/></xsl:message>
    471         <p xmlns="http://www.w3.org/1999/xhtml" class="error"><xsl:value-of select="$node-set-warning"/></p>
     470        <xsl:call-template name="error">
     471          <xsl:with-param name="msg" select="$node-set-warning"/>
     472        </xsl:call-template>
    472473      </xsl:otherwise>
    473474    </xsl:choose>
     
    537538        </xsl:when>   
    538539        <xsl:otherwise>
    539           <xsl:message><xsl:value-of select="$node-set-warning"/></xsl:message>
    540           <p class="error"><xsl:value-of select="$node-set-warning"/></p>
     540          <xsl:call-template name="error">
     541            <xsl:with-param name="msg" select="$node-set-warning"/>
     542          </xsl:call-template>
    541543        </xsl:otherwise>
    542544      </xsl:choose>
     
    580582      </xsl:when>
    581583      <xsl:otherwise>
    582         <xsl:message><xsl:value-of select="$node-set-warning"/></xsl:message>
    583         <p xmlns="http://www.w3.org/1999/xhtml" class="error"><xsl:value-of select="$node-set-warning"/></p>
     584        <xsl:call-template name="error">
     585          <xsl:with-param name="msg" select="$node-set-warning"/>
     586        </xsl:call-template>
    584587      </xsl:otherwise>
    585588    </xsl:choose>
     
    15171520    <!-- Other x:fmt values than "none": unsupported -->
    15181521    <xsl:when test="@x:fmt and @x:fmt!='none'">
    1519       <xsl:message>unknown xref/@x:fmt extension: <xsl:value-of select="@x:fmt"/></xsl:message>
    1520       <span xmlns="http://www.w3.org/1999/xhtml" class="error">unknown xref/@x:fmt extension: <xsl:value-of select="@x:fmt"/></span>
     1522      <xsl:call-template name="error">
     1523        <xsl:with-param name="msg" select="concat('unknown xref/@x:fmt extension: ',@x:fmt)"/>
     1524      </xsl:call-template>
    15211525    </xsl:when>
    15221526
     
    15641568  <xsl:variable name="node" select="$src//*[@anchor=$target]"/>
    15651569  <xsl:if test="count($node)=0 and not(ancestor::ed:del)">
    1566     <xsl:message>Undefined target: <xsl:value-of select="@target"/></xsl:message>
    1567     <span xmlns="http://www.w3.org/1999/xhtml" class="error">Undefined target: <xsl:value-of select="@target"/></span>
     1570    <xsl:call-template name="error">
     1571      <xsl:with-param name="msg" select="concat('Undefined target: ',@target)"/>
     1572    </xsl:call-template>
    15681573  </xsl:if>
    15691574
     
    17031708     
    17041709      <xsl:if test="$fmt and not($fmt='()' or $fmt=',' or $fmt='of' or $fmt='sec' or $fmt='anchor' or $fmt='number')">
    1705         <xsl:message>unknown xref/@x:fmt extension: <xsl:value-of select="$fmt"/></xsl:message>
    1706         <span xmlns="http://www.w3.org/1999/xhtml" class="error">unknown xref/@x:fmt extension: <xsl:value-of select="$fmt"/></span>
     1710        <xsl:call-template name="error">
     1711          <xsl:with-param name="msg" select="concat('unknown xref/@x:fmt extension: ',$fmt)"/>
     1712        </xsl:call-template>
    17071713      </xsl:if>
    17081714
     
    18091815   
    18101816    <xsl:otherwise>
    1811       <xsl:message>xref to unknown element: <xsl:value-of select="name($node)"/></xsl:message>
    1812       <span xmlns="http://www.w3.org/1999/xhtml" class="error">xref to unknown element: <xsl:value-of select="name($node)"/></span>
     1817      <xsl:call-template name="error">
     1818        <xsl:with-param name="msg" select="concat('xref to unknown element: ',name($node))"/>
     1819      </xsl:call-template>
    18131820    </xsl:otherwise>
    18141821  </xsl:choose>
     
    35513558    <xsl:when test="contains($list,',')">
    35523559      <xsl:variable name="rfcNo" select="substring-before($list,',')"/>
     3560      <xsl:if test="count(//references//reference/seriesInfo[@name='RFC' and @value=$rfcNo])=0">
     3561        <xsl:call-template name="warning">
     3562          <xsl:with-param name="inline" select="'no'"/>
     3563          <xsl:with-param name="msg" select="concat('front matter mentions RFC',$rfcNo,' for which there is no reference element')"/>
     3564        </xsl:call-template>
     3565      </xsl:if>
    35533566      <a xmlns="http://www.w3.org/1999/xhtml" href="{concat($rfcUrlPrefix,$rfcNo,$rfcUrlPostfix)}"><xsl:value-of select="$rfcNo"/></a>,
    35543567      <xsl:call-template name="rfclist">
     
    35583571    <xsl:otherwise>
    35593572      <xsl:variable name="rfcNo" select="$list"/>
     3573      <xsl:if test="count(//references//reference/seriesInfo[@name='RFC' and @value=$rfcNo])=0">
     3574        <xsl:call-template name="warning">
     3575          <xsl:with-param name="inline" select="'no'"/>
     3576          <xsl:with-param name="msg" select="concat('front matter mentions RFC',$rfcNo,' for which there is no reference element')"/>
     3577        </xsl:call-template>
     3578      </xsl:if>
    35603579      <a xmlns="http://www.w3.org/1999/xhtml" href="{concat($rfcUrlPrefix,$rfcNo,$rfcUrlPostfix)}"><xsl:value-of select="$rfcNo"/></a>
    35613580    </xsl:otherwise>
     
    41884207  <xsl:param name="msg"/>
    41894208  <xsl:param name="msg2"/>
    4190   <div xmlns="http://www.w3.org/1999/xhtml" class="error">WARNING: <xsl:value-of select="$msg"/></div>
     4209  <xsl:param name="inline"/>
     4210  <xsl:if test="$inline!='no'">
     4211    <div xmlns="http://www.w3.org/1999/xhtml" class="error">WARNING: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/></div>
     4212  </xsl:if>
    41914213  <xsl:message>WARNING: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/><xsl:call-template name="lineno"/></xsl:message>
    41924214</xsl:template>
     
    41954217  <xsl:param name="msg"/>
    41964218  <xsl:param name="msg2"/>
    4197   <div xmlns="http://www.w3.org/1999/xhtml" class="error">ERROR: <xsl:value-of select="$msg"/></div>
     4219  <xsl:param name="inline"/>
     4220  <xsl:if test="$inline='no'">
     4221    <div xmlns="http://www.w3.org/1999/xhtml" class="error">ERROR: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/></div>
     4222  </xsl:if>
    41984223  <xsl:message>ERROR: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/><xsl:call-template name="lineno"/></xsl:message>
    41994224</xsl:template>
     
    44644489    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    44654490    <!-- when RCS keyword substitution in place, add version info -->
    4466     <xsl:if test="contains('$Revision: 1.353 $',':')">
    4467       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.353 $', 'Revision: '),'$','')),', ')"/>
     4491    <xsl:if test="contains('$Revision: 1.354 $',':')">
     4492      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.354 $', 'Revision: '),'$','')),', ')"/>
    44684493    </xsl:if>
    4469     <xsl:if test="contains('$Date: 2007/12/11 23:20:44 $',':')">
    4470       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2007/12/11 23:20:44 $', 'Date: '),'$','')),', ')"/>
     4494    <xsl:if test="contains('$Date: 2007/12/31 13:43:05 $',':')">
     4495      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2007/12/31 13:43:05 $', 'Date: '),'$','')),', ')"/>
    44714496    </xsl:if>
    44724497    <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.