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

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

remove format=raw in all html files 2+ : correction for all_plots; suppression of css and correction of Source links in idldoc html output

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