|
|
@ -1,9 +1,9 @@ |
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?> |
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?> |
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:strip-space elements="*" /> |
|
|
|
<xsl:strip-space elements="*" /> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:output |
|
|
|
<xsl:output |
|
|
|
method="xml" |
|
|
|
method="xml" |
|
|
|
media-type="application/xhtml+xml; charset=iso-8859-1" |
|
|
|
media-type="application/xhtml+xml; charset=iso-8859-1" |
|
|
|
version="1.0" |
|
|
|
version="1.0" |
|
|
@ -14,11 +14,11 @@ |
|
|
|
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" |
|
|
|
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" |
|
|
|
indent="no" /> |
|
|
|
indent="no" /> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="link"> |
|
|
|
<xsl:template match="link"> |
|
|
|
<a href="{./@href}"><xsl:value-of select="." /></a> |
|
|
|
<a href="{./@href}"><xsl:value-of select="." /></a> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="image"> |
|
|
|
<xsl:template match="image"> |
|
|
|
<xsl:choose> |
|
|
|
<xsl:choose> |
|
|
|
<xsl:when test="./@href"> |
|
|
|
<xsl:when test="./@href"> |
|
|
|
<xsl:element name="a"> |
|
|
|
<xsl:element name="a"> |
|
|
@ -37,7 +37,7 @@ |
|
|
|
</xsl:element> |
|
|
|
</xsl:element> |
|
|
|
</xsl:otherwise> |
|
|
|
</xsl:otherwise> |
|
|
|
</xsl:choose> |
|
|
|
</xsl:choose> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="image-list"> |
|
|
|
<xsl:template match="image-list"> |
|
|
|
<div class="news-image"> |
|
|
|
<div class="news-image"> |
|
|
@ -51,32 +51,32 @@ |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="list"> |
|
|
|
<xsl:template match="list"> |
|
|
|
<xsl:value-of select="./@nom" /><br /> |
|
|
|
<xsl:value-of select="./@nom" /><br /> |
|
|
|
<xsl:apply-templates select="./element"/> |
|
|
|
<xsl:apply-templates select="./element"/> |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="element"> |
|
|
|
<xsl:template match="element"> |
|
|
|
<xsl:apply-templates /><br /> |
|
|
|
<xsl:apply-templates /><br /> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="paragraph"> |
|
|
|
<xsl:template match="paragraph"> |
|
|
|
<div class="paragraph"><xsl:text /><xsl:apply-templates /><xsl:text /></div><br /> |
|
|
|
<div class="paragraph"><xsl:text /><xsl:apply-templates /><xsl:text /></div><br /> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="about-short"> |
|
|
|
<xsl:template match="about-short"> |
|
|
|
<div class="title3"> |
|
|
|
<div class="title3"> |
|
|
|
<xsl:apply-templates select="./element" /> |
|
|
|
<xsl:apply-templates select="./element" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="source"> |
|
|
|
<xsl:template match="source"> |
|
|
|
<xsl:value-of select="./@type"/>: <a href="{./@adresse}"><xsl:value-of select="."/></a><br /> |
|
|
|
<xsl:value-of select="./@type"/>: <a href="{./@href}"><xsl:value-of select="."/></a><br /> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="menu"> |
|
|
|
<xsl:template match="menu"> |
|
|
|
<div class="menu1"> |
|
|
|
<div class="menu1"> |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
<div> |
|
|
|
<div> |
|
|
@ -102,39 +102,123 @@ |
|
|
|
<a href="http://feedjit.com/">Feedjit Live Blog Stats</a> |
|
|
|
<a href="http://feedjit.com/">Feedjit Live Blog Stats</a> |
|
|
|
</noscript> |
|
|
|
</noscript> |
|
|
|
</div--> |
|
|
|
</div--> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="menu-pic"> |
|
|
|
<xsl:template match="menu-pic"> |
|
|
|
<div class="menu2"> |
|
|
|
<div class="menu2"> |
|
|
|
<a href="{@href}"> |
|
|
|
<a href="{@href}"> |
|
|
|
<img class="menu-img" src="{@image}" alt="{@name}"/> |
|
|
|
<img class="menu-img" src="{@image}" alt="{@name}"/> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="menu-link"> |
|
|
|
<xsl:template match="menu-link"> |
|
|
|
<xsl:apply-templates select="./menu-pic"/> |
|
|
|
<xsl:apply-templates select="./menu-pic"/> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="menu-image"> |
|
|
|
<xsl:template match="menu-image"> |
|
|
|
<div class="menu2"> |
|
|
|
<div class="menu2"> |
|
|
|
<a href="./common/glm.jpg"> |
|
|
|
<a href="./common/glm.jpg"> |
|
|
|
<img class="menu-img" src="./common/logo.jpg" alt="G-Truc"/> |
|
|
|
<img class="menu-img" src="./common/logo.jpg" alt="G-Truc"/> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="menu-group"> |
|
|
|
<xsl:template match="menu-group"> |
|
|
|
<xsl:apply-templates select="./menu-entry"/> |
|
|
|
<xsl:apply-templates select="./menu-entry"/> |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="menu-entry"> |
|
|
|
<xsl:template match="menu-entry"> |
|
|
|
<div class="menu2"> |
|
|
|
<div class="menu2"> |
|
|
|
<a href="{./@href}"> |
|
|
|
<a href="{./@href}"> |
|
|
|
<xsl:value-of select="./@name"/> |
|
|
|
<xsl:value-of select="./@name"/> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="code"> |
|
|
|
|
|
|
|
<xsl:choose> |
|
|
|
|
|
|
|
<xsl:when test="./@href"> |
|
|
|
|
|
|
|
<span xmlns="http://www.w3.org/1999/xhtml" class="code-title"> |
|
|
|
|
|
|
|
<a href="{./@href}"> |
|
|
|
|
|
|
|
<xsl:value-of select="./@author" /> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</xsl:when> |
|
|
|
|
|
|
|
<xsl:otherwise> |
|
|
|
|
|
|
|
<span xmlns="http://www.w3.org/1999/xhtml" class="code-title"> |
|
|
|
|
|
|
|
<xsl:value-of select="./@title" /> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</xsl:otherwise> |
|
|
|
|
|
|
|
</xsl:choose> |
|
|
|
|
|
|
|
<ul xmlns="http://www.w3.org/1999/xhtml" class="code-list"> |
|
|
|
|
|
|
|
<xsl:apply-templates select="./line" /> |
|
|
|
|
|
|
|
</ul> |
|
|
|
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="line"> |
|
|
|
|
|
|
|
<li xmlns="http://www.w3.org/1999/xhtml" class="code-line"> |
|
|
|
|
|
|
|
<xsl:choose> |
|
|
|
|
|
|
|
<xsl:when test="@align"> |
|
|
|
|
|
|
|
<span class="code-line-content" style="padding-left:{@align}"> |
|
|
|
|
|
|
|
<xsl:apply-templates /> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</xsl:when> |
|
|
|
|
|
|
|
<xsl:otherwise> |
|
|
|
|
|
|
|
<span class="code-line-content"> |
|
|
|
|
|
|
|
<xsl:apply-templates /> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</xsl:otherwise> |
|
|
|
|
|
|
|
</xsl:choose> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="progword"> |
|
|
|
|
|
|
|
<xsl:choose> |
|
|
|
|
|
|
|
<xsl:when test="./@href"> |
|
|
|
|
|
|
|
<span xmlns="http://www.w3.org/1999/xhtml" class="progword"> |
|
|
|
|
|
|
|
<a href="{./@href}"> |
|
|
|
|
|
|
|
<xsl:apply-templates /> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</xsl:when> |
|
|
|
|
|
|
|
<xsl:otherwise> |
|
|
|
|
|
|
|
<span xmlns="http://www.w3.org/1999/xhtml" class="progword"> |
|
|
|
|
|
|
|
<xsl:apply-templates /> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</xsl:otherwise> |
|
|
|
|
|
|
|
</xsl:choose> |
|
|
|
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="keyword"> |
|
|
|
|
|
|
|
<span xmlns="http://www.w3.org/1999/xhtml" class="keyword"> |
|
|
|
|
|
|
|
<xsl:apply-templates /> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="userword"> |
|
|
|
|
|
|
|
<span xmlns="http://www.w3.org/1999/xhtml" class="userword"> |
|
|
|
|
|
|
|
<xsl:apply-templates /> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="codeword"> |
|
|
|
|
|
|
|
<span xmlns="http://www.w3.org/1999/xhtml" class="codeword"> |
|
|
|
|
|
|
|
<xsl:apply-templates /> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="string"> |
|
|
|
|
|
|
|
<span xmlns="http://www.w3.org/1999/xhtml" class="string"> |
|
|
|
|
|
|
|
<xsl:apply-templates /> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="comment"> |
|
|
|
|
|
|
|
<span xmlns="http://www.w3.org/1999/xhtml" class="comment"> |
|
|
|
|
|
|
|
<xsl:apply-templates /> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
|
|
</xsl:stylesheet> |
|
|
|
</xsl:stylesheet> |
|
|
|