<?xml version="1.0" encoding="UTF-8"?>
-<!-- xsltproc MARC21slim2INDEX.xsl collection-2.xml -->
-
<!--
-$Id: MARC21slim2INDEX.xsl,v 1.5 2006-06-09 20:46:38 marc Exp $
+$Id: MARC21slim2INDEX.xsl,v 1.6 2007-12-13 17:42:28 adam Exp $
Copyright (C) 1995-2006
Index Data ApS
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:z="http://indexdata.dk/zebra/xslt/1"
+ xmlns:z="http://indexdata.com/zebra-2.0"
xmlns:marc="http://www.loc.gov/MARC21/slim"
version="1.0">
- <!-- <xsl:include href="MARC21slimUtils.xsl"/> -->
<xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
<!-- disable all default text node output -->
</xsl:choose>
</xsl:variable>
- <z:record id="{$controlField001}" type="update">
+ <z:record z:id="{$controlField001}" type="update">
<!-- <xsl:attribute name="id"></xsl:attribute> -->
-->
<xsl:template name="Abstract">
<xsl:for-each select="marc:datafield[@tag='520']">
- <z:index name="Abstract" type="w">
+ <z:index name="Abstract:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
| marc:datafield[@tag='800']
| marc:datafield[@tag='810']
| marc:datafield[@tag='811']">
- <z:index name="Author" type="w">
+ <z:index name="Author:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag='100']">
- <z:index name="Author" type="p">
+ <z:index name="Author:p">
<xsl:value-of select="marc:subfield[@code='a']"/>
<xsl:text> </xsl:text>
<xsl:value-of select="marc:subfield[@code='d']"/>
<xsl:template name="Author-title">
<xsl:if test="marc:datafield[@tag='100']
and marc:datafield[@tag='245']">
- <z:index name="Author-title" type="p">
+ <z:index name="Author-title:p">
<xsl:value-of
select="marc:datafield[@tag='100']/marc:subfield[@code='a']"/>
<xsl:text> </xsl:text>
-->
<xsl:template name="Author-name-corporate">
<xsl:for-each select="marc:datafield[@tag='110']">
- <z:index name="Author-name-corporate" type="w">
+ <z:index name="Author-name-corporate:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
-->
<xsl:template name="Author-name-conference">
<xsl:for-each select="marc:datafield[@tag='111']">
- <z:index name="Author-name-conference" type="w">
+ <z:index name="Author-name-conference:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
<xsl:template name="Author-name-personal">
<xsl:for-each select="marc:datafield[@tag='100']">
<xsl:for-each select="marc:subfield[@code='a']">
- <z:index name="Author-name-personal" type="w">
+ <z:index name="Author-name-personal:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag='100']">
- <z:index name="Author-name-personal" type="p">
+ <z:index name="Author-name-personal:p">
<xsl:value-of select="marc:subfield[@code='a']"/>
<xsl:text> </xsl:text>
<xsl:value-of select="marc:subfield[@code='d']"/>
-->
<xsl:template name="ISBN">
<xsl:for-each select="marc:datafield[@tag='020']/marc:subfield[@code='a']">
- <z:index name="ISBN" type="n">
+ <z:index name="ISBN:n">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
-->
<xsl:template name="ISSN">
<xsl:for-each select="marc:datafield[@tag='022']">
- <z:index name="ISSN" type="n">
+ <z:index name="ISSN:n">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
|marc:datafield[@tag='655']
|marc:datafield[@tag='656']
|marc:datafield[@tag='657']">
- <z:index name="Subject-heading" type="w">
+ <z:index name="Subject-heading:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
|marc:datafield[@tag='650']
|marc:datafield[@tag='651']
|marc:datafield[@tag='653']">
- <z:index name="Subject-heading" type="w">
+ <z:index name="Subject-heading:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
-->
<xsl:template name="Title">
<xsl:for-each select="marc:datafield[@tag='245']/marc:subfield[@code='a']">
- <z:index name="Title" type="w">
+ <z:index name="Title:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+$Id: dom-config.xml,v 1.1 2007-12-13 17:42:28 adam Exp $
+ Copyright (C) 1995-2006
+ Index Data ApS
+
+This file is part of the Zebra server.
+
+Zebra is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with Zebra; see the file LICENSE.zebra. If not, write to the
+Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
+-->
+<dom>
+ <extract name="index">
+ <xslt stylesheet="MARC21slim2INDEX.xsl"/>
+ </extract>
+ <retrieve name="marc">
+ <xslt stylesheet="identity.xsl" />
+ </retrieve>
+ <retrieve name="dc">
+ <xslt stylesheet="MARC21slim2SRWDC.xsl"/>
+ </retrieve>
+ <retrieve name="index">
+ <xslt stylesheet="MARC21slim2INDEX.xsl"/>
+ </retrieve>
+ <retrieve name="mads">
+ <xslt stylesheet="MARC21slim2MADS.xsl"/>
+ </retrieve>
+ <retrieve name="mods">
+ <xslt stylesheet="MARC21slim2MODS3-1.xsl"/>
+ </retrieve>
+ <retrieve name="zebra">
+ <xslt stylesheet="zebra.xsl"/>
+ </retrieve>
+ <input syntax="xml">
+ <xmlreader level="1"/>
+ </input>
+</dom>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-\r
-<!-- \r
-$Id: filter_alvis_conf.xml,v 1.5 2006-06-09 20:46:38 marc Exp $\r
- Copyright (C) 1995-2006\r
- Index Data ApS\r
-\r
-This file is part of the Zebra server.\r
-\r
-Zebra is free software; you can redistribute it and/or modify it under\r
-the terms of the GNU General Public License as published by the Free\r
-Software Foundation; either version 2, or (at your option) any later\r
-version.\r
-\r
-Zebra is distributed in the hope that it will be useful, but WITHOUT ANY\r
-WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
-FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\r
-for more details.\r
-\r
-You should have received a copy of the GNU General Public License\r
-along with Zebra; see the file LICENSE.zebra. If not, write to the\r
-Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA\r
-02111-1307, USA.\r
--->\r
-\r
-<schemaInfo>\r
- <schema name="dc" default="1" stylesheet="MARC21slim2SRWDC.xsl" />\r
- <schema name="index" identifier="http://indexdata.dk/zebra/xslt/1"\r
- stylesheet="MARC21slim2INDEX.xsl" />\r
- <schema name="mads" stylesheet="MARC21slim2MADS.xsl" />\r
- <schema name="marc" stylesheet="identity.xsl" />\r
- <schema name="mods" stylesheet="MARC21slim2MODS3-1.xsl" />\r
- <schema name="zebra" stylesheet="zebra.xsl" />\r
- <split level="1"/> \r
-</schemaInfo>\r
-\r