|
next
|
Subject: identity template, result-document, javalangOutofMemoryError Author: Dana Pearson Date: 25 Jul 2015 08:08 PM
|
I'm selecting a school's records from a school district's library collection of records based on a code for a school in a datafield/subfield. Something best suited to SQL but they lack the skills.
With an XML file with the code and name of the school, I am attempting what might be impossible: a stylesheet that creates 74 result documents based on a match of the school code in the aforementioned subfield and the external XML document.
If the task were to simply select records for one school, the conditional and identity template work fine.
The attempt to generate the file name for the xsl:result-document is likely failing but I get no useful feedback. Only the java out of memory error: java heap space.
If this is something that can be done, I think it's a matter of context but I have only one, the MARCXML record in the template in question. So, current version of the stylesheet uses a for-each to set the value of the variable for the file name to be used in the href attribute of the result-document element.
There is of course a very time consuming way to do this and I'm doing it now but would like to know whether even possible.
I'll attach the source file (actually only 10,000 records of 270K+), the external XML file and the stylesheet.
thanks,
Dana Pearson
extract_school_collections_v4.xsl stylesheet
|
|
|
|