2009-03-08 00:46:58 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
<xsl:stylesheet version="1.0"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
<xsl:output omit-xml-declaration="yes"/>
|
|
|
|
|
|
|
|
<xsl:template match="/">
|
|
|
|
<xsl:copy>
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</xsl:copy>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'"/>
|
|
|
|
<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
|
|
|
|
|
|
|
|
<xsl:template name ="summary" match="refentry">
|
2009-03-08 18:08:35 +00:00
|
|
|
/// <summary>
|
|
|
|
/// <xsl:value-of select="concat(translate(
|
2009-03-08 00:46:58 +00:00
|
|
|
substring(refnamediv/refpurpose, 1, 1), $lowercase, $uppercase),
|
|
|
|
substring(refnamediv/refpurpose, 2, string-length(refnamediv/refpurpose) - 1))"/>
|
2009-03-08 18:08:35 +00:00
|
|
|
/// </summary>
|
2009-03-08 00:46:58 +00:00
|
|
|
|
|
|
|
<xsl:for-each select="refsect1/variablelist/varlistentry">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="../../@id = 'parameters'">
|
2009-03-08 18:08:35 +00:00
|
|
|
/// <param name="{term/parameter}">
|
2009-03-08 00:46:58 +00:00
|
|
|
<xsl:for-each select="listitem/para">
|
2009-03-08 18:08:35 +00:00
|
|
|
/// <para>
|
|
|
|
/// <xsl:value-of select="normalize-space(.)"/>
|
|
|
|
/// </para>
|
2009-03-08 00:46:58 +00:00
|
|
|
</xsl:for-each>
|
2009-03-08 18:08:35 +00:00
|
|
|
/// </param>
|
2009-03-08 00:46:58 +00:00
|
|
|
</xsl:when>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:for-each>
|
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|