source: trunk/superbib01_txt.xsl

Last change on this file was 323, checked in by pinsard, 11 years ago

fix for XSL documentations

  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2<xsl:stylesheet
3xmlns:d="http://docbook.org/ns/docbook"
4xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5version="1.0">
6
7<!--rst
8
9.. _superbib01_txt.xsl:
10
11==================
12superbib01_txt.xsl
13==================
14
15DESCRIPTION
16===========
17
18transformation of a DocBook file into a text file eatable by bibopa.sh
19
20EXAMPLES
21========
22
23example pour test demo1
24
25.. code-block:: sh
26
27  xsltproc \-\-param makedate "'$(date -u +"%Y-%m-%dT%H:%M:%SZ")'" \
28  \-\-output /tmp/bibdemo1_dbk5.txt \
29  superbib01_txt.xsl data/bibdemo1_dbk5.xml
30  bibopa.sh -p demo1 -i /tmp/bibdemo1_dbk5.txt -t raw -l fr
31  diff biblio.xml data/bibdemo1_dbk5.xml
32
33EVOLUTIONS
34==========
35
36$Id$
37
38- fplod 2008-05-06T13:06:45Z aedon.locean-ipsl.upmc.fr (Darwin)
39
40  * reactivation to provide opposite action of bibopa.sh
41
42- fplod 2007-04-06T14:27:24Z zeus.locean-ipsl.upmc.fr (Linux)
43
44  * creation
45
46-->
47
48<!--
49<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
50-->
51
52<xsl:output method="text"
53encoding="ISO-8859-1"
54indent="yes"/>
55
56<xsl:include href="biblioentry_xml.xsl"/>
57
58<xsl:template match="d:bibliography">
59<xsl:text># update </xsl:text><xsl:value-of select="$makedate"/>
60<xsl:text>&#xA;</xsl:text>
61<xsl:for-each select="d:biblioentry">
62 <xsl:call-template name="one_biblioentry">
63 <xsl:with-param name="visu_modif" select="'visu'"/>
64 <xsl:with-param name="type" select="'raw'"/>
65 <xsl:with-param name="my_biblioentry" select="."/>
66</xsl:call-template>
67<xsl:text>&#xA;</xsl:text>
68
69</xsl:for-each>
70</xsl:template>
71</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.