Rename xslt filter attribute 'field' to 'name'.
[idzebra-moved-to-github.git] / test / xslt / index.xsl
1 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2   xmlns:m="http://www.loc.gov/MARC21/slim"
3   xmlns:z="http://indexdata.dk/zebra/xslt/1"
4   version="1.0">
5   <!-- $Id: index.xsl,v 1.3 2005-06-15 15:30:05 adam Exp $ -->
6   <xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
7   
8   <xsl:template match="/m:record/m:controlfield[@tag=001]">
9     <z:index name="control">
10       <xsl:apply-templates match="."/>
11     </z:index>
12   </xsl:template>
13   
14   <xsl:template match="/m:record/m:datafield[@tag=245]">
15     <z:index name="title">
16       <xsl:apply-templates match="."/>
17     </z:index>
18   </xsl:template>
19   
20 </xsl:stylesheet>