source: trunk/docs/manual/for_tracwiki/titleindex.xsl @ 2

Last change on this file since 2 was 2, checked in by pinsard, 9 years ago

add tools and procedure for checking typo

  • Property svn:mime-type set to application/xml
File size: 1.5 KB
Line 
1<?xml version="1.0" encoding="iso-8859-1"?>
2<xsl:stylesheet
3version="1.0"
4xmlns:xhtml="http://www.w3.org/1999/xhtml"
5xmlns:xl="http://www.w3.org/1999/xlink"
6xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
7
8<!--rst
9
10..  _titleindex.xsl:
11
12==============
13titleindex.xsl
14==============
15
16DESCRIPTION
17===========
18
19get all URI of pages from a TitleIndex page (tracwiki)
20
21EXAMPLES
22========
23
24To get all wiki pages URI of http://forge.ipsl.jussieu.fr/ under
25'platform/en/documentation':
26
27.. code-block:: bash
28
29   xsltproc \-\-novalid titleindex.xsl http://forge.ipsl.jussieu.fr/igcmg_doc/wiki/TitleIndex
30
31SEE ALSO
32========
33
34:mod:`tracwiki_rst.py`
35
36TODO
37====
38
39EVOLUTIONS
40==========
41
42- fplod 20150709T123551Z callisto.locean-ipsl.upmc.fr (Linux)
43
44  * replace igcm by igcm_doc
45  * replace wiki searchable class by titleindex
46
47- fplod 20131127T103644Z halios.locean-ipsl.upmc.fr (Darwin)
48
49  * creation because xmlstarlet no installed on ciclad
50    to replace (missing class titleindex filter ++)
51
52    .. code-block:: bash
53
54       xmlstarlet sel \-\-html -T -t -m "//*[local-name()='a']" \
55      -v @href -n TitleIndex
56-->
57
58<xsl:output
59method="text"
60encoding="utf-8"
61omit-xml-declaration="yes"
62indent="no"/>
63
64<xsl:template match="/">
65<xsl:apply-templates select="//xhtml:div[@class='titleindex']"/>
66</xsl:template>
67
68<xsl:template match="xhtml:div[@class='titleindex']">
69    <xsl:apply-templates select="//xhtml:a"/>
70</xsl:template>
71
72<xsl:template match="xhtml:a">
73   <xsl:value-of select="@href"/>
74   <xsl:text>&#xA;</xsl:text>
75</xsl:template>
76</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.