Xalanc转换错误:无法确定文件的基本路径名(,第0,第0列)



我一直在尝试弄清楚为什么在AIX中失败。我们拨打以下电话:

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()) );
    }
}

当我进入这里时,我可以将mpcFileName视为file.xml,但是当我尝试在其上调用transform()时,我会收到以下错误输出:

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.)

最终...

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

我不知道自己在做什么...我无法调试transform()方法,所以我不确定从这里去哪里。任何帮助都将不胜感激。

此处的答案实际上确实与路径相关 - 我只是在看错误路径。目录中缺少所需的文件(参数2和3)。

最新更新