TenzoR schrieb am 01.09.2009 um 12:55:26 (-0700): > > My End Goal is to take XML Data, transform it with XSLT and split it > accordingly to multiple Java StringBuffer.
> So far what I've tried are > 1. Splitting inputted XML to multiple XML files using the Xalan > Redirect technique. > 2. Transform a XML file and outputting it to a StringBuffer. > > All test are simple, but I'm just not sure if it's feasible to do what > I want to do ... I'm not sure either, but then I'm not a Xalan expert. You might have to set up a URI resolver so that while you appear to be writing to files their URIs are resolved to your StringBuffer objects. http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/URIResolver.html Your output URIs might for example look like this: buffer://one/0 buffer://one/1 buffer://one/2 etc Where "one" might be the key to a map where there is an array of buffers. Your URI resolver must know how to do this mapping. (Which means in clear that you get to do some programming.) YMMV. -- Michael Ludwig