Pazpar2 1.4.4-2 for squeeze
[pazpar2-moved-to-github.git] / etc / pz2-solr.xsl
1 <?xml version="1.0"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
3                 xmlns:pz="http://www.indexdata.com/pazpar2/1.0" >
4   <xsl:template  match="/">
5     <add>
6       <xsl:apply-templates></xsl:apply-templates>
7     </add>
8   </xsl:template>
9
10   <xsl:template match="pz:record">
11     <doc>
12       <xsl:apply-templates></xsl:apply-templates>
13     </doc>
14   </xsl:template>
15   <xsl:template match="pz:metadata">
16     <field>
17       <xsl:attribute  name="name">
18         <xsl:value-of select="@type"/>
19       </xsl:attribute>
20         <xsl:value-of select="."/>
21     </field>
22   </xsl:template>
23 </xsl:stylesheet>