diff -Nur xalan-c-1.11-unpatched/c/src/xalanc/Include/XalanVector.hpp xalan-c-1.11-src/c/src/xalanc/Include/XalanVector.hpp
--- xalan-c-1.11-unpatched/c/src/xalanc/Include/XalanVector.hpp	2012-03-19 09:18:10 -0400
+++ xalan-c-1.11-src/c/src/xalanc/Include/XalanVector.hpp	2013-06-05 14:59:54 -0400
@@ -809,6 +809,9 @@
 
         if (&theRHS != this)
         {
+            if (empty() && theRHS.empty())
+                return *this;
+
             if (m_allocation < theRHS.m_size)
             {
                 ThisType    theTemp(theRHS,*m_memoryManager);
diff -Nur xalan-c-1.11-unpatched/c/src/xalanc/PlatformSupport/XalanLocator.hpp xalan-c-1.11-src/c/src/xalanc/PlatformSupport/XalanLocator.hpp
--- xalan-c-1.11-unpatched/c/src/xalanc/PlatformSupport/XalanLocator.hpp	2012-09-26 23:59:34 -0400
+++ xalan-c-1.11-src/c/src/xalanc/PlatformSupport/XalanLocator.hpp	2013-06-05 15:00:07 -0400
@@ -91,7 +91,7 @@
             const XalanDOMChar*     theAlternateId = getEmptyPtr())
     {
         return theLocator == 0 ? theAlternateId : (theLocator->getSystemId() ?
-            theLocator->getPublicId() : theAlternateId);
+            theLocator->getSystemId() : theAlternateId);
     }
 
     /**
