This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
XSL parameters blocked in Xalan
- To: "XSL-List" <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] XSL parameters blocked in Xalan
- From: "Monte Hayward" <monte at singingfish dot com>
- Date: Tue, 20 Mar 2001 14:24:49 -0800
- Reply-To: xsl-list at lists dot mulberrytech dot com
Whenever an error or stack trace is produced in my Java console window, subsequent efforts to set parameters in my Xalan XSLT
processor fail. This occurs with Xalan-J1.
/** abbreviated JavaBean source code */
public class XsltBean extends Object{
/** the XSLTProcessor */
private static org.apache.xalan.xslt.XSLTProcessor processor;
public void setStylesheetParam(String name, String expression){
processor.setStylesheetParam(name,expression);
}
}
Since the Bean is shared by different Servlets and JSP pages, they set params such as URI and rowsPerPage right before each
transform. This works fine until there is any kind of error, such as an unrelated NullPointerException or a schema validation
message. Then the very next parameter set fails. After that, parameter setting will work again until the next Java error message.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list