pauldick 01/10/11 11:06:36
Modified: c/Tests/Params Params.cpp
Log:
Modified to run embed01 and embed02 tests as params07, 08
respectively
Revision Changes Path
1.10 +24 -2 xml-xalan/c/Tests/Params/Params.cpp
Index: Params.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/Tests/Params/Params.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- Params.cpp 2001/09/26 13:16:36 1.9
+++ Params.cpp 2001/10/11 18:06:36 1.10
@@ -238,7 +238,7 @@
{
XalanTransformer transformEngine;
-
+ bool embedFlag = false;
// Get the files found in the "params" directory
const XalanDOMString testDir("params");
@@ -293,6 +293,23 @@
XalanDOMString("'DATA'"));
break;
+ case 7:
+ {
+ const
XSLTInputSource embed07InputSource(c_wstr(theXSLFile));
+
transformEngine.transform(embed07InputSource, theResultTarget);
+
append(futil.data.testOrFile, " (Embed01)" );
+ embedFlag =
true;
+ break;
+ }
+
+ case 8:
+ {
+ const
XSLTInputSource embed08InputSource(c_wstr(theXSLFile));
+
transformEngine.transform(embed08InputSource, theResultTarget);
+
append(futil.data.testOrFile, " (Embed02)" );
+ embedFlag =
true;
+ break;
+ }
default:
transformEngine.setStylesheetParam(
XalanDOMString("input"),
@@ -300,8 +317,13 @@
break;
}
+
+
// Do a total end to end transform with
no pre parsing of either xsl or xml files.
-
transformEngine.transform(xmlInputSource, xslInputSource, theResultTarget);
+ if (!embedFlag)
+ {
+
transformEngine.transform(xmlInputSource, xslInputSource, theResultTarget);
+ }
// Check and report the results.
futil.checkResults(theOutputFile,
theGoldFile, logFile);
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
