You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Avula, Raj" <RA...@firstam.com> on 2002/02/13 05:15:45 UTC

XSLTInputSource with Xalan1.3

	Hi,

	I have downloaded Xalan1.3C++ for AIX 4.3/xlC5.
	(I have not build the library).
	I am getting compilation error while creating XSLTInputSource (for
XML).
	using the following code(becuase XALAN_NO_NAMESPACES was not set):-
	istrstream is( a_sXMLStr, strlen(a_sXMLStr));
	XSLTInputSource theInputSource (&is); //ERROR
	error:An object of type "XSLTInputSource" cannot be constructed from
an rvalue of type "istrstream *".

	But If I use the following code compilation goes through, but
transform method is dumping core.
	 istrstream is( a_sXMLStr, strlen(a_sXMLStr));
	XSLTInputSource theInputSource ((std::istream*)&is);

	core:
	arning: could not locate trace table from starting address 0x0
	ipfx__Q2_3std13basic_istreamXTcTQ2_3std11char_traitsXTc__Fb() at
0xda2d23ec
	get__Q2_3std13basic_istreamXTcTQ2_3std11char_traitsXTc__Fv() at
0xda2d21f0
	readBytes__17StdBinInputStreamFCPUcCUi() at 0xda2d2164
	refreshRawBuffer__9XMLReaderFv() at 0xd9f545bc
	
__ct__9XMLReaderFCPCUsCPCUsCP14BinInputStreamCQ2_9XMLReader7RefFromCQ2_9XMLR
eader5TypesCQ2_9XMLReader7SourcesCb() at 0xd9f54438
	
createReader__9ReaderMgrFRC11InputSourceCbCQ2_9XMLReader7RefFromCQ2_9XMLRead
er5TypesCQ2_9XMLReader7Sources() at 0xd9f321c0
	scanReset__10XMLScannerFRC11InputSource() at 0xd9ffda9c
	scanDocument__10XMLScannerFRC11InputSourceCb() at 0xd9f8f198
	parse__17SAX2XMLReaderImplFRC11InputSource() at 0xda03d844
	
parseXMLStream__28XalanSourceTreeParserLiaisonFRC11InputSourceRC14XalanDOMSt
ring() at 0xda476c04
	
__ct__24XalanDefaultParsedSourceFRC15XSLTInputSourcebP12ErrorHandlerP14Entit
yResolver() at 0xda525f44
	
parseSource__16XalanTransformerFRC15XSLTInputSourceRPC17XalanParsedSourceb()
at 0xda51a6e0
	
transform__16XalanTransformerFRC15XSLTInputSourcePC23XalanCompiledStylesheet
RC16XSLTResultTarget() at 0xda51a4ac
	unnamed block $b6, line 71 in "CTransformImpl.cc"
	unnamed block $b5, line 71 in "CTransformImpl.cc"
	CTransformImpl::transformImpl(const char*)(this = warning: Unable to
access address 0x218 from core
	0xffffffff, a_sXMLStr = warning: Unable to access address 0x21c from
core
	warning: Unable to access address 0xffffffff from core
	(invalid char ptr (0xffffffff))), line 71 in "CTransformImpl.cc"
	theThread(void*)(iThCount = (nil)), line 19 in "CTestTransform.cc"
	pthread._pthread_body(??) at 0xd00080c8


	But If I use 
	XSLTInputSource theInputSource ("birds.xml");

	transformation goes through fine.

	Please let me know where I am doing wrong.

	Thanks,
	Raj..
	 


	 

"MMS <firstam.com>" made the following
 annotations on 02/12/02 20:17:04
------------------------------------------------------------------------------
"THIS E-MAIL MESSAGE AND ANY FILES TRANSMITTED HEREWITH, ARE INTENDED SOLELY FOR THE USE OF THE INDIVIDUAL(S) ADDRESSED AND MAY CONTAIN CONFIDENTIAL, PROPRIETARY OR PRIVILEGED INFORMATION.  IF YOU ARE NOT THE ADDRESSEE INDICATED IN THIS MESSAGE (OR RESPONSIBLE FOR DELIVERY OF THIS MESSAGE TO SUCH PERSON) YOU MAY NOT REVIEW, USE, DISCLOSE OR DISTRIBUTE THIS MESSAGE OR ANY FILES TRANSMITTED HEREWITH.  IF YOU RECEIVE THIS MESSAGE IN ERROR, PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND DELETE THIS MESSAGE AND ALL COPIES OF IT FROM YOUR SYSTEM."

==============================================================================