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 |
---|
3 | xmlns:d="http://docbook.org/ns/docbook" |
---|
4 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
---|
5 | version="1.0"> |
---|
6 | |
---|
7 | <!-- |
---|
8 | module : |
---|
9 | transformation of a DocBook file into a BibTeX file |
---|
10 | |
---|
11 | example 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 | |
---|
18 | update : |
---|
19 | $Id$ |
---|
20 | not finished |
---|
21 | fplod 2008-05-13T15:12:47Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
22 | creation |
---|
23 | --> |
---|
24 | |
---|
25 | <!-- |
---|
26 | <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/> |
---|
27 | --> |
---|
28 | |
---|
29 | <xsl:output method="text" |
---|
30 | encoding="ISO-8859-1" |
---|
31 | indent="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>
</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>
</xsl:text> |
---|
45 | |
---|
46 | </xsl:for-each> |
---|
47 | </xsl:template> |
---|
48 | </xsl:stylesheet> |
---|
Note: See
TracBrowser
for help on using the repository browser.