Rename xslt filter attribute 'field' to 'name'.
[idzebra-moved-to-github.git] / test / xslt / index.xsl
index b607239..01eb4ac 100644 (file)
@@ -2,17 +2,17 @@
   xmlns:m="http://www.loc.gov/MARC21/slim"
   xmlns:z="http://indexdata.dk/zebra/xslt/1"
   version="1.0">
-  <!-- $Id: index.xsl,v 1.2 2005-06-07 13:10:52 adam Exp $ -->
+  <!-- $Id: index.xsl,v 1.3 2005-06-15 15:30:05 adam Exp $ -->
   <xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
   
   <xsl:template match="/m:record/m:controlfield[@tag=001]">
-    <z:index field="control">
+    <z:index name="control">
       <xsl:apply-templates match="."/>
     </z:index>
   </xsl:template>
   
   <xsl:template match="/m:record/m:datafield[@tag=245]">
-    <z:index field="title">
+    <z:index name="title">
       <xsl:apply-templates match="."/>
     </z:index>
   </xsl:template>