Please find attached code that adds 2 providers
Cool. A few comments (though I haven't actually played with it)...
one is a generic XHtml provider that works by looking at a table of contents in an XML file, (which I gather from Johannes is standard Microsoft "HTML Help" TOC format).
Since the TOC format is MS HH specific and not really related to XHTML, maybe the provider should be called mshh instead. Alternatively, use XSL (he he, I'm obsessed) to transform the TOC file into something very generic first, and then supply that to the assembler so the XHTML provider isn't tied to an MS format. (See attached. Run that using xsltproc with the --html option over the hhc file.)
4) I'm not sure if I've coded the "xhtml:" URL prefixes correctly. I don't know if everything will
still Just Work if people create lots of providers based on the xhtml
provider.
I'm guessing it won't work... but I don't know how the ECMA provider handles that.
-- - Joshua Tauberer
http://taubz.for.net
** Nothing Unreal Exists **
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="li"> <item> <xsl:attribute name="name"> <xsl:value-of select="object/[EMAIL PROTECTED]'Name']/@value"/> </xsl:attribute> <xsl:attribute name="path"> <xsl:value-of select="object/[EMAIL PROTECTED]'Local']/@value"/> </xsl:attribute>
<xsl:apply-templates/> </item> </xsl:template> </xsl:stylesheet>
