source: trunk/superbib02_txt.xsl @ 76

Last change on this file since 76 was 66, checked in by pinsard, 16 years ago

implemenation of xml to bibtex transformation (superbib02_txt.xsl). reverse is not yet correctly done

  • Property svn:keywords set to Id
File size: 1.3 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<!--
8module :
9transformation of a DocBook file into a BibTeX file
10
11example pour test demo1
12$ xsltproc \-\-param makedate "'$(date -u +"%Y-%m-%dT%H:%M:%SZ")'" \
13  \-\-output /tmp/bibdemo1_dbk5.bib \
14  superbib02_txt.xsl data/bibdemo1_dbk5.xml
15$ ./bibopa.sh -p demo1 -i /tmp/bibdemo1_dbk5.bib -t bibtex -l fr
16$ diff biblio.xml data/bibdemo1_dbk5.xml
17
18update :
19$Id$
20not finished
21fplod 2008-05-13T15:12:47Z aedon.locean-ipsl.upmc.fr (Darwin)
22creation
23-->
24
25<!--
26<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
27-->
28
29<xsl:output method="text"
30encoding="ISO-8859-1"
31indent="yes"/>
32
33<xsl:include href="biblioentry_xml.xsl"/>
34
35<xsl:template match="d:bibliography">
36<xsl:text>% update </xsl:text><xsl:value-of select="$makedate"/>
37<xsl:text>&#xA;</xsl:text>
38<xsl:for-each select="d:biblioentry">
39 <xsl:call-template name="one_biblioentry">
40 <xsl:with-param name="visu_modif" select="'visu'"/>
41 <xsl:with-param name="type" select="'bibtex'"/>
42 <xsl:with-param name="my_biblioentry" select="."/>
43</xsl:call-template>
44<xsl:text>&#xA;</xsl:text>
45
46</xsl:for-each>
47</xsl:template>
48</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.