lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 3 | version="1.0" |
| 4 | xmlns:xalan="http://xml.apache.org/xslt" |
| 5 | exclude-result-prefixes="xalan"> |
lmandel | 8b44e12 | 2006-05-01 19:30:10 +0000 | [diff] [blame] | 6 | <xsl:param name="listed-ext-points"/> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 7 | |
| 8 | <xsl:template match="components"> |
lmandel | e5e182d | 2005-12-08 01:24:32 +0000 | [diff] [blame] | 9 | <xsl:text disable-output-escaping="yes"> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 10 | <?NLS TYPE="org.eclipse.help.toc"?> |
lmandel | e5e182d | 2005-12-08 01:24:32 +0000 | [diff] [blame] | 11 | </xsl:text> |
| 12 | <toc label="Extension Points Reference"> |
| 13 | <xsl:for-each select="document(component/@file)/files/file"> |
| 14 | <xsl:sort select="text()"/> |
lmandel | 8b44e12 | 2006-05-01 19:30:10 +0000 | [diff] [blame] | 15 | <xsl:if test="contains($listed-ext-points, translate(substring(text(), 0, string-length(text()) - 4),'_','.'))"> |
lmandel | e5e182d | 2005-12-08 01:24:32 +0000 | [diff] [blame] | 16 | <topic label="{translate(substring(text(), 0, string-length(text()) - 4),'_','.')}" href="reference/extension-points/{../@component}/{text()}"> |
| 17 | </topic> |
| 18 | </xsl:if> |
| 19 | </xsl:for-each> |
| 20 | </toc> |
lmandel | 1c95eaf | 2005-12-07 06:38:54 +0000 | [diff] [blame] | 21 | </xsl:template> |
| 22 | </xsl:stylesheet> |