/
nourl-bibtexml.xsl
55 lines (43 loc) · 1.73 KB
/
nourl-bibtexml.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="UTF-8" ?>
<!-- $Id: bibxml2mods32.xsl 338 2007-08-27 17:27:58Z ringler $
(c) Moritz Ringler, 2007
XSLT stylesheet that converts bibtexml to bibtexml
removing dois, urls, eprints.
I wrote this style-sheet to generate bib files for revtex.
(c) Moritz Ringler, 2007
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-->
<xsl:transform version="2.0"
xmlns:bibtex="http://bibtexml.sf.net/"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:foo="http://foo/bar/baz"
exclude-result-prefixes="bibtex xs foo">
<xsl:param name="doiproxy" select="'http://dx.doi.org/'" as="xs:string"/>
<xsl:output
method="xml"
indent="yes"
version="1.0"/>
<!-- Document root -->
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="bibtex:doi|bibtex:url|bibtex:eprint">
</xsl:template>
<xsl:template match="*|text()|@*">
<xsl:copy>
<xsl:apply-templates select="@*" />
<xsl:apply-templates />
</xsl:copy>
</xsl:template>
</xsl:transform>