Changeset 213 for rfc2629xslt/rfc2629toXHTML.xslt
- Timestamp:
- 17/02/08 16:30:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/rfc2629toXHTML.xslt
r204 r213 3720 3720 </xsl:template> 3721 3721 3722 <!-- measuring lengths --> 3723 <xsl:template match="x:length-of"> 3724 <xsl:variable name="target" select="//*[@anchor=current()/@target]"/> 3725 <xsl:if test="count($target)!=1"> 3726 <xsl:call-template name="error"> 3727 <xsl:with-param name="msg" select="concat('@target ',@target,' defined ',count($target),' times.')"/> 3728 </xsl:call-template> 3729 </xsl:if> 3730 <xsl:variable name="content"> 3731 <xsl:apply-templates select="$target"/> 3732 </xsl:variable> 3733 <xsl:variable name="lineends" select="string-length($content) - string-length(translate($content,'
',''))"/> 3734 <xsl:variable name="indents"> 3735 <xsl:choose> 3736 <xsl:when test="@indented"> 3737 <xsl:value-of select="number(@indented) * $lineends"/> 3738 </xsl:when> 3739 <xsl:otherwise>0</xsl:otherwise> 3740 </xsl:choose> 3741 </xsl:variable> 3742 <xsl:value-of select="string-length($content) + $lineends - $indents"/> 3743 </xsl:template> 3744 3745 <!-- Nop --> 3746 <xsl:template match="x:span"> 3747 <xsl:apply-templates/> 3748 </xsl:template> 3749 3722 3750 <!-- box drawing --> 3723 3751 … … 4515 4543 <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text> 4516 4544 <!-- when RCS keyword substitution in place, add version info --> 4517 <xsl:if test="contains('$Revision: 1.35 7$',':')">4518 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.35 7$', 'Revision: '),'$','')),', ')"/>4545 <xsl:if test="contains('$Revision: 1.358 $',':')"> 4546 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.358 $', 'Revision: '),'$','')),', ')"/> 4519 4547 </xsl:if> 4520 <xsl:if test="contains('$Date: 2008 /02/06 14:33:26$',':')">4521 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2008 /02/06 14:33:26$', 'Date: '),'$','')),', ')"/>4548 <xsl:if test="contains('$Date: 2008-02-17 16:03:10 $',':')"> 4549 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2008-02-17 16:03:10 $', 'Date: '),'$','')),', ')"/> 4522 4550 </xsl:if> 4523 4551 <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.