Re: Patch for doctype and faq
Jeff Martin <[email protected]> Fri, 08 Apr 2005 16:19:30 +0100
| Newsgroups | gmane.editors.conglomerate.devel |
|---|---|
| Message-ID | <[email protected]> |
Third time lucky. > It's better but needs to add some id to work for integration. Sorted > The patch you sent just transform the faq quandaset to sections, but > does not correct the wrong dtd and does not integrate the faq in the > manual. Hadn't realised that it had been taken out of the manual in the first place. You'll still need that part of your patch. -- Jeff Martin Memetic Engineer http://www.custommonkey.org/ _______________________________________________ Conglomerate-devel mailing list [email protected] http://lists.copyleft.no/mailman/listinfo/conglomerate-devel
faq-hack.xsl
(text/x-xslt, 750 B)
<?xml version ="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match ="qandaset|question|answer">
<xsl:apply-templates />
</xsl:template>
<xsl:template match ="qandaentry">
<sect2>
<xsl:copy-of select="@*"/>
<xsl:apply-templates />
</sect2>
</xsl:template>
<xsl:template match ="qandadiv">
<sect1>
<xsl:copy-of select="@*"/>
<xsl:apply-templates />
</sect1>
</xsl:template>
<xsl:template match ="question/para">
<title><xsl:apply-templates /></title>
</xsl:template>
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>