You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openchange/SOURCES/doxygen_to_devhelp.xsl

35 lines
1.3 KiB

<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.0">
<xsl:output method="xml" version="1.0" indent="yes"/>
<xsl:param name="prefix"></xsl:param>
<xsl:param name="booktitle"></xsl:param>
<xsl:param name="bookpart"></xsl:param>
<xsl:template match="/">
<book title="OpenChange: {$booktitle}"
name="openchange-{$bookpart}"
link="index.html">
<functions>
<xsl:apply-templates select="doxygenindex/compound[@kind='file']/member[@kind='function']"/>
<xsl:apply-templates select="doxygenindex/compound[@kind='class']/member[@kind='function']"/>
</functions>
</book>
</xsl:template>
<xsl:template match="member">
<xsl:param name="name"><xsl:value-of select="name"/></xsl:param>
<xsl:param name="refid"><xsl:value-of select="@refid"/></xsl:param>
<xsl:param name="before"><xsl:value-of select="substring-before($refid,'_1')"/></xsl:param>
<xsl:param name="after"><xsl:value-of select="substring-after($refid,'_1')"/></xsl:param>
<xsl:param name="link"><xsl:value-of select="$before"/>.html#<xsl:value-of select="$after"/></xsl:param>
<xsl:if test="contains($refid, '_8c_')">
<function name="{$name}" link="{$prefix}{$link}"/>
</xsl:if>
</xsl:template>
</xsl:stylesheet>