I have been looking for an answer to this problem all day. I am creating a stylesheet for a moderate-sized XML document (~ 1.5 MB, ~ 1000 elements), which causes me a lot of problems. This is about creating a graph of events and timelines for various process equipment installations. XML is created through the SAP MII QueryTempalte thingy and is in the format / Rowsets / Rowset / Row. All this data is processed and stored in the local node-set, in the format / Equipments / Equipment / Event. This node-set is then processed in HTML and then displayed in the browser. Now I'm in trouble. I can easily retrieve data from the last 5 days, which leads to ~ 900 rows of data from MII and is processed in my node format, which leads to a little less than 900 lines. But the second, I hit 1017 lines from MII, the stylesheet will only display half the path, and then the exception “No more DTM identifiers are available” stops. Now only JDK 1.5.x is running on the MII server, and I read that this could be a problem - just the thing, I can do nothing about it. So now I ask: is there a way to optimize my code? I linked some links for my XSL and XML sample.
XSL: http://pastie.org/1566517 Samlpe XML: http://pastie.org/1566522
Now the XML sample may not produce any “fun” visual results and may not be able to replicate the error. But if anyone could detect obvoius optimization, I would love to know :) I thought it would be nice to replace / move the calculations for startOffset, endOffset, etc., but I can’t figure out how to do this.
Hope someone can help me! :)
source share