Changeset 454 for draft-ietf-httpbis/latest/abnf2xml2rfc.xslt
- Timestamp:
- 28/02/09 16:19:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
draft-ietf-httpbis/latest/abnf2xml2rfc.xslt
r428 r454 21 21 <xsl:text> </xsl:text> 22 22 <artwork type="abnf" name="{$abnf}"> 23 <xsl:for-each select="$lines"> 23 <xsl:for-each select="$lines[substring(.,1,2)!='; ']"> 24 25 <!-- Group by start character --> 24 26 <xsl:variable name="lineno" select="position()"/> 25 27 <xsl:variable name="sc1" select="substring(.,1,1)"/> … … 28 30 <xsl:text> </xsl:text> 29 31 </xsl:if> 32 33 <!-- Add cross-refs for terms --> 30 34 <xsl:analyze-string select="." regex='^([A-Za-z0-9\-]+) = ' flags="sm"> 31 35 <xsl:matching-substring> … … 45 49 </xsl:non-matching-substring> 46 50 </xsl:analyze-string> 51 47 52 <xsl:text> </xsl:text> 48 53 </xsl:for-each> … … 51 56 </figure> 52 57 <xsl:text> </xsl:text> 58 59 <figure> 60 <preamble>ABNF diagnostics:</preamble> 61 <artwork type="inline"> 62 <xsl:for-each select="$lines[substring(.,1,2)='; ']"> 63 <xsl:value-of select="."/> 64 <xsl:text> </xsl:text> 65 </xsl:for-each> 66 </artwork></figure> 53 67 </section> 54 68 55 69 <!-- check whether it's up-to-date... --> 70 <xsl:variable name="src"> 71 <xsl:for-each select="//section[@anchor='collected.abnf']//artwork"> 72 <xsl:value-of select="."/> 73 </xsl:for-each> 74 </xsl:variable> 56 75 57 <xsl:if test="not(//section[@anchor='collected.abnf']) or normalize-space( //section[@anchor='collected.abnf']//artwork) != normalize-space($collected)">76 <xsl:if test="not(//section[@anchor='collected.abnf']) or normalize-space($src) != normalize-space($collected)"> 58 77 <xsl:message>WARNING: appendix contained inside source document needs to be updated</xsl:message> 59 78 <!--<xsl:message>A: <xsl:value-of select="//section[@anchor='collected.abnf']//artwork"/></xsl:message>
Note: See TracChangeset
for help on using the changeset viewer.