jaxp/src/com/sun/org/apache/xml/internal/serializer/TreeWalker.java
changeset 16953 a44e04deb948
parent 12457 c348e06f0e82
equal deleted inserted replaced
16416:bcebd3fdefc9 16953:a44e04deb948
    20 /*
    20 /*
    21  * $Id: TreeWalker.java,v 1.1.4.1 2005/09/08 10:58:44 suresh_emailid Exp $
    21  * $Id: TreeWalker.java,v 1.1.4.1 2005/09/08 10:58:44 suresh_emailid Exp $
    22  */
    22  */
    23 package com.sun.org.apache.xml.internal.serializer;
    23 package com.sun.org.apache.xml.internal.serializer;
    24 
    24 
       
    25 import com.sun.org.apache.xalan.internal.utils.SecuritySupport;
    25 import java.io.File;
    26 import java.io.File;
    26 
    27 
    27 import com.sun.org.apache.xml.internal.serializer.utils.AttList;
    28 import com.sun.org.apache.xml.internal.serializer.utils.AttList;
    28 import com.sun.org.apache.xml.internal.serializer.utils.DOM2Helper;
    29 import com.sun.org.apache.xml.internal.serializer.utils.DOM2Helper;
    29 import org.w3c.dom.Comment;
    30 import org.w3c.dom.Comment;
   102       if (systemId != null)
   103       if (systemId != null)
   103           m_locator.setSystemId(systemId);
   104           m_locator.setSystemId(systemId);
   104       else {
   105       else {
   105           try {
   106           try {
   106             // Bug see Bugzilla  26741
   107             // Bug see Bugzilla  26741
   107             m_locator.setSystemId(System.getProperty("user.dir") + File.separator + "dummy.xsl");
   108             m_locator.setSystemId(SecuritySupport.getSystemProperty("user.dir") + File.separator + "dummy.xsl");
   108            }
   109            }
   109            catch (SecurityException se) {// user.dir not accessible from applet
   110            catch (SecurityException se) {// user.dir not accessible from applet
   110            }
   111            }
   111       }
   112       }
   112 
   113 
   113       // Set the document locator
   114       // Set the document locator
   114                 if (m_contentHandler != null)
   115                 if (m_contentHandler != null)
   115                         m_contentHandler.setDocumentLocator(m_locator);
   116                         m_contentHandler.setDocumentLocator(m_locator);
   116                 try {
   117                 try {
   117                    // Bug see Bugzilla  26741
   118                    // Bug see Bugzilla  26741
   118                   m_locator.setSystemId(System.getProperty("user.dir") + File.separator + "dummy.xsl");
   119                   m_locator.setSystemId(SecuritySupport.getSystemProperty("user.dir") + File.separator + "dummy.xsl");
   119                 }
   120                 }
   120                 catch (SecurityException se){// user.dir not accessible from applet
   121                 catch (SecurityException se){// user.dir not accessible from applet
   121 
   122 
   122     }
   123     }
   123     m_dh = new DOM2Helper();
   124     m_dh = new DOM2Helper();