Jason Johnston wrote:
>>
>> ¿How can we get the stream into the pipeline? OR ¿is there a better
>> way to do it?
>
>
1.
> One possible approach might be to use the ModuleSource[1] in your
> map:generate to access the XML using an input module. If you can get
> the InputStream onto the request as a request attribute then you can do
> something like:
>
> <map:generate src="module:request-attr:requestAttributeName" />
>
2.
> Or if you're coming from flowscript you can use the flow-attr: module. I
> use this technique quite a bit.
>
>
or 3:
If you're not using flow and are happy to stick this into a plain
generator :
public void generate() throws .... {
XMLReader parser =
XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
parser.setContentHandler(this.contentHandler);
parser.parse(new InputSource(yourInputStreamHere);
}
Lots of possibilities really ;-)
HTH
Jorg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]