[EMAIL PROTECTED] wrote:

Hi

I am quite new to Xalan and XSLT and Im having a few problems trying to transform an XML message using a simple XSLT file.

I have a char* inputMessage that contains the xml to be transformed. I am using an isstrstream to populate the XSLTInputSource. I am also using the compileStylesheet method, which is returning without error. I get the following error when I try the transformation:

Fatal Error.Occurred at unknown file , line 1 , column 2. Expected an element name

Ive tried stripping down the input msg to just a couple of tags, but still get the same error msg.

Any help or pointers would be much appreciated.


I would help to know the compiler and platform you're using. Also, please verify that if you create a file that contains the bytes you are tyring to parse, you can use an ifstream to read the document.

That error message is from the parser, and it indicates the parser thinks the bytes in the stream are not a well-formed XML document.

Dave

Reply via email to