Changeset 1773


Ignore:
Timestamp:
Jul 14, 2012, 8:07:57 AM (7 years ago)
Author:
julian.reschke@…
Message:

Remove ABNF diagnostics for known to be non-referenced productions (header field names)

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

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/abnf2xml2rfc.xslt

    r1711 r1773  
    1717  <xsl:variable name="lines" select="$all-lines[normalize-space(.)!='']"/>
    1818 
    19   <section title="Collected ABNF" anchor="collected.abnf">
     19  <xsl:variable name="generated"><section title="Collected ABNF" anchor="collected.abnf">
    2020    <xsl:text>&#10;</xsl:text>
    2121    <figure>
     
    5858    <xsl:text>&#10;</xsl:text>
    5959   
    60     <figure>
    61       <preamble>ABNF diagnostics:</preamble>
    62       <artwork type="inline">
    63         <xsl:text>&#10;</xsl:text>
    64         <xsl:for-each select="$lines[substring(.,1,2)='; ']">
    65           <xsl:value-of select="."/>
     60    <xsl:variable name="diags">
     61      <xsl:for-each select="$lines[substring(.,1,2)='; ']">
     62        <xsl:variable name="prod" select="substring-before(substring-after(.,'; '),' defined but not used')"/>
     63        <xsl:choose>
     64          <xsl:when test="$prod!='' and $src//iref[@item='Header Fields' and @subitem=$prod]">
     65            <!-- header field; expected not to be reference -->
     66          </xsl:when>
     67          <xsl:otherwise>
     68            <xsl:value-of select="."/>
     69            <xsl:text>&#10;</xsl:text>
     70          </xsl:otherwise>
     71        </xsl:choose>
     72      </xsl:for-each>
     73    </xsl:variable>
     74   
     75    <xsl:if test="$diags!=''">
     76      <figure>
     77        <preamble>ABNF diagnostics:</preamble>
     78        <artwork type="inline">
    6679          <xsl:text>&#10;</xsl:text>
    67         </xsl:for-each>
    68     </artwork></figure>
    69   </section>
     80          <xsl:value-of select="$diags"/>
     81      </artwork></figure>
     82    </xsl:if>
     83  </section></xsl:variable>
     84
     85  <xsl:copy-of select="$generated"/>
    7086
    7187  <!-- check whether it's up-to-date... -->
     
    7692  </xsl:variable>
    7793 
    78   <xsl:if test="not(//section[@anchor='collected.abnf']) or normalize-space($src) != normalize-space($collected)">
     94  <xsl:if test="not(//section[@anchor='collected.abnf']) or normalize-space($src) != normalize-space($generated)">
    7995    <xsl:message>WARNING: appendix contained inside source document needs to be updated</xsl:message>
    8096    <xsl:call-template name="showdiff">
    8197      <xsl:with-param name="actual" select="normalize-space($src)"/>
    82       <xsl:with-param name="expected" select="normalize-space($collected)"/>
     98      <xsl:with-param name="expected" select="normalize-space($generated)"/>
    8399    </xsl:call-template>
    84100  </xsl:if>
  • draft-ietf-httpbis/latest/p1-messaging.html

    r1772 r1773  
    31513151<a href="#rule.token.separators" class="smpl">word</a> = token / quoted-string
    31523152</pre> <div id="rfc.figure.u.68"></div>
    3153       <p>ABNF diagnostics:</p><pre class="inline">; Connection defined but not used
    3154 ; Content-Length defined but not used
    3155 ; HTTP-message defined but not used
    3156 ; Host defined but not used
    3157 ; TE defined but not used
    3158 ; Trailer defined but not used
    3159 ; Transfer-Encoding defined but not used
     3153      <p>ABNF diagnostics:</p><pre class="inline">; HTTP-message defined but not used
    31603154; URI-reference defined but not used
    3161 ; Upgrade defined but not used
    3162 ; Via defined but not used
    31633155; chunked-body defined but not used
    31643156; http-URI defined but not used
  • draft-ietf-httpbis/latest/p1-messaging.xml

    r1772 r1773  
    52215221</figure>
    52225222<figure><preamble>ABNF diagnostics:</preamble><artwork type="inline">
    5223 ; Connection defined but not used
    5224 ; Content-Length defined but not used
    52255223; HTTP-message defined but not used
    5226 ; Host defined but not used
    5227 ; TE defined but not used
    5228 ; Trailer defined but not used
    5229 ; Transfer-Encoding defined but not used
    52305224; URI-reference defined but not used
    5231 ; Upgrade defined but not used
    5232 ; Via defined but not used
    52335225; chunked-body defined but not used
    52345226; http-URI defined but not used
  • draft-ietf-httpbis/latest/p2-semantics.html

    r1772 r1773  
    41404140<a href="#preferred.date.format" class="smpl">year</a> = 4DIGIT
    41414141</pre> <div id="rfc.figure.u.65"></div>
    4142       <p>ABNF diagnostics:</p><pre class="inline">; Accept defined but not used
    4143 ; Accept-Charset defined but not used
    4144 ; Accept-Encoding defined but not used
    4145 ; Accept-Language defined but not used
    4146 ; Allow defined but not used
    4147 ; Content-Encoding defined but not used
    4148 ; Content-Language defined but not used
    4149 ; Content-Location defined but not used
    4150 ; Content-Type defined but not used
    4151 ; Date defined but not used
    4152 ; Expect defined but not used
    4153 ; From defined but not used
    4154 ; Location defined but not used
    4155 ; MIME-Version defined but not used
    4156 ; Max-Forwards defined but not used
    4157 ; Referer defined but not used
    4158 ; Retry-After defined but not used
    4159 ; Server defined but not used
    4160 ; User-Agent defined but not used
    4161 ; obs-text defined but not used
     4142      <p>ABNF diagnostics:</p><pre class="inline">; obs-text defined but not used
    41624143</pre><h1 id="rfc.section.E"><a href="#rfc.section.E">E.</a>&nbsp;<a id="change.log" href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1>
    41634144      <h2 id="rfc.section.E.1"><a href="#rfc.section.E.1">E.1</a>&nbsp;Since RFC 2616
  • draft-ietf-httpbis/latest/p2-semantics.xml

    r1772 r1773  
    57755775</figure>
    57765776<figure><preamble>ABNF diagnostics:</preamble><artwork type="inline">
    5777 ; Accept defined but not used
    5778 ; Accept-Charset defined but not used
    5779 ; Accept-Encoding defined but not used
    5780 ; Accept-Language defined but not used
    5781 ; Allow defined but not used
    5782 ; Content-Encoding defined but not used
    5783 ; Content-Language defined but not used
    5784 ; Content-Location defined but not used
    5785 ; Content-Type defined but not used
    5786 ; Date defined but not used
    5787 ; Expect defined but not used
    5788 ; From defined but not used
    5789 ; Location defined but not used
    5790 ; MIME-Version defined but not used
    5791 ; Max-Forwards defined but not used
    5792 ; Referer defined but not used
    5793 ; Retry-After defined but not used
    5794 ; Server defined but not used
    5795 ; User-Agent defined but not used
    57965777; obs-text defined but not used
    57975778</artwork></figure></section>
  • draft-ietf-httpbis/latest/p3-payload.html

    r1756 r1773  
    374374  }
    375375  @bottom-center {
    376        content: "Expires January 11, 2013";
     376       content: "Expires January 15, 2013";
    377377  }
    378378  @bottom-right {
     
    404404      <meta name="dct.creator" content="Reschke, J. F.">
    405405      <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p3-payload-latest">
    406       <meta name="dct.issued" scheme="ISO8601" content="2012-07-10">
     406      <meta name="dct.issued" scheme="ISO8601" content="2012-07-14">
    407407      <meta name="dct.abstract" content="This part is now obsolete. Please see HTTPbis, Part 2.">
    408408      <meta name="description" content="This part is now obsolete. Please see HTTPbis, Part 2.">
     
    424424            </tr>
    425425            <tr>
    426                <td class="left">Expires: January 11, 2013</td>
     426               <td class="left">Expires: January 15, 2013</td>
    427427               <td class="right">W3C</td>
    428428            </tr>
     
    437437            <tr>
    438438               <td class="left"></td>
    439                <td class="right">July 10, 2012</td>
     439               <td class="right">July 14, 2012</td>
    440440            </tr>
    441441         </tbody>
     
    453453         in progress”.
    454454      </p>
    455       <p>This Internet-Draft will expire on January 11, 2013.</p>
     455      <p>This Internet-Draft will expire on January 15, 2013.</p>
    456456      <h1><a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a></h1>
    457457      <p>Copyright © 2012 IETF Trust and the persons identified as the document authors. All rights reserved.</p>
  • draft-ietf-httpbis/latest/p4-conditional.html

    r1772 r1773  
    13181318
    13191319<a href="#header.etag" class="smpl">weak</a> = %x57.2F ; W/
    1320 </pre> <div id="rfc.figure.u.18"></div>
    1321       <p>ABNF diagnostics:</p><pre class="inline">; ETag defined but not used
    1322 ; If-Match defined but not used
    1323 ; If-Modified-Since defined but not used
    1324 ; If-None-Match defined but not used
    1325 ; If-Unmodified-Since defined but not used
    1326 ; Last-Modified defined but not used
    1327 </pre><h1 id="rfc.section.C"><a href="#rfc.section.C">C.</a>&nbsp;<a id="change.log" href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1>
     1320</pre> <h1 id="rfc.section.C"><a href="#rfc.section.C">C.</a>&nbsp;<a id="change.log" href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1>
    13281321      <p id="rfc.section.C.p.1">Changes up to the first Working Group Last Call draft are summarized in &lt;<a href="http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-19#appendix-C">http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-19#appendix-C</a>&gt;.
    13291322      </p>
  • draft-ietf-httpbis/latest/p4-conditional.xml

    r1772 r1773  
    14471447</artwork>
    14481448</figure>
    1449 <figure><preamble>ABNF diagnostics:</preamble><artwork type="inline">
    1450 ; ETag defined but not used
    1451 ; If-Match defined but not used
    1452 ; If-Modified-Since defined but not used
    1453 ; If-None-Match defined but not used
    1454 ; If-Unmodified-Since defined but not used
    1455 ; Last-Modified defined but not used
    1456 </artwork></figure></section>
     1449</section>
    14571450<?ENDINC p4-conditional.abnf-appendix ?>
    14581451
  • draft-ietf-httpbis/latest/p5-range.html

    r1770 r1773  
    13421342
    13431343<a href="#core.rules" class="smpl">token</a> = &lt;token, defined in [Part1], Section 3.2.4&gt;
    1344 </pre> <div id="rfc.figure.u.27"></div>
    1345       <p>ABNF diagnostics:</p><pre class="inline">; Accept-Ranges defined but not used
    1346 ; Content-Range defined but not used
    1347 ; If-Range defined but not used
    1348 ; Range defined but not used
    1349 </pre><h1 id="rfc.section.D"><a href="#rfc.section.D">D.</a>&nbsp;<a id="change.log" href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1>
     1344</pre> <h1 id="rfc.section.D"><a href="#rfc.section.D">D.</a>&nbsp;<a id="change.log" href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1>
    13501345      <h2 id="rfc.section.D.1"><a href="#rfc.section.D.1">D.1</a>&nbsp;Since RFC 2616
    13511346      </h2>
  • draft-ietf-httpbis/latest/p5-range.xml

    r1772 r1773  
    14731473</artwork>
    14741474</figure>
    1475 <figure><preamble>ABNF diagnostics:</preamble><artwork type="inline">
    1476 ; Accept-Ranges defined but not used
    1477 ; Content-Range defined but not used
    1478 ; If-Range defined but not used
    1479 ; Range defined but not used
    1480 </artwork></figure></section>
     1475</section>
    14811476<?ENDINC p5-range.abnf-appendix ?>
    14821477
  • draft-ietf-httpbis/latest/p6-cache.html

    r1772 r1773  
    20362036<a href="#header.warning" class="smpl">warning-value</a> = warn-code SP warn-agent SP warn-text [ SP warn-date
    20372037 ]
    2038 </pre> <div id="rfc.figure.u.18"></div>
    2039       <p>ABNF diagnostics:</p><pre class="inline">; Age defined but not used
    2040 ; Cache-Control defined but not used
    2041 ; Expires defined but not used
    2042 ; Pragma defined but not used
    2043 ; Vary defined but not used
    2044 ; Warning defined but not used
    2045 </pre><h1 id="rfc.section.C"><a href="#rfc.section.C">C.</a>&nbsp;<a id="change.log" href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1>
     2038</pre> <h1 id="rfc.section.C"><a href="#rfc.section.C">C.</a>&nbsp;<a id="change.log" href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1>
    20462039      <p id="rfc.section.C.p.1">Changes up to the first Working Group Last Call draft are summarized in &lt;<a href="http://trac.tools.ietf.org/html/draft-ietf-httpbis-p6-cache-19#appendix-C">http://trac.tools.ietf.org/html/draft-ietf-httpbis-p6-cache-19#appendix-C</a>&gt;.
    20472040      </p>
  • draft-ietf-httpbis/latest/p6-cache.xml

    r1772 r1773  
    26472647</artwork>
    26482648</figure>
    2649 <figure><preamble>ABNF diagnostics:</preamble><artwork type="inline">
    2650 ; Age defined but not used
    2651 ; Cache-Control defined but not used
    2652 ; Expires defined but not used
    2653 ; Pragma defined but not used
    2654 ; Vary defined but not used
    2655 ; Warning defined but not used
    2656 </artwork></figure></section>
     2649</section>
    26572650<?ENDINC p6-cache.abnf-appendix ?>
    26582651
  • draft-ietf-httpbis/latest/p7-auth.html

    r1770 r1773  
    11371137
    11381138<a href="#core.rules" class="smpl">token</a> = &lt;token, defined in [Part1], Section 3.2.4&gt;
    1139 </pre> <div id="rfc.figure.u.11"></div>
    1140       <p>ABNF diagnostics:</p><pre class="inline">; Authorization defined but not used
    1141 ; Proxy-Authenticate defined but not used
    1142 ; Proxy-Authorization defined but not used
    1143 ; WWW-Authenticate defined but not used
    1144 </pre><h1 id="rfc.section.C"><a href="#rfc.section.C">C.</a>&nbsp;<a id="change.log" href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1>
     1139</pre> <h1 id="rfc.section.C"><a href="#rfc.section.C">C.</a>&nbsp;<a id="change.log" href="#change.log">Change Log (to be removed by RFC Editor before publication)</a></h1>
    11451140      <p id="rfc.section.C.p.1">Changes up to the first Working Group Last Call draft are summarized in &lt;<a href="http://trac.tools.ietf.org/html/draft-ietf-httpbis-p7-auth-19#appendix-C">http://trac.tools.ietf.org/html/draft-ietf-httpbis-p7-auth-19#appendix-C</a>&gt;.
    11461141      </p>
  • draft-ietf-httpbis/latest/p7-auth.xml

    r1770 r1773  
    11801180</artwork>
    11811181</figure>
    1182 <figure><preamble>ABNF diagnostics:</preamble><artwork type="inline">
    1183 ; Authorization defined but not used
    1184 ; Proxy-Authenticate defined but not used
    1185 ; Proxy-Authorization defined but not used
    1186 ; WWW-Authenticate defined but not used
    1187 </artwork></figure></section>
     1182</section>
    11881183<?ENDINC p7-auth.abnf-appendix ?>
    11891184
Note: See TracChangeset for help on using the changeset viewer.