| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <?xml version="1.0" encoding="iso-8859-1"?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="html" media-type="text/html; charset=ISO-8859-1" />
- <xsl:include href="./util.xsl" />
- <xsl:template match="/">
- <html>
- <head>
- <title>OpenGL Mathematics: Code</title>
- <meta http-equiv="Content-Language" content="en" />
- <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" />
- <meta name="copyright" content="G-Truc Creation" />
- <link href="./common/style.css" rel="stylesheet" media="screen, print, embossed" type="text/css" />
- <script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-20182250-1']);
- _gaq.push(['_setDomainName', '.g-truc.net']);
- _gaq.push(['_trackPageview']);
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
- </head>
- <body>
- <table>
- <tr>
- <td class="menu">
- <xsl:apply-templates select="./glm/menu" />
- </td>
- <td class="page">
- <!--div class="title1">OpenGL Mathematics</div-->
- <div class="title1"><img src="./common/title.png" alt="OpenGL Mathematics" /></div>
- <xsl:apply-templates select="./glm/about-short" />
- <br />
- <xsl:apply-templates select="./glm/codes/code" />
- <div class="title3">
- <xsl:value-of select="./glm/@copyright" /> <a href="http://www.g-truc.net">G-Truc Creation</a>
- </div>
- </td>
- </tr>
- </table>
- </body>
- </html>
- </xsl:template>
- <!--
- <xsl:template match="code">
- <div>
- <xsl:apply-templates select="./include" />
- <br />
- <xsl:apply-templates select="./function" />
- </div>
- </xsl:template>
- <xsl:template match="comment">
- <div class="comment"><xsl:apply-templates select="." /></div>
- </xsl:template>
- <xsl:template match="include">
- <div class="include">
- <xsl:if test="contains(./@type, 'system')">
- #include <![CDATA[<]]><xsl:value-of select="./@file" /><![CDATA[>]]>
- </xsl:if>
- <xsl:if test="contains(./@type, 'local')">
- #include <![CDATA["]]><xsl:value-of select="./@file" /><![CDATA["]]>
- </xsl:if>
- </div>
- </xsl:template>
-
- <xsl:template match="function">
- <div>
- <xsl:value-of select="./@return" /><xsl:text> </xsl:text>
- <xsl:value-of select="./@name" />(<xsl:apply-templates select="./parameters" />)
- </div>
- <xsl:apply-templates select="./content" />
- <br />
- </xsl:template>
- <xsl:template match="content">
- <xsl:apply-templates select="./block" />
- </xsl:template>
-
- <xsl:template match="parameter">
- <xsl:value-of select="./@type" /> <xsl:value-of select="./@name" />
- <xsl:text> </xsl:text>
- </xsl:template>
- <xsl:template match="block">
- {
- <div class="block">
- <xsl:apply-templates />
- </div>
- }
- </xsl:template>
- <xsl:template match="line">
- <div>
- <xsl:apply-templates />
- </div>
- </xsl:template>
- <xsl:template match="key">
- <spam class="key"><xsl:apply-templates select="." /></spam>
- </xsl:template>
- -->
- </xsl:stylesheet>
|