CWS-TOOLING: integrate CWS cmcfixes73
This commit is contained in:
commit
21124bf5df
2 changed files with 11 additions and 3 deletions
|
@ -78,6 +78,8 @@ import com.sun.star.uno.UnoRuntime;
|
|||
import com.sun.star.lib.uno.adapter.XInputStreamToInputStreamAdapter;
|
||||
import com.sun.star.lib.uno.adapter.XOutputStreamToOutputStreamAdapter;
|
||||
|
||||
import net.sf.saxon.FeatureKeys;
|
||||
|
||||
/** This outer class provides an inner class to implement the service
|
||||
* description, a method to instantiate the
|
||||
* component on demand (__getServiceFactory()), and a method to give
|
||||
|
@ -291,6 +293,9 @@ public class XSLTransformer
|
|||
// create new transformer for this stylesheet
|
||||
TransformerFactory tfactory = TransformerFactory.newInstance();
|
||||
debug("TransformerFactory is '" + tfactory.getClass().getName() + "'");
|
||||
// some external saxons (Debian, Ubuntu, ...) have this disabled
|
||||
// per default
|
||||
tfactory.setAttribute(FeatureKeys.ALLOW_EXTERNAL_FUNCTIONS, new Boolean(true));
|
||||
transformer = tfactory.newTransformer(new StreamSource(stylesheeturl));
|
||||
transformer.setOutputProperty("encoding", "UTF-8");
|
||||
// transformer.setURIResolver(XSLTransformer.this);
|
||||
|
|
|
@ -33,9 +33,6 @@ LIBTARGET=NO
|
|||
|
||||
# --- Settings -----------------------------------------------------
|
||||
CLASSDIR!:=$(CLASSDIR)$/$(TARGET)
|
||||
.IF "$(XML_CLASSPATH)" != ""
|
||||
XCLASSPATH+=":$(XML_CLASSPATH)"
|
||||
.ENDIF
|
||||
.INCLUDE: settings.mk
|
||||
|
||||
SLOFILES=$(SLO)$/XSLTFilter.obj $(SLO)$/fla.obj
|
||||
|
@ -68,6 +65,12 @@ JARCOMPRESS = TRUE
|
|||
JARCLASSDIRS = XSLTransformer*.class XSLTFilterOLEExtracter*.class
|
||||
JARTARGET = $(TARGET).jar
|
||||
|
||||
.IF "$(SYSTEM_SAXON)" == "YES"
|
||||
XCLASSPATH+=$(SAXON_JAR)
|
||||
.ELSE
|
||||
JARFILES += saxon9.jar
|
||||
.ENDIF
|
||||
|
||||
# --- Files --------------------------------------------------------
|
||||
JAVACLASSFILES=$(CLASSDIR)$/XSLTransformer.class $(CLASSDIR)$/XSLTFilterOLEExtracter.class
|
||||
.ENDIF
|
||||
|
|
Loading…
Reference in a new issue