It looks like you're not processing the input in streaming mode. If you get a "building tree" message for a file, that means it's not streaming.
I don't feel I have a complete picture of what you are doing here, so it's hard to see where it's going wrong. Could you try to provide a complete explanation starting at the beginning: what source files and stylesheets are there, what does your Java application do? If necessary bundle it all together and send it to us - we'd rather have too much information than not enough.
On 13 May 2013, at 13:14, David Rudel wrote:
I decided to RTFM and noticed that [timing = "true"] is equivalent to -t.
Strangely, the both gave similar outputs. The only difference I could see was that the "saxon:stream" version sometimes took a long time toward the end presumably because it was running out of RAM.
Here is an example of the output:
Tree built in 10 milliseconds
Tree size: 4120 nodes, 25 characters, 11376 attributes
Writing to file:/C:/Users/Drudel/Desktop/SVN_Testing/bryan_elementary_school_pro
Building tree for file:/C:/Users/Drudel/Desktop/SVN_Testing/bryan_elementary_sch
ool_processed_05_10_13/SY_2012-2013/Grade_2/EGarcia_599999_1st_S.xml using class
It looks like neither version is actually streaming the document because the "<stint>" element has only a few attributes, not 11376. Here is a sample of the top of a typical file:
<stint type="Original" SY="2012" grade="2" operation="A" fact.extractor.file="ZZZ-XXX.xml" start.date="2012-09-05" end.date="2013-05-08">
<session assignment="Adding and Subtracting 0 - 10">
There is only one <stint> element in the entire file, and it is the first child of the <student> element. So I don't see why the processor is building the whole tree when all I'm asking for are the attributes.
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/