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