DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15222>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15222

XalanTransformer::transform doesn't work in interim-2002-10-21





------- Additional Comments From [EMAIL PROTECTED]  2002-12-11 16:42 -------
I am sorry. The previous example does work in the interim release. The problem 
was solved after a computer restart.
But there is stil a problem with transform().
transform(theInputSource,"foo.xsl","foo.out") where theInputSource is an 
XSLTInputSource built from a Xerces document fails.
theXalanTransformer.getLastError() returns "An exception occurred! 
Type:RuntimeException, Message:The primary document entity could not be opened. 
Id={null}"
The 'theInputSource' is built this way:

DOMDocument* doc = GetXMLDOMDocument();
XalanTransformer::initialize();
        
XercesDOMSupport   theDOMSupport;
XercesParserLiaison     theParserLiaison(theDOMSupport);
XalanDocument* theDoc = theParserLiaison.createDocument(doc);

XSLTInputSource theInputSource(theDoc);

XalanTransformer theXalanTransformer;

theResult = theXalanTransformer.transform(theInputSource,"foo.xsl","foo.out");
if(theResult!=0)// theResult here is 0xfffffffe
{
        CString err(theXalanTransformer.getLastError());
        err.GetBuffer(0);
}
XalanTransformer::terminate();

I am using Xerces 2.1 release and MSVC++ 6.0 SP 5 without Dinkumware patches 
because I couldn't apply them to the SP 5 STL files. I think it would be 
appropriate to move to SP 5, most of the developers are allways up to date.

And finally: How to find out if a XalanDocument or XSLTInputSource where 
created correctely? Is there any test? Does a valid pointer shows that this 
object is good to work?

Thank you.

Reply via email to