Fix subject-long: Removed one letter too much. Formatting around namespaces
authorDennis Schafroth <dennis@indexdata.com>
Wed, 22 Feb 2012 13:04:01 +0000 (14:04 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Wed, 22 Feb 2012 13:04:01 +0000 (14:04 +0100)
etc/tmarc.xsl

index 2699003..8d658b9 100644 (file)
@@ -1,6 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
+  xmlns="http://www.indexdata.com/turbomarc"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+  xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
   xmlns:tmarc="http://www.indexdata.com/turbomarc">
 
   <xsl:output indent="yes" method="xml" version="1.0"
            </xsl:variable>
            <xsl:choose>
              <xsl:when test="substring($value,string-length($value)) = ','">
-               <xsl:value-of select="substring($value,0,string-length($value)-1)"/>
+               <xsl:value-of select="substring($value,0,string-length($value))"/>
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="$value"/>