This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sstream> | |
#include <stdio.h> | |
#include "../../Saxon.C.API/DocumentBuilder.h" | |
#include "../../Saxon.C.API/SaxonProcessor.h" | |
#include "../../Saxon.C.API/XdmArray.h" | |
#include "../../Saxon.C.API/XdmFunctionItem.h" | |
#include "../../Saxon.C.API/XdmItem.h" | |
#include "../../Saxon.C.API/XdmMap.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "../../Saxon.C.API/SaxonProcessor.h" | |
#include "../../Saxon.C.API/XdmArray.h" | |
#include "../../Saxon.C.API/XdmAtomicValue.h" | |
#include "../../Saxon.C.API/XdmFunctionItem.h" | |
#include "../../Saxon.C.API/XdmItem.h" | |
#include "../../Saxon.C.API/XdmMap.h" | |
#include "../../Saxon.C.API/XdmNode.h" | |
#include "../../Saxon.C.API/XdmValue.h" | |
#include "CppTestUtils.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "../../Saxon.C.API/SaxonProcessor.h" | |
#include "../../Saxon.C.API/XdmItem.h" | |
#include "../../Saxon.C.API/XdmNode.h" | |
#include "../../Saxon.C.API/XdmValue.h" | |
#include "CppTestUtils.h" | |
#include <string> | |
using namespace std; | |
// Test case on the evaluate method in XPathProcessor. Here we test that we have |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "../../Saxon.C.API/SaxonProcessor.h" | |
#include "../../Saxon.C.API/XdmNode.h" | |
#include "../../Saxon.C.API/XdmValue.h" | |
#include "CppTestUtils.h" | |
#include <string> | |
using namespace std; | |
void testValidator1(SaxonProcessor *processor, SchemaValidator *val, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tempfile import mkstemp | |
import pytest | |
from saxonc@@edition@@ import * | |
import os | |
from os.path import isfile | |
from datetime import datetime as date | |
@pytest.fixture | |
def saxonproc(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> /* defines FILENAME_MAX */ | |
#if defined(__APPLE__) || defined __linux__ | |
#include <unistd.h> | |
#define GetCurrentDir getcwd | |
#else | |
#include <direct.h> | |
#define GetCurrentDir _getcwd | |
#endif | |
#include "../../Saxon.C.API/SaxonCProcessor.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "../../Saxon.C.API/SaxonCProcessor.h" | |
#include <stdio.h> /* defines FILENAME_MAX */ | |
#if defined(__APPLE__) || defined __linux__ | |
#include <unistd.h> | |
#define GetCurrentDir getcwd | |
#else | |
#include <direct.h> | |
#define GetCurrentDir _getcwd | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "../../Saxon.C.API/SaxonCXPath.h" | |
#include <stdio.h> /* defines FILENAME_MAX */ | |
#if defined(__APPLE__) || defined __linux__ | |
#include <unistd.h> | |
#define GetCurrentDir getcwd | |
#else | |
#include <direct.h> | |
#define GetCurrentDir _getcwd | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set graalvmdir=..\..\Saxon.C.API\graalvm | |
cl /EHsc "-I%graalvmdir%" testXPath.cpp ../../Saxon.C.API/SaxonCGlue.c ../../Saxon.C.API/SaxonCXPath.c ../../Saxon.C.API/SaxonProcessor.cpp ../../Saxon.C.API/XdmValue.cpp ../../Saxon.C.API/XdmItem.cpp ../../Saxon.C.API/XdmAtomicValue.cpp ../../Saxon.C.API/DocumentBuilder.cpp ../../Saxon.C.API/XdmNode.cpp ../../Saxon.C.API/XdmFunctionItem.cpp ../../Saxon.C.API/XdmArray.cpp ../../Saxon.C.API/XdmMap.cpp ../../Saxon.C.API/SaxonApiException.cpp ../../Saxon.C.API/XQueryProcessor.cpp ../../Saxon.C.API/Xslt30Processor.cpp ../../Saxon.C.API/XsltExecutable.cpp ../../Saxon.C.API/XPathProcessor.cpp ../../Saxon.C.API/SchemaValidator.cpp /link ..\..\libs\win\libsaxon-@@edition@@c-@@VERSION@@.lib | |
cl /EHsc "-I%graalvmdir%" testXSLT30.cpp ../../Saxon.C.API/SaxonCGlue.c ../../Saxon.C.API/SaxonCXPath.c ../../Saxon.C.API/SaxonProcessor.cpp ../../Saxon.C.API/XdmValue.cpp ../../Saxon.C.API/XdmItem.cpp ../../Saxon.C.API/XdmAtomicValue.cpp ../../Saxon.C.API/DocumentBuilder.cpp ../../Saxo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SaxonProcessor * saxonProc = new SaxonProcessor(true); | |
try { | |
proc->setCatalog("../data/catalog.xml"); | |
Xslt30Processor *trans = saxonProc->newXslt30Processor(); | |
XsltExecutable *executable = trans->compileFromFile("../data/example.xsl"); | |
executable->setInitialMatchSelectionAsFile("../data/example.xml"); | |
const char *result = executable->applyTemplatesReturningString(); | |
if (result != NULL) { | |
std::cerr << "result= " << result << std::endl; |
OlderNewer