1<?xml version="1.0" encoding="utf-8"?> 2 3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 4 5<xsl:output method="html" encoding="cp1252" doctype-public="-//IETF//DTD HTML//EN" /> 6 7<!-- Take care: Apparently microsofts html help compiler doesn't parse the html properly, 8and needs at least some of the whitespace added with xsl:text below, and perhaps that there not be any in other places. --> 9 10<xsl:template match="toc"> 11<HTML> 12 <HEAD> 13 </HEAD> 14 <BODY> 15 <UL> 16 <xsl:apply-templates select=".//li[@class='index']/ul/li" /> 17 </UL> 18 </BODY> 19</HTML> 20</xsl:template> 21 22<xsl:template match="li"> 23<LI><xsl:text> </xsl:text><OBJECT type="text/sitemap"><xsl:text> 24</xsl:text> 25 <param name="Name"> 26 <xsl:attribute name="value"><xsl:for-each select="text()|emlink/text()"><xsl:value-of select="normalize-space(string(.))" /></xsl:for-each></xsl:attribute> 27 </param><xsl:text> 28</xsl:text> 29 <xsl:if test="emlink/@href"><param name="Local"> 30 <xsl:attribute name="value">sdk\<xsl:value-of select="translate(string(emlink/@href), '/', '\\')" /></xsl:attribute> 31 </param><xsl:text> 32</xsl:text></xsl:if> 33</OBJECT> 34<xsl:apply-templates /> 35</LI> 36</xsl:template> 37 38<xsl:template match="*"> 39 <xsl:apply-templates select="*" /> 40</xsl:template> 41 42<xsl:template match="text()" /> 43 44</xsl:stylesheet> 45