mmidy 01/01/25 13:35:27
Modified: java/compat_src/org/apache/xalan/xslt XSLTEngineImpl.java
Log:
Make sure we use the existing stylesheet if there is one
Revision Changes Path
1.14 +6 -5
xml-xalan/java/compat_src/org/apache/xalan/xslt/XSLTEngineImpl.java
Index: XSLTEngineImpl.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/compat_src/org/apache/xalan/xslt/XSLTEngineImpl.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- XSLTEngineImpl.java 2001/01/25 20:46:03 1.13
+++ XSLTEngineImpl.java 2001/01/25 21:35:26 1.14
@@ -432,6 +432,11 @@
{
error(XSLTErrorResources.ER_NO_INPUT_STYLESHEET); //"Stylesheet
input was not specified!");
}
+
+ if (m_stylesheetRoot != null)
+ {
+ templates = m_stylesheetRoot.getObject();
+ }
if(null == templates)
{
@@ -1301,11 +1306,7 @@
public void message(Node styleNode, Node sourceNode, String msg)
throws SAXException
{
- //boolean shouldThrow = m_processor.getErrorHandler().message(msg);
- //if(shouldThrow)
- //{
- // throw new XSLProcessorException(msg);
- //}
+ m_problemListener.message(msg);
}
/**