Except that the istream cannot be const, there is no reason you cannot use
istreams as input to Xalan. Did you try and get an error?
See the StreamTransform sample, which shows how to do transformations to
and from iostreams.
Dave
"Endre Magyari"
<[EMAIL PROTECTED] To: <[EMAIL PROTECTED]>
> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: XalanTransformer::transform
question
11/26/2002 12:33
AM
Please respond
to xalan-dev
Dear List,
I would like to write two functions, both based on Xalan, with this
signatures:
XMIToUdm(const istream& in, ostream& out);
UdmToXMI(const istream& in, ostream& out);
The XSLT files for these functions are available in separate files.
(Udm2Xmi.xslt, Xmi2Udm.xslt).
I wonder how to do this? I've seen the source of the XalanTransformer, and
I have also seen that filenames are passed there to transform(), as char *
-s.
My questions:
- How gets a XalanParsedSource constructed from a char *
- How could I construct a XalanParsedSource from an istream,or is there an
other way ( other function) which accepts streams as input and output
arguments ?
Thank you,
Endre
Re: XalanTransformer::transform question
David N Bertoni/Cambridge/IBM Tue, 26 Nov 2002 08:39:56 -0800
- XalanTransformer::transform question Endre Magyari
- normalize-spaces() David N Bertoni/Cambridge/IBM
- normalize-spaces() Endre Magyari
