#include #include #include #include #include "src/read_file_command.h" int main() { xercesc::XMLPlatformUtils::Initialize(); xalan::XalanTransformer::initialize(); const xalan::XalanDOMString customNamespace( "http://ExternalFunction.xalan-c++.xml.apache.org" ); xalan::XalanTransformer transformer; transformer.installExternalFunction( customNamespace, xalan::XalanDOMString("read-file"), FunctionFileRead() ); xalan::XSLTInputSource input("../dummy/in.xml"); xalan::XSLTInputSource tranformation("../dummy/transform.xsl"); xalan::XSLTResultTarget output("out.xml"); int result(transformer.transform( input, tranformation, output )); xalan::XalanTransformer::terminate(); return result; }