forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <>
Subject How can I create a w3c nodeset for xsl without DOM?
Date Mon, 04 Feb 2008 23:52:01 GMT
Hi all,

recent threads have shown the dispatcher needs to reduce memory usage.

One impact is the usage of <forrest:property> in contracts:
// It seems that the only way to pass a xml file to a xsl as param
// is as DOM
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
for (Iterator iter = param.keySet().iterator(); iter.hasNext();) {
  String key = (String);
  File value = (File) param.get(key);
  transformer.setParameter(key, builder.parse(value));

Meaning, having many properties has a negative effect on memory consumption.

Is there a more memory less approach to pass properties to the xsl?

Thorsten Scherler                       
Open Source Java                      consulting, training and solutions

View raw message