[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: RE: supposed timing problem
To wrap-up my thread, once I knew that my problem wasn't XSL-related, I
turned to the Xalan bug database and found what appears to be the problem
I've encountered. Bug 5609 is still open and says:
Initial report (28-Dec-2001): When using a single Transformer object to transform multiple XML documents, if the XSLT contains a global <xsl:variable> declaration, the variable will be assigned a value from the first transformation that occurs. This value will then be applied to all subsequent transformations even though the value initially assigned the variable was from a separate XML document. Follow-up (2-Jan-2002): A work around for this was to make the global variables local and pass them around to the templates where they were used. This workaround has worked for me in version 2_2_D10 but the following is a stack trace received when running the same scenario under 2_2_D14. javax.xml.transform.TransformerException: java.lang.NullPointerException ... Follow-up (7-Jan-2002): OK, is it just me, or is re-using transformers totally broken today (07-Jan-02)? TestID: Bugzilla5609.java Running the new Bugzilla5609.java test the first transform runs fine but the second one always throws an exception: javax.xml.transform.TransformerException: java.lang.NullPointerException ... I'm convinced this is my problem, as I'm re-using a transformer, Sun's XML Pack uses 2_2_D14, and I'm getting the same NullPointerException. Now, on to debugging Xalan... Thanks. Jay -----Original Message----- From: Jay Burgess [mailto:jburgess@xxxxxxxxxxxxxx] Sent: Wednesday, January 30, 2002 10:48 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: supposed timing problem
BTW, I'm using Xalan from Sun's Java XML Pack (Winter 2001). Everything seemed to work fine before changing the version of Xalan. I'll be back if I have more questions. Jay -----Original Message----- From: Michael Kay [mailto:michael.h.kay@xxxxxxxxxxxx] Sent: Wednesday, January 30, 2002 10:39 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: supposed timing problem
Which processor are you using? If you suspect a processor bug, the first thing to do is to try another processor. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|