Project

Profile

Help

Revision f6a712eb

Added by O'Neil Delpratt almost 6 years ago

SAxon/C update to sample xslt file

View differences:

latest9.6/hec/samples/cppTests/testXSLT.cpp
360 360

  
361 361
void exampleSimple1(XsltProcessor  *proc){
362 362
		cout<<"ExampleSimple1 taken from PHP:"<<endl;
363
                proc->setSourceFromFile("../php/trax/xml/foo.xml");
364
                proc->compileFromFile("../php/trax/xsl/foo.xsl");
363
                proc->setSourceFromFile("../php/xml/foo.xml");
364
                proc->compileFromFile("../php/xsl/foo.xsl");
365 365
  	              
366 366
                const char *result = proc->transformToString();               
367 367
		if(result != NULL) {               
......
402 402

  
403 403
  void exampleSimple2(XsltProcessor  *proc){
404 404
		cout<<"<b>exampleSimple2:</b><br/>"<<endl;
405
                proc->setSourceFromFile("../php/trax/xml/foo.xml");
406
                proc->compileFromFile("../php/trax/xsl/foo.xsl");
405
                proc->setSourceFromFile("../php/xml/foo.xml");
406
                proc->compileFromFile("../php/xsl/foo.xsl");
407 407
                const char * filename = "output1.xml";
408 408
		proc->setOutputFile(filename);
409 409
                proc->transformToFile();
......
434 434

  
435 435
void exampleParam(SaxonProcessor * saxonProc, XsltProcessor  *proc){
436 436
                cout<< "\nExampleParam:</b><br/>"<<endl;
437
		proc->setSourceFromFile("../php/trax/xml/foo.xml");
438
                proc->compileFromFile("../php/trax/xsl/foo.xsl");
437
		proc->setSourceFromFile("../php/xml/foo.xml");
438
                proc->compileFromFile("../php/xsl/foo.xsl");
439 439
            
440 440
		XdmAtomicValue * xdmvalue = saxonProc->makeStringValue("Hello to you");
441 441
		if(xdmvalue !=NULL){

Also available in: Unified diff