Initial commit based on GLM 0.9.B.1 code

This commit is contained in:
Christophe Riccio
2010-04-14 13:23:59 +01:00
commit 25b03fe24c
288 changed files with 50254 additions and 0 deletions

68
doc/src/about.xsl Normal file
View File

@@ -0,0 +1,68 @@
<?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 : About</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" />
</head>
<body>
<table>
<tr>
<td class="menu">
<xsl:apply-templates select="./glm/menu" />
</td>
<td class="page">
<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/about-long" />
<div class="email">
<img src="./common/email.png" alt="email not available as text" />
</div>
<div class="news-separator">_________________</div>
<br />
<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="about-long">
<div>
<div class="title-date">
<xsl:value-of select="./@date" />
</div>
<div class="title4">
<xsl:value-of select="./@title" />
</div>
<div>
<xsl:if test="./paragraph">
<xsl:apply-templates select="./paragraph" />
</xsl:if>
<xsl:if test="./list">
<xsl:apply-templates select="./list" />
</xsl:if>
<xsl:apply-templates select="./source" />
</div>
<div class="news-separator">_________________</div>
<br />
</div>
</xsl:template>
</xsl:stylesheet>

116
doc/src/bug.xsl Normal file
View File

@@ -0,0 +1,116 @@
<?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 : Bugs</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="&#65533; 2005 C-Truc Creation" />
<link href="./common/style.css" rel="stylesheet" media="screen, print, embossed" type="text/css" />
</head>
<body>
<div class="title1">
<img src="./common/title.png" alt="OpenGL Mathematics" />
</div>
<table>
<tr>
<td class="menu">
<div class="menu1">
<a class="menu" href="./glm/downloads/section/download/@link">
Download <xsl:value-of select="./glm/downloads/section/download/@name" />
</a>
</div>
<hr />
<div class="menu2">
<a class="menu" href="./index.html">News</a>
</div>
<div class="menu2">
<a class="menu" href="./download.html">Downloads</a>
</div>
<div class="menu2">
<a class="menu" href="./changelog.html">Changelog</a>
</div>
<div class="menu2">
<a class="menu" href="./html/index.html">Documentation</a>
</div>
<div class="menu2">
<a class="menu" href="http://glf.svn.sourceforge.net/viewvc/glf">SVN Browse</a>
</div>
<div class="menu2">
<a class="menu" href="https://sourceforge.net/tracker/?group_id=129808&amp;atid=901445">Bug tracker</a>
</div>
<div class="menu2">
<a class="menu" href="https://sourceforge.net/tracker/?group_id=129808&amp;atid=715891">Feature requests</a>
</div>
<div class="menu2">
<a class="menu" href="./link.html">Links</a>
</div>
<hr />
<div class="menu2">
<a href="http://validator.w3.org/check/referer">
<img class="menu-img" src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1!" />
</a>
</div>
<div class="menu2">
<a href="http://www.opengl.org">
<img class="menu-img" src="./common/opengl.jpg" alt="OpenGL"/>
</a>
</div>
<div class="menu2">
<a href="http://www.sourceforge.net">
<img class="menu-img" src="./common/sourceforge.gif" alt="SourceForge"/>
</a>
</div>
<div class="menu2">
<a href="http://www.g-truc.net">
<img class="menu-img" src="./common/g-truc.jpg" alt="G-Truc"/>
</a>
</div>
<hr />
</td>
<td class="page">
<xsl:apply-templates select="./glm/bugs" />
</td>
</tr>
</table>
<xsl:value-of select="./glm/@copyright" />
<a href="http://www.g-truc.net">G-Truc Creation</a>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="bugs">
<div>
<div class="title2">Bugs</div>
<br />
<xsl:apply-templates select="./bug" />
</div>
</xsl:template>
<xsl:template match="bug">
<div class="issue-title">
<xsl:value-of select="./@number"/>) <xsl:value-of select="./@title"/><br />
</div>
<div>
<xsl:apply-templates select="./entry" />
<br />
<div class="issue-content">
STATUE : <xsl:value-of select="./@statue"/>, <xsl:value-of select="./@date"/>
</div>
</div>
<br />
</xsl:template>
<xsl:template match="entry">
<div class="issue-content">
<xsl:value-of select="./@title"/>: <xsl:value-of select="."/>
</div>
</xsl:template>
</xsl:stylesheet>

55
doc/src/changelog.xsl Normal file
View File

@@ -0,0 +1,55 @@
<?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 : Changelog</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" />
</head>
<body>
<table>
<tr>
<td class="menu">
<xsl:apply-templates select="./glm/menu" />
</td>
<td class="page">
<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/changelog/update" />
<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="update">
<div class="title4">
<xsl:value-of select="./@date"/>: <br />
</div>
<xsl:apply-templates select="./entry" />
<div class="news-separator">_________________</div>
<br />
</xsl:template>
<xsl:template match="entry">
<div class="issue-content">
- <xsl:value-of select="."/><br />
</div>
</xsl:template>
</xsl:stylesheet>

111
doc/src/code.xsl Normal file
View File

@@ -0,0 +1,111 @@
<?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" />
</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>
<div class="title4">
<xsl:value-of select="./@date" /> | <xsl:value-of select="./@title" />
</div>
<div>
<xsl:apply-templates />
</div>
<div class="news-separator">_________________</div>
<br />
</div>
</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>

2302
doc/src/data.xml Normal file

File diff suppressed because it is too large Load Diff

78
doc/src/download.xsl Normal file
View File

@@ -0,0 +1,78 @@
<?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 : Downloads</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" />
</head>
<body>
<table>
<tr>
<td class="menu">
<xsl:apply-templates select="./glm/menu" />
</td>
<td class="page">
<div class="title1">
<img src="./common/title.png" alt="OpenGL Mathematics" />
</div>
<xsl:apply-templates select="./glm/about-short" />
<br />
<div>
<div class="title4">Current release</div>
<xsl:apply-templates select="./download" />
</div>
<div class="issue-content">
<xsl:value-of select="/glm/downloads/section/download/@date"/>:
<a href="{/glm/downloads/section/download/@link}">
<xsl:value-of select="/glm/downloads/section/download/@name" />
</a>
(<xsl:value-of select="/glm/downloads/section/download/@size"/>)
</div>
<div class="news-separator">_________________</div>
<br />
<xsl:apply-templates select="./glm/downloads/section" />
<div class="email">
<img src="./common/email.png" alt="email not available as text" />
</div>
<div class="news-separator">_________________</div>
<br />
<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="section">
<div>
<div class="title4">
<xsl:value-of select="./@name"/>
</div>
<xsl:apply-templates select="./download" />
</div>
<div class="news-separator">_________________</div>
<br />
</xsl:template>
<xsl:template match="download">
<div class="issue-content">
<xsl:value-of select="./@date"/>: <a href="{./@link}">
<xsl:value-of select="./@name"/>
</a> (<xsl:value-of select="./@size"/>)
</div>
</xsl:template>
</xsl:stylesheet>

4
doc/src/dummy.cpp Normal file
View File

@@ -0,0 +1,4 @@
int main()
{
}

79
doc/src/goodies.xsl Normal file
View File

@@ -0,0 +1,79 @@
<?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: Goodies</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" />
</head>
<body>
<table>
<tr>
<td class="menu">
<xsl:apply-templates select="./glm/menu" />
</td>
<td class="page">
<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/goodies/goodie" />
<div class="email">
<img src="./common/email.png" alt="email not available as text" />
</div>
<div class="news-separator">_________________</div>
<br />
<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="goodie">
<div>
<div class="title-date">
<xsl:value-of select="./@date" />
</div>
<div class="title4">
<xsl:value-of select="./@title" />
</div>
<div>
<table style="width:100%;">
<tr style="width:100%;">
<td>
<xsl:if test="./paragraph">
<xsl:apply-templates select="./paragraph" />
</xsl:if>
<xsl:if test="./list">
<xsl:apply-templates select="./list" />
</xsl:if>
<xsl:apply-templates select="./source" />
</td>
<td style="text-align:right;">
<a ref="{./@image}">
<img src="{./@image-mini}" alt=" " />
</a>
</td>
</tr>
</table>
</div>
<div class="news-separator">_________________</div>
<br />
</div>
</xsl:template>
</xsl:stylesheet>

120
doc/src/issue.xsl Normal file
View File

@@ -0,0 +1,120 @@
<?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 : Issues</title>
<meta http-equiv="Content-Language" content="fr, be, ca, lu, ch" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" />
<meta name="copyright" content="&#65533; 2005 C-Truc Creation" />
<link href="./common/style.css" rel="stylesheet" media="screen, print, embossed" type="text/css" />
</head>
<body>
<div class="title1">
<img src="./common/title.png" alt="OpenGL Mathematics" />
</div>
<table>
<tr>
<td class="menu">
<div class="menu1">
<a class="menu" href="./glm/downloads/section/download/@link">
Download <xsl:value-of select="./glm/downloads/section/download/@name" />
</a>
</div>
<hr />
<div class="menu2">
<a class="menu" href="./index.html">News</a>
</div>
<div class="menu2">
<a class="menu" href="./download.html">Downloads</a>
</div>
<div class="menu2">
<a class="menu" href="./changelog.html">Changelog</a>
</div>
<div class="menu2">
<a class="menu" href="./glm-manual.pdf">User manual</a>
</div>
<div class="menu2">
<a class="menu" href="./html/index.html">API Documentation</a>
</div>
<div class="menu2">
<a class="menu" href="http://glf.svn.sourceforge.net/viewvc/glf">SVN Browse</a>
</div>
<div class="menu2">
<a class="menu" href="https://sourceforge.net/tracker/?group_id=129808&amp;atid=901445">Bug tracker</a>
</div>
<div class="menu2">
<a class="menu" href="https://sourceforge.net/tracker/?group_id=129808&amp;atid=715891">Feature requests</a>
</div>
<div class="menu2">
<a class="menu" href="./link.html">Links</a>
</div>
<hr />
<div class="menu2">
<a href="http://validator.w3.org/check/referer">
<img class="menu-img" src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1!" />
</a>
</div>
<div class="menu2">
<a href="http://www.opengl.org">
<img class="menu-img" src="./common/opengl.jpg" alt="OpenGL"/>
</a>
</div>
<div class="menu2">
<a href="http://www.sourceforge.net">
<img class="menu-img" src="./common/sourceforge.gif" alt="SourceForge"/>
</a>
</div>
<div class="menu2">
<a href="http://www.g-truc.net">
<img class="menu-img" src="./common/g-truc.jpg" alt="G-Truc"/>
</a>
</div>
<hr />
</td>
<td class="page">
<xsl:apply-templates select="./glm/issues" />
</td>
</tr>
</table>
<div class="title3">
<xsl:value-of select="./glm/@copyright" />
<a href="http://www.g-truc.net">G-Truc Creation</a>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="issues">
<div>
<div class="title2">Probl<EFBFBD>matiques</div>
<br />
<xsl:apply-templates select="./issue" />
</div>
</xsl:template>
<xsl:template match="issue">
<div class="issue-title">
<xsl:value-of select="./@number"/>) <xsl:value-of select="./@title"/><br />
</div>
<div>
<xsl:apply-templates select="./entry" />
<br />
<div class="issue-content">
STATUE : <xsl:value-of select="./@statue"/>, <xsl:value-of select="./@date"/>
</div>
</div>
<br />
</xsl:template>
<xsl:template match="entry">
<div class="issue-content">
<xsl:value-of select="./@title"/>: <xsl:value-of select="."/>
</div>
</xsl:template>
</xsl:stylesheet>

115
doc/src/link.xsl Normal file
View File

@@ -0,0 +1,115 @@
<?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 : Links</title>
<meta http-equiv="Content-Language" content="fr, be, ca, lu, ch" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" />
<meta name="copyright" content="&#65533; 2005 C-Truc Creation" />
<link href="./common/style.css" rel="stylesheet" media="screen, print, embossed" type="text/css" />
</head>
<body>
<div class="title1">
<img src="./common/title.png" alt="OpenGL Mathematics" />
</div>
<table>
<tr>
<td class="menu">
<div class="menu1">
<a class="menu" href="./glm/downloads/section/download/@link">
Download <xsl:value-of select="./glm/downloads/section/download/@name" />
</a>
</div>
<hr />
<div class="menu2">
<a class="menu" href="./index.html">News</a>
</div>
<div class="menu2">
<a class="menu" href="./download.html">Downloads</a>
</div>
<div class="menu2">
<a class="menu" href="./changelog.html">Changelog</a>
</div>
<div class="menu2">
<a class="menu" href="./glm-manual.pdf">User manual</a>
</div>
<div class="menu2">
<a class="menu" href="./html/index.html">API Documentation</a>
</div>
<div class="menu2">
<a class="menu" href="http://glf.svn.sourceforge.net/viewvc/glf">SVN Browse</a>
</div>
<div class="menu2">
<a class="menu" href="https://sourceforge.net/tracker/?group_id=129808&amp;atid=901445">Bug tracker</a>
</div>
<div class="menu2">
<a class="menu" href="https://sourceforge.net/tracker/?group_id=129808&amp;atid=715891">Feature requests</a>
</div>
<div class="menu2">
<a class="menu" href="./link.html">Links</a>
</div>
<hr />
<div class="menu2">
<a href="http://validator.w3.org/check/referer">
<img class="menu-img" src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1!" />
</a>
</div>
<div class="menu2">
<a href="http://www.opengl.org">
<img class="menu-img" src="./common/opengl.jpg" alt="OpenGL"/>
</a>
</div>
<div class="menu2">
<a href="http://www.sourceforge.net">
<img class="menu-img" src="./common/sourceforge.gif" alt="SourceForge"/>
</a>
</div>
<div class="menu2">
<a href="http://www.g-truc.net">
<img class="menu-img" src="./common/g-truc.jpg" alt="G-Truc"/>
</a>
</div>
<hr />
</td>
<td class="page">
<xsl:apply-templates select="./glm/links" />
</td>
</tr>
</table>
<div class="title3">
<xsl:value-of select="./glm/@copyright" />
<a href="http://www.g-truc.net">G-Truc Creation</a>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="links">
<div>
<div class="title2">Liens</div>
<div class="issue-content">
This page lists all the documents that helped to develop OpenGL Mathematics.
</div>
<br />
<xsl:apply-templates select="./link" />
</div>
</xsl:template>
<xsl:template match="link">
<div class="issue-title">
<a href="{./@link}">
<xsl:value-of select="./@name"/>
</a>
</div>
<div class="issue-content">
<xsl:value-of select="."/>
</div>
<br />
</xsl:template>
</xsl:stylesheet>

81
doc/src/news.xsl Normal file
View File

@@ -0,0 +1,81 @@
<?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: News</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" />
</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/page_news/news" />
<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="news">
<div>
<div class="title-date">
<xsl:value-of select="./@date" />
</div>
<div class="title4">
<xsl:value-of select="./@title" />
</div>
<div>
<xsl:if test="./paragraph">
<xsl:apply-templates select="./paragraph" />
</xsl:if>
<xsl:if test="./list">
<xsl:apply-templates select="./list" />
</xsl:if>
<xsl:apply-templates select="./source" />
<!--table style="width:100%;">
<tr style="width:100%;">
<td>
<xsl:if test="./paragraph">
<xsl:apply-templates select="./paragraph" />
</xsl:if>
<xsl:if test="./list">
<xsl:apply-templates select="./list" />
</xsl:if>
<xsl:apply-templates select="./source" />
</td>
<td style="text-align:right;">
<a ref="{./@image}"><img src="{./@image-mini}" alt=" " /></a>
</td>
</tr>
</table-->
</div>
<div class="news-separator">_________________</div>
<br />
</div>
</xsl:template>
</xsl:stylesheet>

143
doc/src/util.xsl Normal file
View File

@@ -0,0 +1,143 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:strip-space elements="*" />
<xsl:output
method="xml"
media-type="application/xhtml+xml; charset=iso-8859-1"
version="1.0"
encoding="iso-8859-1"
standalone="no"
omit-xml-declaration="no"
doctype-public="-//W3C//DTD XHTML 1.1//EN"
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
indent="no" />
<xsl:template match="link">
<a href="{./@href}"><xsl:value-of select="." /></a>
</xsl:template>
<xsl:template match="image">
<xsl:choose>
<xsl:when test="./@href">
<xsl:element name="a">
<xsl:attribute name="class">menu-titre2</xsl:attribute>
<xsl:attribute name="href"><xsl:value-of select="./@href" /></xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src"><xsl:value-of select="@file" /></xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="@file" /></xsl:attribute>
</xsl:element>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:element name="img">
<xsl:attribute name="src"><xsl:value-of select="@file" /></xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="@file" /></xsl:attribute>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="image-list">
<div class="news-image">
<xsl:apply-templates select="./image-element" />
</div>
</xsl:template>
<xsl:template match="image-element">
<a href="{./@normal}">
<img src="{./@small}" alt="{./@title}" />
</a>
</xsl:template>
<xsl:template match="list">
<xsl:value-of select="./@nom" /><br />
<xsl:apply-templates select="./element"/>
<br />
</xsl:template>
<xsl:template match="element">
<xsl:apply-templates /><br />
</xsl:template>
<xsl:template match="paragraph">
<div class="paragraph"><xsl:text /><xsl:apply-templates /><xsl:text /></div><br />
</xsl:template>
<xsl:template match="about-short">
<div class="title3">
<xsl:apply-templates select="./element" />
</div>
<br />
</xsl:template>
<xsl:template match="source">
<xsl:value-of select="./@type"/>: <a href="{./@adresse}"><xsl:value-of select="."/></a><br />
</xsl:template>
<xsl:template match="menu">
<div class="menu1">
<br />
<div>
<a href="./goodies/logo1920x1200.png">
<img class="menu-img" src="./common/logo.png" alt="GLM Logo"/>
</a>
</div>
<br />
<div>
<a class="menu" href="{/glm/downloads/section/download/@link}">
Download <xsl:value-of select="/glm/downloads/section/download/@name" />
</a>
</div>
</div>
<br />
<xsl:apply-templates select="./menu-group"/>
<div class="menu1">
<img class="menu-img" src="./common/email.png" alt="contact"/>
</div>
<br />
<xsl:apply-templates select="./menu-link"/>
<br />
<!--div>
<script type="text/javascript" src="http://feedjit.com/map/?bc=FFFFFF&amp;tc=494949&amp;brd1=FFFFFF&amp;lnk=494949&amp;hc=FF8000&amp;dot=FF8000"></script>
<noscript>
<a href="http://feedjit.com/">Feedjit Live Blog Stats</a>
</noscript>
</div-->
</xsl:template>
<xsl:template match="menu-pic">
<div class="menu2">
<a href="{@href}">
<img class="menu-img" src="{@image}" alt="{@name}"/>
</a>
</div>
</xsl:template>
<xsl:template match="menu-link">
<xsl:apply-templates select="./menu-pic"/>
</xsl:template>
<xsl:template match="menu-image">
<div class="menu2">
<a href="./common/glm.jpg">
<img class="menu-img" src="./common/logo.jpg" alt="G-Truc"/>
</a>
</div>
</xsl:template>
<xsl:template match="menu-group">
<xsl:apply-templates select="./menu-entry"/>
<br />
</xsl:template>
<xsl:template match="menu-entry">
<div class="menu2">
<a href="{./@href}">
<xsl:value-of select="./@name"/>
</a>
</div>
</xsl:template>
</xsl:stylesheet>