XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Dana PearsonSubject: 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




Unknownextract_school_collections_v4.xsl
stylesheet

Postnext
Dana PearsonSubject: identity template, result-document, javalangOutofMemoryError
Author: Dana Pearson
Date: 25 Jul 2015 08:11 PM
another try to attach the source file and external XML file


Unknownatlanta_schools_markup.xml
external xml file

Postnext
Dana PearsonSubject: identity template, result-document, javalangOutofMemoryError
Author: Dana Pearson
Date: 25 Jul 2015 08:16 PM
source didn't appear to be uploading so selected the smallest one of 18 vs 35 MB

Postnext
Dana PearsonSubject: identity template, result-document, javalangOutofMemoryError
Author: Dana Pearson
Date: 25 Jul 2015 08:23 PM
well, source file appeared to uploading this time but when it appeared to have completed, I get an error. I'll try once more and then if not attached, anyone interested can request the file via email.

regards,
Dana

Postnext
Ivan PedruzziSubject: identity template, result-document, javalangOutofMemoryError
Author: Ivan Pedruzzi
Date: 30 Jul 2015 03:47 AM

After discussing offline we came up with a XML Pipeline based approach which scale on any catalog size.

Will report back when we have the final result.

Ivan Pedruzzi
Stylus Studio Team

Posttop
Dana PearsonSubject: identity template, result-document, javalangOutofMemoryError
Author: Dana Pearson
Date: 31 Jul 2015 12:51 PM
Ivan, you are amazing...that works perfectly!

Only know the rudiments of XQuery so what a great opportunity to dig deeper. This will also give me the opportunity to learn more about pipeline.

So, I get a solution AND a beckoning path to these two topics.

At this point, I cannot be surprised when you exceed my expectations.

Really above and beyond!

Many thanks,
Dana Pearson

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.