src/com/sun/org/apache/xalan/internal/xsltc/runtime/AbstractTranslet.java

Print this page

        

*** 21,30 **** --- 21,31 ---- * $Id: AbstractTranslet.java,v 1.6 2006/06/19 19:49:03 spericas Exp $ */ package com.sun.org.apache.xalan.internal.xsltc.runtime; + import com.sun.org.apache.xalan.internal.XalanConstants; import com.sun.org.apache.xalan.internal.utils.FactoryImpl; import java.io.File; import java.io.FileOutputStream; import java.io.BufferedOutputStream; import java.text.DecimalFormat;
*** 108,117 **** --- 109,123 ---- // This is the name of the index used for ID attributes private final static String ID_INDEX_NAME = "##id"; private boolean _useServicesMechanism; + /** + * protocols allowed for external references set by the stylesheet processing instruction, Document() function, Import and Include element. + */ + private String _accessExternalStylesheet = XalanConstants.EXTERNAL_ACCESS_DEFAULT; + /************************************************************************ * Debugging ************************************************************************/ public void printInternalState() { System.out.println("-------------------------------------");
*** 756,765 **** --- 762,785 ---- */ public void setServicesMechnism(boolean flag) { _useServicesMechanism = flag; } + /** + * Return allowed protocols for accessing external stylesheet. + */ + public String getAllowedProtocols() { + return _accessExternalStylesheet; + } + + /** + * Set allowed protocols for accessing external stylesheet. + */ + public void setAllowedProtocols(String protocols) { + _accessExternalStylesheet = protocols; + } + /************************************************************************ * DOMImplementation caching for basis library ************************************************************************/ protected DOMImplementation _domImplementation = null;