Project

Profile

Help

Revision f299305b

Added by O'Neil Delpratt 5 months ago

Saxon/C development

View differences:

src/main/c/samples/cppTests/testXSLT30.cpp
1137 1137

  
1138 1138
    trans->compileFromFileAndSave("test.xsl", "test1a.sef");
1139 1139

  
1140
    if(trans->exceptionOccurred()) {
1141
        const char *message = trans->getErrorMessage();
1142
        if (message != NULL) {
1143
            cout << "Error message =" << message << endl;
1144
        }
1145
        sresult->failure++;
1146
        sresult->failureList.push_back("testPackage1a");
1147
        trans->exceptionClear();
1148
        return;
1149
    }
1150

  
1151

  
1152

  
1140 1153
    XsltExecutable * executable = trans->compileFromFile("test1.sef");
1141 1154
    executable->setInitialMatchSelectionAsFile("cat.xml");
1142 1155
    const char * output = executable->applyTemplatesReturningString();

Also available in: Unified diff