* WGs marked with an * asterisk has had at least one new draft made available during the last 5 days

Changeset 825


Ignore:
Timestamp:
2010-06-02 00:50:07 (5 years ago)
Author:
julian.reschke@gmx.de
Message:

Add RFC 5861 cache directives to IANA instructions (see #208)

Location:
draft-ietf-httpbis/latest
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/extract-cache-directives.xslt

    r815 r825  
    33               xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' 
    44               version="1.0" 
     5               xmlns:my="#my" 
    56               exclude-result-prefixes="rdf x" 
    67> 
    78 
    89<xsl:output indent="yes" omit-xml-declaration="yes"/> 
     10 
     11<my:data> 
     12  <my:item> 
     13    <iref item='Cache Directives' subitem='stale-while-revalidate'> 
     14      <xref target="RFC5861" x:fmt="," x:sec="3"/> 
     15    </iref> 
     16    <iref item='Cache Directives' subitem='stale-if-error'> 
     17      <xref target="RFC5861" x:fmt="," x:sec="4"/> 
     18    </iref> 
     19  </my:item> 
     20</my:data> 
    921 
    1022<xsl:template match="/"> 
     
    1426      <ttcol>Reference</ttcol> 
    1527      <xsl:text>&#10;</xsl:text> 
    16       <xsl:apply-templates select="//iref[@item='Cache Directives']"> 
     28      <xsl:apply-templates select="//iref[@item='Cache Directives']|document('')//iref[@item='Cache Directives']"> 
    1729        <xsl:sort select="@subitem"/> 
    1830      </xsl:apply-templates> 
     
    8092    <c><xsl:value-of select="$dir"/></c> 
    8193    <c> 
    82       <xsl:for-each select="//*[iref[@item='Cache Directives' and @subitem=$dir]]"> 
    83         <xsl:if test="position()!=1"> 
    84           <xsl:text>, </xsl:text> 
    85         </xsl:if> 
    86         <xref target="{ancestor-or-self::*[@anchor][1]/@anchor}"/> 
    87       </xsl:for-each> 
     94      <xsl:choose> 
     95        <!-- from this XSLT? --> 
     96        <xsl:when test="ancestor::my:item"> 
     97          <xsl:for-each select="xref"> 
     98            <xsl:if test="position()!=1"> 
     99              <xsl:text>, </xsl:text> 
     100            </xsl:if> 
     101            <xref> 
     102              <xsl:copy-of select="@*"/> 
     103            </xref> 
     104          </xsl:for-each> 
     105        </xsl:when> 
     106        <xsl:otherwise> 
     107          <xsl:for-each select="//*[iref[@item='Cache Directives' and @subitem=$dir]]"> 
     108            <xsl:if test="position()!=1"> 
     109              <xsl:text>, </xsl:text> 
     110            </xsl:if> 
     111            <xref target="{ancestor-or-self::*[@anchor][1]/@anchor}"/> 
     112          </xsl:for-each> 
     113        </xsl:otherwise> 
     114      </xsl:choose> 
    88115    </c> 
    89  
     116     
    90117  </xsl:if> 
    91118</xsl:template> 
  • draft-ietf-httpbis/latest/p6-cache.html

    r824 r825  
    14871487                  </td> 
    14881488               </tr> 
     1489               <tr> 
     1490                  <td class="left">stale-if-error</td> 
     1491                  <td class="left"> <a href="#RFC5861" id="rfc.xref.RFC5861.1"><cite title="HTTP Cache-Control Extensions for Stale Content">[RFC5861]</cite></a>, <a href="http://tools.ietf.org/html/rfc5861#section-4">Section 4</a>  
     1492                  </td> 
     1493               </tr> 
     1494               <tr> 
     1495                  <td class="left">stale-while-revalidate</td> 
     1496                  <td class="left"> <a href="#RFC5861" id="rfc.xref.RFC5861.2"><cite title="HTTP Cache-Control Extensions for Stale Content">[RFC5861]</cite></a>, <a href="http://tools.ietf.org/html/rfc5861#section-3">Section 3</a>  
     1497                  </td> 
     1498               </tr> 
    14891499            </tbody> 
    14901500         </table> 
     
    16041614      <h2 id="rfc.references.2"><a href="#rfc.section.8.2" id="rfc.section.8.2">8.2</a> Informative References 
    16051615      </h2> 
    1606       <table>         
     1616      <table>           
    16071617         <tr> 
    16081618            <td class="reference"><b id="RFC1305">[RFC1305]</b></td> 
     
    16231633            <td class="reference"><b id="RFC5226">[RFC5226]</b></td> 
    16241634            <td class="top"><a href="mailto:narten@us.ibm.com" title="IBM">Narten, T.</a> and <a href="mailto:Harald@Alvestrand.no" title="Google">H. Alvestrand</a>, “<a href="http://tools.ietf.org/html/rfc5226">Guidelines for Writing an IANA Considerations Section in RFCs</a>”, BCP&nbsp;26, RFC&nbsp;5226, May&nbsp;2008. 
     1635            </td> 
     1636         </tr> 
     1637         <tr> 
     1638            <td class="reference"><b id="RFC5861">[RFC5861]</b></td> 
     1639            <td class="top"><a href="mailto:mnot@yahoo-inc.com" title="Yahoo! Inc.">Nottingham, M.</a>, “<a href="http://tools.ietf.org/html/rfc5861">HTTP Cache-Control Extensions for Stale Content</a>”, RFC&nbsp;5861, April&nbsp;2010. 
    16251640            </td> 
    16261641         </tr> 
     
    20722087                     </ul> 
    20732088                  </li> 
     2089                  <li class="indline1"><em>RFC5861</em>&nbsp;&nbsp;<a class="iref" href="#rfc.xref.RFC5861.1">5.1</a>, <a class="iref" href="#rfc.xref.RFC5861.2">5.1</a>, <a class="iref" href="#RFC5861"><b>8.2</b></a><ul class="ind"> 
     2090                        <li class="indline1"><em>Section 3</em>&nbsp;&nbsp;<a class="iref" href="#rfc.xref.RFC5861.2">5.1</a></li> 
     2091                        <li class="indline1"><em>Section 4</em>&nbsp;&nbsp;<a class="iref" href="#rfc.xref.RFC5861.1">5.1</a></li> 
     2092                     </ul> 
     2093                  </li> 
    20742094               </ul> 
    20752095            </li> 
  • draft-ietf-httpbis/latest/p6-cache.xml

    r824 r825  
    16121612<?BEGININC p6-cache.cache-directives ?> 
    16131613<!--AUTOGENERATED FROM extract-cache-directives-defs.xslt, do not edit manually--> 
    1614 <texttable align="left" suppress-title="true" 
     1614<texttable xmlns:my="#my" align="left" suppress-title="true" 
    16151615           anchor="iana.cache.directive.registration.table"> 
    16161616   <ttcol>Cache Directive</ttcol> 
     
    16651665      <xref target="cache-response-directive"/> 
    16661666   </c> 
     1667   <c>stale-if-error</c> 
     1668   <c> 
     1669      <xref xmlns:x="http://purl.org/net/xml2rfc/ext" target="RFC5861" x:fmt="," x:sec="4"/> 
     1670   </c> 
     1671   <c>stale-while-revalidate</c> 
     1672   <c> 
     1673      <xref xmlns:x="http://purl.org/net/xml2rfc/ext" target="RFC5861" x:fmt="," x:sec="3"/> 
     1674   </c> 
    16671675</texttable> 
    16681676<!--(END)--> 
     
    21022110  </reference> 
    21032111 
     2112  <reference anchor='RFC5861'> 
     2113    <front> 
     2114      <title abbrev="HTTP stale controls">HTTP Cache-Control Extensions for Stale Content</title> 
     2115      <author initials="M." surname="Nottingham" fullname="Mark Nottingham"> 
     2116        <organization>Yahoo! Inc.</organization> 
     2117        <address><email>mnot@yahoo-inc.com</email></address> 
     2118      </author> 
     2119      <date month="April" year="2010"/> 
     2120    </front> 
     2121    <seriesInfo name='RFC' value='5861' /> 
     2122  </reference> 
     2123 
    21042124</references> 
    21052125 
Note: See TracChangeset for help on using the changeset viewer.