Hi Urmi,
I have no idea what a _wstream* is. Did you mean an instance of
std::wistream?
A byte stream cannot be an instance of a wstream, since the underlying unit
is a wide character. First, make sure your stream starts with the correct
byte-order mark, the document has the correct encoding declaration, and
initialize a strstream instance with a pointer to the beginning of the
stream and the length _in bytes_ of the stream. If you're being provided
with an instance of std::wistream, you'll need to provide something which
breaks down wide characters into bytes. The parser consumes only bytes.
By the way, all this assumes that when you say "Unicode byte stream" you
mean Unicode characters encoded in UTF-16. Is that correct?
Dave
"Chatterjee,
Urmi" To: [EMAIL PROTECTED]
<URMI.CHATTERJEE cc: (bcc: David N
Bertoni/Cambridge/IBM)
@ca.com> Subject: Creating an XSLTInputSource
for Unicode byte stream
04/18/2002 11:12
AM
Please respond
to xalan-dev
Hi,
I have just recently started using Xalan C++ (ver 1.3).
My problem is this. I need to transform xml data using
XalanTransformer::transform(), where my
input is a unicode byte stream in memory of type _wstream *, and the xsl
byte stream is also
a _wstream * type. However, I do not see an XSLTInputSource constructor
for
the same.
Can you please help me out on the best way to achieve the transformation.
Do
I need to use a transcoder of some sort? I have already built an ICU
enabled
build of Xalan.
Thanks in advance,
Urmi
