New indexing stylsheets for zebra
[koha.git] / misc / zebra / usmarc / koha2MARC21slimbiblios.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by T Garip (Near East University) -->
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.loc.gov/MARC21/slim" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNameSpaceSchemaLocation="http://library.neu.edu.tr/kohanamespace/KohaRecord.xsd" version="1.0" >
4         <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
5         <xsl:template match="/">
6          <xsl:if test="kohacollection">
7                 <collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd" xmlns="http://www.loc.gov/MARC21/slim">
8                         <xsl:for-each select="kohacollection/koharecord/record">
9                                 <record>
10                                         <xsl:apply-templates/>
11                                 </record>
12                         </xsl:for-each>
13                 </collection>
14                 </xsl:if>
15                  <xsl:if test="koharecord">
16                 <record xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd" xmlns="http://www.loc.gov/MARC21/slim">
17                                         <xsl:apply-templates select="koharecord/record"/>
18                 </record>
19                 </xsl:if>
20         </xsl:template>
21         
22         <xsl:template match="koharecord/record/node()">
23                 <xsl:copy-of select="."/>
24         </xsl:template>
25 </xsl:stylesheet>