blob: 30e54b8dc9bdf33cecfba1e6cd65c1e4a0e12c1e [file] [log] [blame]
lmandel1c95eaf2005-12-07 06:38:54 +00001<?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">
lmandel8b44e122006-05-01 19:30:10 +00006 <xsl:param name="listed-ext-points"/>
lmandel1c95eaf2005-12-07 06:38:54 +00007
8 <xsl:template match="components">
lmandele5e182d2005-12-08 01:24:32 +00009 <xsl:text disable-output-escaping="yes">
lmandel1c95eaf2005-12-07 06:38:54 +000010&lt;?NLS TYPE="org.eclipse.help.toc"?&gt;
lmandele5e182d2005-12-08 01:24:32 +000011 </xsl:text>
12 <toc label="Extension Points Reference">
13 <xsl:for-each select="document(component/@file)/files/file">
14 <xsl:sort select="text()"/>
lmandel8b44e122006-05-01 19:30:10 +000015 <xsl:if test="contains($listed-ext-points, translate(substring(text(), 0, string-length(text()) - 4),'_','.'))">
lmandele5e182d2005-12-08 01:24:32 +000016 <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>
lmandel1c95eaf2005-12-07 06:38:54 +000021 </xsl:template>
22</xsl:stylesheet>