Frank,
Thanks for your report. The issue will be researched.
Sincerely,
Steven J. Hathaway
> Hi Steven,
>
> unfortunately I don't have the time to get involved in the Xalan-C
> project.
>
> However, I stumbled over a bug in Xalan-C 1.11 and was able to fix it. I
> got an access violation when calling XalanTransformer::transform if the
> xslt was invalid.
>
> I could track the problem down to this code in XalanLocator.hpp:
>
> static const XalanDOMChar*
> getSystemId(
> const Locator* theLocator,
> const XalanDOMChar* theAlternateId = getEmptyPtr())
> {
> return theLocator == 0 ? theAlternateId :
> (theLocator->getSystemId() ?
> theLocator->getPublicId() : theAlternateId);
> }
>
> it should be:
>
> static const XalanDOMChar*
> getSystemId(
> const Locator* theLocator,
> const XalanDOMChar* theAlternateId = getEmptyPtr())
> {
> return theLocator == 0 ? theAlternateId :
> (theLocator->getSystemId() ?
> theLocator->getSystemId() : theAlternateId);
> }
>
> Cheers
> Frank
>
>