curcuru 01/06/25 07:37:45
Modified: test/java/src/org/apache/qetest/xsl StylesheetTestlet.java
Log:
Pass our Datalet's options onto underlying TransformWrapper;
other Testlet implementations should also do this
This allows automatic support of new TransformWrapper.setAttribute() feature
Revision Changes Path
1.4 +7 -2
xml-xalan/test/java/src/org/apache/qetest/xsl/StylesheetTestlet.java
Index: StylesheetTestlet.java
===================================================================
RCS file:
/home/cvs/xml-xalan/test/java/src/org/apache/qetest/xsl/StylesheetTestlet.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- StylesheetTestlet.java 2001/06/21 19:19:36 1.3
+++ StylesheetTestlet.java 2001/06/25 14:37:42 1.4
@@ -89,7 +89,7 @@
* as different processing models, like SAX, DOM or Streams).
*
* @author [EMAIL PROTECTED]
- * @version $Id: StylesheetTestlet.java,v 1.3 2001/06/21 19:19:36 curcuru
Exp $
+ * @version $Id: StylesheetTestlet.java,v 1.4 2001/06/25 14:37:42 curcuru
Exp $
*/
public class StylesheetTestlet extends TestletImpl
{
@@ -163,7 +163,12 @@
try
{
transformWrapper =
TransformWrapperFactory.newWrapper(datalet.flavor);
- transformWrapper.newProcessor(null);
+ // Set our datalet's options as options in the wrapper
+ //@todo this is inefficient, since our datalet may
+ // have many options that don't pertain to the wrapper,
+ // but it does allow users to simply pass new options
+ // without us having to change code
+ transformWrapper.newProcessor(datalet.options);
}
catch (Throwable t)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]