nmake: align with pazpar2 WRT icu/libxslt
[idzebra-moved-to-github.git] / test / xslt / index.xsl
index 2fbecb3..78cb6d3 100644 (file)
@@ -1,8 +1,8 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:m="http://www.loc.gov/MARC21/slim"
   xmlns:z="http://indexdata.dk/zebra/xslt/1"
+  exclude-result-prefixes="m z"
   version="1.0">
-  <!-- $Id: index.xsl,v 1.5 2005-08-18 12:50:19 adam Exp $ -->
   <xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
   
 
@@ -19,7 +19,7 @@
 
   <xsl:template match="m:controlfield[@tag='001']">
     <z:index name="control">
-      <xsl:value-of select="."/>
+      <xsl:value-of select="normalize-space(.)"/>
     </z:index>
   </xsl:template>