equal
deleted
inserted
replaced
20 /* |
20 /* |
21 * $Id: TreeWalker.java,v 1.2.4.1 2005/09/15 08:15:59 suresh_emailid Exp $ |
21 * $Id: TreeWalker.java,v 1.2.4.1 2005/09/15 08:15:59 suresh_emailid Exp $ |
22 */ |
22 */ |
23 package com.sun.org.apache.xml.internal.utils; |
23 package com.sun.org.apache.xml.internal.utils; |
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 org.w3c.dom.Comment; |
28 import org.w3c.dom.Comment; |
28 import org.w3c.dom.Element; |
29 import org.w3c.dom.Element; |
29 import org.w3c.dom.EntityReference; |
30 import org.w3c.dom.EntityReference; |
91 if (systemId != null) |
92 if (systemId != null) |
92 m_locator.setSystemId(systemId); |
93 m_locator.setSystemId(systemId); |
93 else { |
94 else { |
94 try { |
95 try { |
95 // Bug see Bugzilla 26741 |
96 // Bug see Bugzilla 26741 |
96 m_locator.setSystemId(System.getProperty("user.dir") + File.separator + "dummy.xsl"); |
97 m_locator.setSystemId(SecuritySupport.getSystemProperty("user.dir") + File.separator + "dummy.xsl"); |
97 } |
98 } |
98 catch (SecurityException se) {// user.dir not accessible from applet |
99 catch (SecurityException se) {// user.dir not accessible from applet |
99 } |
100 } |
100 } |
101 } |
101 m_dh = dh; |
102 m_dh = dh; |
110 { |
111 { |
111 this.m_contentHandler = contentHandler; |
112 this.m_contentHandler = contentHandler; |
112 m_contentHandler.setDocumentLocator(m_locator); |
113 m_contentHandler.setDocumentLocator(m_locator); |
113 try { |
114 try { |
114 // Bug see Bugzilla 26741 |
115 // Bug see Bugzilla 26741 |
115 m_locator.setSystemId(System.getProperty("user.dir") + File.separator + "dummy.xsl"); |
116 m_locator.setSystemId(SecuritySupport.getSystemProperty("user.dir") + File.separator + "dummy.xsl"); |
116 } |
117 } |
117 catch (SecurityException se){// user.dir not accessible from applet |
118 catch (SecurityException se){// user.dir not accessible from applet |
118 } |
119 } |
119 m_dh = dh; |
120 m_dh = dh; |
120 } |
121 } |
129 this.m_contentHandler = contentHandler; |
130 this.m_contentHandler = contentHandler; |
130 if (m_contentHandler != null) |
131 if (m_contentHandler != null) |
131 m_contentHandler.setDocumentLocator(m_locator); |
132 m_contentHandler.setDocumentLocator(m_locator); |
132 try { |
133 try { |
133 // Bug see Bugzilla 26741 |
134 // Bug see Bugzilla 26741 |
134 m_locator.setSystemId(System.getProperty("user.dir") + File.separator + "dummy.xsl"); |
135 m_locator.setSystemId(SecuritySupport.getSystemProperty("user.dir") + File.separator + "dummy.xsl"); |
135 } |
136 } |
136 catch (SecurityException se){// user.dir not accessible from applet |
137 catch (SecurityException se){// user.dir not accessible from applet |
137 |
138 |
138 } |
139 } |
139 m_dh = new DOM2Helper(); |
140 m_dh = new DOM2Helper(); |