Set the base URL of the source.  If the systemID is not set in the
Source object, try and use the URL of the stylesheet.  If that is
null also, use the user.dir property.  Part of the fop codegen
fix.

diff --git a/src/org/apache/xalan/transformer/TransformerImpl.java b/src/org/apache/xalan/transformer/TransformerImpl.java
index 83d4ff7..7511d1d 100644
--- a/src/org/apache/xalan/transformer/TransformerImpl.java
+++ b/src/org/apache/xalan/transformer/TransformerImpl.java
@@ -564,6 +564,23 @@
 
     try
     {
+      String base = source.getSystemId();
+      
+      // If no systemID of the source, use the base of the stylesheet.
+      if(null == base)
+      {
+        base = m_stylesheetRoot.getBaseIdentifier();
+      }
+
+      // As a last resort, use the current user dir.
+      if(null == base)
+      {
+        String currentDir = System.getProperty("user.dir");
+
+        base = "file:///" + currentDir + java.io.File.separatorChar
+                 + source.getClass().getName();
+      }
+      setBaseURLOfSource(base);
       DTMManager mgr = m_xcontext.getDTMManager();
       DTM dtm = mgr.getDTM(source, false, this, true, true);
       boolean hardDelete = true;  // %REVIEW% I have to think about this. -sb