--- a/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/compiler/XSLTC.java Thu Apr 12 08:38:26 2012 -0700
+++ b/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/compiler/XSLTC.java Tue Apr 17 11:17:59 2012 -0700
@@ -131,11 +131,13 @@
*/
private boolean _isSecureProcessing = false;
+ private boolean _useServicesMechanism = true;
+
/**
* XSLTC compiler constructor
*/
- public XSLTC() {
- _parser = new Parser(this);
+ public XSLTC(boolean useServicesMechanism) {
+ _parser = new Parser(this, useServicesMechanism);
}
/**
@@ -151,6 +153,19 @@
public boolean isSecureProcessing() {
return _isSecureProcessing;
}
+ /**
+ * Return the state of the services mechanism feature.
+ */
+ public boolean useServicesMechnism() {
+ return _useServicesMechanism;
+ }
+
+ /**
+ * Set the state of the services mechanism feature.
+ */
+ public void setServicesMechnism(boolean flag) {
+ _useServicesMechanism = flag;
+ }
/**
* Only for user by the internal TrAX implementation.
@@ -230,6 +245,12 @@
public void setTemplateInlining(boolean templateInlining) {
_templateInlining = templateInlining;
}
+ /**
+ * Return the state of the template inlining feature.
+ */
+ public boolean getTemplateInlining() {
+ return _templateInlining;
+ }
/**
* Set the parameters to use to locate the correct <?xml-stylesheet ...?>