source: trunk/SRC/Documentation/xmldoc/all_plots_docbook.xsl @ 186

Last change on this file since 186 was 139, checked in by pinsard, 18 years ago

modification of some .xml (add Id, aspell checking), add style.css file and titlepage technique

  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1<?xml version="1.0" encoding="iso-8859-1" ?>
2<!--
3module :
4generation of a docbook file for display all plots of firtsteps.xml
5
6original location :
7++/Documentation/xmldoc/all_plots_docbook.xsl
8
9update :
10en cours de map
11fplod 2006-05-17T09:59:52Z aedon.lodyc.jussieu.fr (Darwin)
12-->
13
14<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
15
16<xsl:output 
17 method="xml" 
18 indent="yes" 
19 encoding="iso-8859-1"
20 omit-xml-declaration="no"
21 doctype-public="-//OASIS//DTD DocBook XML V4.2//EN"
22 doctype-system="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"/>
23
24 <xsl:template match="article"> 
25  <article id="all_plots" lang="en">
26  <title>All plots of SAXO demo</title>
27    <articleinfo>
28    <authorgroup>
29      <author><firstname>Sébastien</firstname> <surname>Masson</surname> <email>smasson_at_lodyc.jussieu.fr</email></author>
30      <author><firstname>Françoise</firstname> <surname>Pinsard</surname> <email>Francoise.Pinsard_at_lodyc.jussieu.fr</email></author>
31    </authorgroup>
32    <keywordset>
33      <keyword>idl</keyword>
34      <keyword>SAXO</keyword>
35    </keywordset>
36    </articleinfo>
37    <sect1 id="intro">
38    <title>Introduction</title>
39    <para>
40      This page gathers all plots used in <ulink url="firststeps.html?format=raw">firststeps</ulink> and display them in one unique page to facilitate the search of plots examples.
41    </para>
42    </sect1>
43    <sect1 id="allplots">
44    <title>All plots</title>
45
46<!-- for all ulink where url is something .png
47plot it with the title of the closest ancestor which have an id attibutes
48-->
49<xsl:for-each select="self::node()/descendant-or-self::node()/child::ulink[contains(@url,'png')]">
50  <xsl:sort order="ascending" data-type="text" select="@url"/>
51  <xsl:call-template name="plot">
52      <xsl:with-param name="url" select="@url"/>
53      <xsl:with-param name="id" select="(ancestor-or-self::node()/@id)[last()]"/>
54      <xsl:with-param name="title" select="(ancestor-or-self::node()/title)[last()]"/>
55  </xsl:call-template>
56</xsl:for-each>
57  </sect1>
58  </article>
59 </xsl:template> 
60
61    <xsl:template name="plot"> 
62        <xsl:param name="url"/> 
63        <xsl:param name="id"/> 
64        <xsl:param name="title"/> 
65        <xsl:element name="para">
66        <xsl:element name="mediaobject">
67            <xsl:element name="imageobject">
68                <xsl:element name="imagedata">
69                    <xsl:attribute name="fileref"><xsl:value-of select="$url"/></xsl:attribute>
70                    <xsl:attribute name="format">PNG</xsl:attribute>
71                    <xsl:attribute name="valign">top</xsl:attribute>
72                </xsl:element>
73            </xsl:element>
74        </xsl:element>
75        <xsl:element name="textobject">
76            <xsl:element name="phrase">
77                [plot <xsl:value-of select="substring-before($url,'?format=raw')"/>]
78            </xsl:element>
79        </xsl:element>
80        <xsl:element name="caption">
81            <xsl:element name="para">
82            cf. <xsl:element name="ulink">
83<!--
84                    <xsl:attribute name="url">firststeps.html#<xsl:value-of select="$id"/></xsl:attribute>
85-->
86                    <xsl:attribute name="url">firststeps.html?format=raw#<xsl:value-of select="$id"/></xsl:attribute>
87                <xsl:value-of select="$title"/>
88                </xsl:element>
89                <xsl:text>in First steps with SAXO</xsl:text> <!--++ récupérer le titre de l'article -->
90            </xsl:element>
91        </xsl:element>
92        </xsl:element>
93    </xsl:template> 
94
95</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.