[Mono-docs-list] XHtml provider, mono handbook provider
Joshua Tauberer
tauberer@for.net
Tue, 27 May 2003 21:47:58 -0400
This is a multi-part message in MIME format.
--------------080402040107040608020909
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lee Mallabone wrote:
> 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 **
--------------080402040107040608020909
Content-Type: text/xml;
name="mshh_to_generic.xsl"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="mshh_to_generic.xsl"
<?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/param[@name='Name']/@value"/>
</xsl:attribute>
<xsl:attribute name="path">
<xsl:value-of select="object/param[@name='Local']/@value"/>
</xsl:attribute>
<xsl:apply-templates/>
</item>
</xsl:template>
</xsl:stylesheet>
--------------080402040107040608020909--