Old ISBN numbers only have 10 digits
diff --git a/xslt/epub2i5.xsl b/xslt/epub2i5.xsl
index 2238f50..acc916b 100644
--- a/xslt/epub2i5.xsl
+++ b/xslt/epub2i5.xsl
@@ -15,7 +15,7 @@
     <xsl:variable name="ev"/>
     <xsl:variable name="x"/>
 
-    <xsl:variable name="isbn" as="xs:string" select="replace(document-uri(), '.*([0-9]{13,}).*' , '$1')"/>
+    <xsl:variable name="isbn" as="xs:string" select="replace(document-uri(), '.*/([0-9]{9,13}X?).*' , '$1')"/>
 
 
     <xsl:variable name="dnbBookdata">