diff options
author | Bruno Coudoin <bcoudoin@src.gnome.org> | 2004-11-17 01:35:49 (GMT) |
---|---|---|
committer | Bruno Coudoin <bcoudoin@src.gnome.org> | 2004-11-17 01:35:49 (GMT) |
commit | e1dd9f30fec903e82480fe37f3047e794c2fe595 (patch) | |
tree | b41b2408eb887ad637447d40bf75e156235d712d /docs/spip_menuboard.xsl | |
parent | 51e218e076e56ed94f8bb2e6b530883aee937b65 (diff) |
in progess
Diffstat (limited to 'docs/spip_menuboard.xsl')
-rw-r--r-- | docs/spip_menuboard.xsl | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/docs/spip_menuboard.xsl b/docs/spip_menuboard.xsl new file mode 100644 index 0000000..61eb4d8 --- /dev/null +++ b/docs/spip_menuboard.xsl @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + + <xsl:output + method="xml" + version="version" + omit-xml-declaration="yes" + standalone="no" + cdata-section-elements="namelist" + indent="yes"/> + + + <xsl:template match="/"> + + <article> + <id_article><xsl:value-of select="$article_id"/></id_article> + <id_rubrique><xsl:value-of select="$rubrique_id"/></id_rubrique> + <date><xsl:value-of select="$date"/></date> + <statut>publie</statut> + <id_secteur><xsl:value-of select="$section_id"/></id_secteur> + <maj>20041105212810</maj> + <export>oui</export> + <date_redac><xsl:value-of select="$date"/></date_redac> + <visites>0</visites> + <referers>0</referers> + <popularite>0</popularite> + <accepter_forum>non</accepter_forum> + <auteur_modif>1</auteur_modif> + <date_modif><xsl:value-of select="$date"/></date_modif> + <lang><xsl:value-of select="$language"/></lang> + <langue_choisie>oui</langue_choisie> + <id_trad><xsl:value-of select="$traduction_id"/></id_trad> + <nom_site></nom_site> + <url_site></url_site> + <extra></extra> + <idx>oui</idx> + <id_version>0</id_version> + <lien_auteur>1</lien_auteur> + <ps>none</ps> + + <xsl:for-each select="GComprisBoards/GCompris/Board[starts-with(@section,$section) and (substring-after(substring(@section,string-length($section)),'/')='')]"> + + <titre> + <xsl:variable name="tmptext" select="title[@xml:lang=$language]"/> + <xsl:if test="not($tmptext)"> + <xsl:value-of select="title"/> + </xsl:if> + <xsl:value-of select="$tmptext"/> + </titre> + + </xsl:for-each> + + <texte> + + <xsl:for-each select="GComprisBoards/GCompris/Board[starts-with(@section,$section) and (substring-after(substring(@section,string-length($section)),'/')='.')]"> + <!-- order the result by difficulty --> + <xsl:sort select="@difficulty" + data-type="number" + order="ascending"/> + + <HTML> + <IMG border="0" align="top"> + <xsl:attribute name="src"> + <xsl:value-of select="concat('screenshots/',@name)"/>.jpg</xsl:attribute> + <xsl:attribute name="alt"> + <xsl:variable name="tmptext" select="title[@xml:lang=$language]"/> + <xsl:if test="not($tmptext)"> + <xsl:value-of select="title"/> + </xsl:if> + <xsl:value-of select="$tmptext"/> + </xsl:attribute> + </IMG> + </HTML> + </xsl:for-each> + </texte> + </article> + </xsl:template> + +</xsl:stylesheet> + |