Changeset 32 for rfc2629xslt/rfc2629toXHTML.xslt
- Timestamp:
- 11/12/07 23:32:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/rfc2629toXHTML.xslt
r6 r32 1657 1657 </xsl:choose> 1658 1658 </xsl:variable> 1659 1660 <xsl:variable name="secterm"> 1661 <xsl:choose> 1662 <!-- starts with letter? --> 1663 <xsl:when test="translate(substring($sec,1,1),$ucase,'')=''">Appendix</xsl:when> 1664 <xsl:otherwise>Section</xsl:otherwise> 1665 </xsl:choose> 1666 </xsl:variable> 1659 1667 1660 1668 <xsl:variable name="fmt"> … … 1712 1720 <xsl:attribute name="id"><xsl:value-of select="$anchor"/></xsl:attribute> 1713 1721 </xsl:if> 1714 <xsl:text>Section </xsl:text> 1722 <xsl:value-of select="$secterm"/> 1723 <xsl:text> </xsl:text> 1715 1724 <xsl:value-of select="$sec"/> 1716 1725 </a> 1717 1726 </xsl:when> 1718 <xsl:otherwise> Section<xsl:value-of select="$sec"/></xsl:otherwise>1727 <xsl:otherwise><xsl:value-of select="$secterm"/><xsl:text> </xsl:text><xsl:value-of select="$sec"/></xsl:otherwise> 1719 1728 </xsl:choose> 1720 1729 <xsl:if test="$fmt='of'"> … … 1772 1781 <xsl:choose> 1773 1782 <xsl:when test="$href!=''"> 1774 <a xmlns="http://www.w3.org/1999/xhtml" href="{$href}"> Section<xsl:value-of select="$sec"/></a>1783 <a xmlns="http://www.w3.org/1999/xhtml" href="{$href}"><xsl:value-of select="$secterm"/><xsl:text> </xsl:text><xsl:value-of select="$sec"/></a> 1775 1784 </xsl:when> 1776 <xsl:otherwise> Section<xsl:value-of select="$sec"/></xsl:otherwise>1785 <xsl:otherwise><xsl:value-of select="$secterm"/><xsl:text> </xsl:text><xsl:value-of select="$sec"/></xsl:otherwise> 1777 1786 </xsl:choose> 1778 1787 <xsl:text>)</xsl:text> … … 1786 1795 <xsl:attribute name="title"><xsl:value-of select="$title"/></xsl:attribute> 1787 1796 </xsl:if> 1788 <xsl:text>Section </xsl:text> 1797 <xsl:value-of select="$secterm"/> 1798 <xsl:text> </xsl:text> 1789 1799 <xsl:value-of select="$sec"/> 1790 1800 </a> 1791 1801 </xsl:when> 1792 <xsl:otherwise> Section<xsl:value-of select="$sec"/></xsl:otherwise>1802 <xsl:otherwise><xsl:value-of select="$secterm"/><xsl:text> </xsl:text><xsl:value-of select="$sec"/></xsl:otherwise> 1793 1803 </xsl:choose> 1794 1804 </xsl:when> … … 4454 4464 <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text> 4455 4465 <!-- when RCS keyword substitution in place, add version info --> 4456 <xsl:if test="contains('$Revision: 1.35 2$',':')">4457 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.35 2$', 'Revision: '),'$','')),', ')"/>4466 <xsl:if test="contains('$Revision: 1.353 $',':')"> 4467 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.353 $', 'Revision: '),'$','')),', ')"/> 4458 4468 </xsl:if> 4459 <xsl:if test="contains('$Date: 2007/12/ 09 19:23:50$',':')">4460 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2007/12/ 09 19:23:50$', 'Date: '),'$','')),', ')"/>4469 <xsl:if test="contains('$Date: 2007/12/11 23:20:44 $',':')"> 4470 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2007/12/11 23:20:44 $', 'Date: '),'$','')),', ')"/> 4461 4471 </xsl:if> 4462 4472 <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.