﻿<?xml version="1.0" encoding="iso-8859-1"?>


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:output encoding="iso-8859-1"/>

<xsl:template match="p">
<p>
<xsl:apply-templates/>
</p>
</xsl:template>

<xsl:template match="description">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="ref">
<a href="@target"><xsl:attribute name="href"><xsl:value-of select="@target"/></xsl:attribute>
<xsl:value-of select="."/></a><br/>
</xsl:template>

<xsl:template match="officiallink">
<a><xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>Official&#160;documentation</a><br/>
</xsl:template>

<xsl:template match="classref">
  <a><xsl:attribute name="href">class.cgi?name=<xsl:value-of select="@name"/></xsl:attribute>
  <xsl:value-of select="@name"/></a><br/>
</xsl:template>

<xsl:template match="header">
&lt;<xsl:value-of select="@name"/>&gt;
</xsl:template>

<xsl:template match="example">
<h2>Example</h2>
<p>
  <xsl:apply-templates/>
</p>
</xsl:template>

<xsl:template match="note">
<h3>
<xsl:if test="@platform"><xsl:value-of select="@platform"/></xsl:if>
<xsl:if test="@binding"><xsl:value-of select="@binding"/></xsl:if>
Note</h3><p>
  <xsl:apply-templates/>
</p>
</xsl:template>


<xsl:template match="includes">
<div class="divhead">Include file<xsl:if test="count(header) &gt; 1">s</xsl:if>
</div>
  <xsl:apply-templates select="header"/>
</xsl:template>

<xsl:template match="event">
<tr><td class="eventname"><b><xsl:value-of select="@name"/></b></td>
    <td class="eventdesc"><xsl:value-of select="."/></td></tr>
</xsl:template>

<xsl:template match="override">
<h2>Virtual functions to override</h2>
<p>
  <xsl:apply-templates/>
</p>
</xsl:template>

<xsl:template match="events">
<h2>Event handling</h2>
<p>
<table>
  <!--<xsl:value-of select="."/>
  <xsl:apply-templates select="event"/>-->
  <xsl:apply-templates/>
</table>
</p>
</xsl:template>

<xsl:template match="style">
<span>
<xsl:attribute name="onmouseover">ShowTooltip("<xsl:value-of select="@name"/>");</xsl:attribute> 
<xsl:attribute name="onmouseout">HideTooltip("<xsl:value-of select="@name"/>");</xsl:attribute> 
<xsl:value-of select="@name"/>
</span>
<div class="tooltip">
  <xsl:attribute name="id">tt<xsl:value-of select="@name"/></xsl:attribute>
  <xsl:value-of select="."/>
  <xsl:if test="@platforms">
    <xsl:value-of select="@platforms"/> only.
  </xsl:if>
</div><br/>
</xsl:template>

<!---
<xsl:template match="style">
<tr><td VALIGN="TOP" WIDTH="198"><b><xsl:value-of select="@name"/></b></td>
    <td VALIGN="TOP"><xsl:value-of select="."/>
    <xsl:if test="@platforms">
    <xsl:value-of select="@platforms"/> only.
    </xsl:if>
    </td></tr>
</xsl:template>

<xsl:template match="windowstyles">
<h2>Window styles</h2><p>
<table>
  <xsl:apply-templates/>
</table>
See also <a HREF="wx471.htm#windowstyles">window styles overview</a>.
</p>
</xsl:template>-->

<xsl:template match="function">
<xsl:value-of select="@type"/> 
<b><xsl:value-of select="@name"/></b>
  (
  <xsl:for-each select="parameters/parameter">
      <acronym>
      <xsl:attribute name="title"><xsl:value-of select="."/>
      </xsl:attribute>
      <b><xsl:value-of select="@type"/></b>
      <xsl:value-of select="@name"/>
      <xsl:if test="@value"> = <i><xsl:value-of select="@value"/></i></xsl:if>
      </acronym>
      <!--// <xsl:value-of select="."/>-->
    <xsl:if test="position()!=last()">,<br/>&#160;&#160;&#160;&#160;</xsl:if>
  </xsl:for-each>
  )
  <xsl:if test="@suffix">
    <xsl:value-of select="@suffix"/></xsl:if>
  <p/>
  <xsl:value-of select="description"/>
  <xsl:value-of select="."/>
  <!--<xsl:apply-templates select="parameters/parameter"/>-->

  <xsl:if test="seealso"><xsl:apply-templates select="seealso"/></xsl:if>
  <xsl:if test="returnvalue"><h3>Return value</h3>
  <xsl:value-of select="returnvalue"/></xsl:if>
  <br/>
</xsl:template>

<xsl:template match="members">
<h2>Members</h2>
<!-- quicklinks: -->
<xsl:for-each select="member">
  <span>
  <xsl:attribute name="onmouseover">ShowTooltip("<xsl:value-of select="@class"/>::<xsl:value-of select="@name"/>");</xsl:attribute>
  <xsl:attribute name="onmouseout">HideTooltip("<xsl:value-of select="@class"/>::<xsl:value-of select="@name"/>");</xsl:attribute>
  <a><xsl:attribute name="href">#<xsl:value-of select="@name"/></xsl:attribute>
  <xsl:value-of select="@class"/>::<xsl:value-of select="@name"/></a></span><br/>
</xsl:for-each>
<!-- And now the full definitions: -->
<xsl:for-each select="member">
<hr/>
  <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
  <h4><xsl:value-of select="@class"/>::<xsl:value-of select="@name"/></h4>
  <xsl:apply-templates select="function"/>
  <div class="bigtooltip">
  <xsl:attribute name="id">tt<xsl:value-of select="@class"/>::<xsl:value-of select="@name"/></xsl:attribute>
  <xsl:apply-templates select="function"/>
  </div>
</xsl:for-each>
</xsl:template>

<xsl:template match="class">
<html><head>
<link rel="stylesheet" type="text/css" href="class.css"/>
<title>wxWindows Class Documentation: 
<xsl:value-of select="@name"/>
</title></head>
<body>
<h1><xsl:value-of select="@name"/></h1>
<p/>
<table width="90%">
<tr><td width="90%">
  <xsl:apply-templates select="description"/>
  <xsl:apply-templates select="override"/>
  <xsl:apply-templates select="note"/>
  <xsl:apply-templates select="remarks"/>
  <xsl:apply-templates select="events"/>
  <xsl:apply-templates select="structs"/>
  <xsl:apply-templates select="types"/>
  <xsl:apply-templates select="example"/>
  <xsl:apply-templates select="friends"/>
  <xsl:apply-templates select="members"/>
  <xsl:apply-templates select="supported"/>
</td><td width="10%">
<div class="seealso">
<div class="divhead">See also:</div>
  <xsl:apply-templates select="officiallink"/>
  <xsl:apply-templates select="seealso/ref"/>
</div>
<br/>
<div class="parents">
<div class="divhead">Parents:</div>
  <xsl:apply-templates select="parents/classref"/>
</div>
<br/>
<div class="includes">
  <xsl:apply-templates select="includes"/>
</div>
<br/>
<div class="windowstyles">
  <div class="divhead">Window styles:</div>
  <xsl:apply-templates select="windowstyles/style"/>
</div>
</td></tr>
</table>
<script language="JavaScript" type="text/javascript" src="class.js"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

