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