Update configuration to use custom update processor chain instead of copyField to...
[lui-solr.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     <xsl:if test="@type">
17       <field>
18         <xsl:attribute  name="name">
19           <xsl:value-of select="@type"/>
20         </xsl:attribute>
21         <xsl:value-of select="."/>
22       </field>
23     </xsl:if>
24   </xsl:template>
25 </xsl:stylesheet>