1 <?xml version="1.0" encoding="UTF-8"?>
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:z="http://indexdata.dk/zebra/xslt/1"
5 xmlns:marc="http://www.loc.gov/MARC21/slim"
8 <xsl:include href="http://www.loc.gov/marcxml/xslt/MARC21slimUtils.xsl"/>
9 <xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
11 <!-- disable all default text node output -->
12 <xsl:template match="text()"/>
14 <xsl:template match="/">
15 <xsl:if test="marc:collection">
17 <xsl:apply-templates select="marc:record"/>
20 <xsl:if test="marc:record">
21 <xsl:apply-templates select="marc:record"/>
26 <!-- match on marcxml record -->
27 <xsl:template match="marc:record">
28 <xsl:variable name="controlField001" select="marc:controlfield[@tag=001]"/>
29 <xsl:variable name="controlField008" select="marc:controlfield[@tag=008]"/>
30 <z:record id="{$controlField001}" type="update">
31 <!-- <xsl:attribute name="id"></xsl:attribute> -->
32 <!-- <xsl:attribute name="type">update</xsl:attribute> -->
33 <!-- <xsl:attribute name="rank"></xsl:attribute> -->