f0745e8333f6d7db07701d0955de917a038afbea
[idzebra-moved-to-github.git] / examples / marcxml / zebra.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!-- 
4 $Id: zebra.xsl,v 1.2 2007-12-13 17:42:28 adam Exp $
5    Copyright (C) 1995-2006
6    Index Data ApS
7
8 This file is part of the Zebra server.
9
10 Zebra is free software; you can redistribute it and/or modify it under
11 the terms of the GNU General Public License as published by the Free
12 Software Foundation; either version 2, or (at your option) any later
13 version.
14
15 Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
16 WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
18 for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with Zebra; see the file LICENSE.zebra.  If not, write to the
22 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
23 02111-1307, USA.
24 -->
25
26 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
27                 xmlns:z="http://indexdata.com/zebra-2.0" 
28                 version="1.0">
29
30   <xsl:param name="id" select="''"/>
31   <xsl:param name="filename" select="''"/>
32   <xsl:param name="rank" select="''"/>
33   <xsl:param name="score" select="''"/>
34   <xsl:param name="schema" select="''"/>
35   <xsl:param name="size" select="''"/>
36
37   <xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
38
39   <!-- match on any record -->
40   <xsl:template match="/">
41     <z:info z:id="{$id}"
42             z:filename="{$filename}"
43             z:rank="{$rank}"
44             z:score="{$score}"
45             z:schema="{$schema}"
46             z:size="{$size}"/>
47   </xsl:template>
48
49 </xsl:stylesheet>