Changeset 428 for draft-ietf-httpbis/latest/abnf2xml2rfc.xslt
- Timestamp:
- 22/11/08 19:02:04 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
draft-ietf-httpbis/latest/abnf2xml2rfc.xslt
r427 r428 24 24 <xsl:variable name="lineno" select="position()"/> 25 25 <xsl:variable name="sc1" select="substring(.,1,1)"/> 26 <xsl:variable name="sc0" select=" substring($lines[$lineno - 1],1,1)"/>26 <xsl:variable name="sc0" select="x:laststartchar($lines, $lineno - 1)"/> 27 27 <xsl:if test="$sc1!=' ' and $sc0!=' ' and $sc1!=$sc0"> 28 28 <xsl:text> </xsl:text> … … 61 61 </xsl:if> 62 62 </xsl:template> 63 64 <xsl:function name="x:laststartchar"> 65 <xsl:param name="lines"/> 66 <xsl:param name="position"/> 67 68 <xsl:choose> 69 <xsl:when test="' '!=substring($lines[$position],1,1)"> 70 <xsl:value-of select="substring($lines[$position],1,1)"/> 71 </xsl:when> 72 <xsl:otherwise> 73 <xsl:value-of select="x:laststartchar($lines, $position - 1)"/> 74 </xsl:otherwise> 75 </xsl:choose> 76 </xsl:function> 63 77 64 78
Note: See TracChangeset
for help on using the changeset viewer.