We fixed a bug in Sablotron 0.36, reported by Robin Berjon. Sablotron
crashed if a default namespace was used. I attach a patch solving the
problem, it is to be applied to parser.cpp:
patch Sablot/parser.cpp < Sablot-0.36-patch-1

Tom Kaiser
--- parser.cpp.old      Tue May 30 22:58:18 2000
+++ parser.cpp  Mon Jun 05 07:44:05 2000
@@ -192,7 +192,7 @@
         Warn1(W1_OLD_NS_USED, (char*)uri)
     else
     {
-        if (!strcmp(prefix,"xsl") && !(theXSLTNamespace == uri))
+        if (prefix && !strcmp(prefix,"xsl") && !(theXSLTNamespace == uri))
             Warn1(W1_XSL_NOT_XSL, (char*)uri);
     }
 }

Reply via email to