Xalanc Transformation Error: Could not determine base pathname of the file (, line 0, column 0)

StackOverflow https://stackoverflow.com/questions/22335635

Domanda

I've been kind of thrown into trying to figure out why this is failing in AIX. We make the following calls:

void
SAXParser::TransformFile()
{
    if(!mbPerformTransformation)
        return;

    XalanTransformer theXalanTransformer;

    // The assumption is that the executable will be run
    // from same directory as the input files.
    int theResult = theXalanTransformer.transform(mpcFileName, GetXSLTTransformationFileName(), TRANSFORMED_FILE_NAME);

    if(theResult != 0)
    {
        throw MyException( string("Xalanc Transformation Error: \n") + string(theXalanTransformer.getLastError()) );
    }
}

When I get in here, I can view the mpcFileName just fine as file.xml, however I'm getting the following error output when I attempt to call transform() on it:

XSLT Warning: Fatal Error.Occurred at unknown file, line 0, column 0. An exception occurred! Type:XMLPlatformException, Message:Could not determine base pathname of the file (line -1, column -1.)

and ultimately...

Xalanc Transformation Error: 
SAXParseException: An exception occurred! Type:XMLPlatformException, Message:Could not determine base pathname of the file (, line 0, column 0)

I have no clue what I'm doing... I can't debug the transform() method, so I'm not sure where to go from here. Any help is appreciated.

È stato utile?

Soluzione

The answer here did in fact turn out to be path related - I was just looking at the wrong path. The required files (param 2 and 3) were missing from the directory.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top