X-Git-Url: http://git.indexdata.com/?p=mp-xquery-moved-to-github.git;a=blobdiff_plain;f=src%2Ftst.cpp;h=893be85a0ed1833052592ab84cc5cde10f0457d8;hp=f35415d68e460a109f3e00156b934fd9bc938d61;hb=cc6783d03572ccc2ebdf5b87dbb82e1cb3af0f11;hpb=8a91304f4b07a43344cbbe32234a74db74832222 diff --git a/src/tst.cpp b/src/tst.cpp index f35415d..893be85 100644 --- a/src/tst.cpp +++ b/src/tst.cpp @@ -37,7 +37,7 @@ example_2(Zorba* aZorba) // lQuery->setFileName("http://base/"); lQuery->setFileName("/home/adam/proj/marc2bibframe/xbin/"); - lQuery->compile(*qfile.get(), lHints); + lQuery->compile(*qfile, lHints); zorba::DynamicContext* lDynamicContext = lQuery->getDynamicContext(); @@ -57,7 +57,13 @@ example_2(Zorba* aZorba) "/home/adam/proj/yaz/test/marc7.xml"); lDynamicContext->setVariable("marcxmluri", lItem); - std::cout << lQuery << std::endl; + std::stringstream ss; + + lQuery->execute(ss); + + std::string result = ss.str(); + + std::cout << result << std::endl; return true; }