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

126 lines
3.5 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="xsl-url">/source/</xsl:param>
<xsl:param name="breite1">32</xsl:param> <!-- abstand links (Funktionsname), Typ -->
<xsl:param name="breite2">90</xsl:param> <!-- Breite Arg-Typ, -->
<xsl:param name="breite3">90</xsl:param> <!-- Breite Arg-Varname -->
<xsl:param name="breiteTab">80%</xsl:param> <!-- tabelle, implizit für spalte beschreibung -->
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="Returnwert">
<table border="0" cellspacing="0" cellpadding="1" width="{$breiteTab}">
<tbody style="font-family:Arial, Helvetica, sans-serif; font-size:13; ">
<tr>
<td width="{$breite1}"></td>
<td width="{$breite2}" valign="top">
<xsl:for-each select="Typ">
<font color="Blue"><xsl:apply-templates/></font>
</xsl:for-each>
</td>
<td width="{$breite3}" valign="top">
</td>
<td valign="top" style="padding: 0 0 0 4px;">
<xsl:for-each select="Beschreibung">
<font color="Green"><xsl:apply-templates/></font>
</xsl:for-each>
</td>
</tr>
</tbody>
</table>
</xsl:template>
<xsl:template match="Parameter">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="Arg">
<table border="0" cellspacing="0" cellpadding="0" width="{$breiteTab}">
<tbody style="font-family:Arial, Helvetica, sans-serif; font-size:13; ">
<tr>
<td width="{$breite1}"></td>
<td width="{$breite2}" valign="top">
<xsl:for-each select="Typ">
<font color="Blue"><xsl:apply-templates/></font>
</xsl:for-each>
</td>
<td width="{$breite3}" valign="top">
<xsl:for-each select="Variablename">
<font color="Black"><xsl:apply-templates/></font>
</xsl:for-each>
</td>
<td valign="top" style="padding: 0 0 0 4px;">
<xsl:for-each select="Beschreibung">
<font color="Green"><xsl:apply-templates/></font>
</xsl:for-each>
</td>
</tr>
</tbody>
</table>
</xsl:template>
<xsl:template match="Typ">
<font color="Blue"><xsl:apply-templates/></font>
</xsl:template>
<xsl:template match="Variablename">
<font color="Black"><xsl:apply-templates/> </font>
</xsl:template>
<xsl:template match="Beschreibung">
<font color="Green"><xsl:apply-templates/></font><font color="black"></font>
</xsl:template>
<xsl:template match="Funktionsname">
<span style="margin-left: {$breite1}px;"><font color="Brown"><xsl:apply-templates/></font></span>
</xsl:template>
<xsl:template match="Location">
<a href="{$xsl-url}{Headerfile}" target="_blank"><xsl:value-of select="Headerfile"/></a><br></br>
<!-- source für zahlende gäste: <a href="{$xsl-url}{Sourcefile}" target="_blank" ><xsl:value-of select="Sourcefile"/></a><br></br> -->
</xsl:template>
<xsl:template match="Samplefile">
<xsl:variable name="thisurl"><xsl:apply-templates/></xsl:variable>
<a href="{$xsl-url}{$thisurl}" target="_blank" ><xsl:apply-templates/></a><br></br>
</xsl:template>
<xsl:template match="f">
<div class="function" >
<b>Funktion</b>
<p><xsl:apply-templates select="Funktionsname"/></p>
<b>Returnwert</b>
<p><xsl:apply-templates select="Returnwert"/></p>
<b>Parameter</b>
<p><xsl:apply-templates select="Parameter"/></p>
<b>Beschreibung</b>
<p> <xsl:apply-templates select="Beschreibung"/></p>
<b>Code</b>
<p>
<xsl:apply-templates select="Location"/>
<xsl:apply-templates select="Beispiel"/>
</p>
</div>
</xsl:template>
</xsl:stylesheet>