dbertoni 01/01/15 18:41:19
Modified: c/src/TestXSLT process.cpp
Log:
Option to use either XalanSourceTree or Xerces DOM for result tree fragments.
Revision Changes Path
1.53 +11 -2 xml-xalan/c/src/TestXSLT/process.cpp
Index: process.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/TestXSLT/process.cpp,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- process.cpp 2001/01/08 18:19:26 1.52
+++ process.cpp 2001/01/16 02:41:19 1.53
@@ -220,6 +220,8 @@
<< endl
<< " [-XST (Use source tree formatter. Formats to Xalan
source tree, then formats XML for output.)]"
<< endl
+ << " [-DRTF (Use the Xerces DOM for generating Result Tree
Fragments, instead of the Xalan source tree.]"
+ << endl
<< " [-PARAM name expression (Sets a stylesheet parameter.)]"
<< endl
<< " [-XD Use Xerces DOM instead of Xalan source tree.]"
@@ -275,6 +277,7 @@
bool formatToNull;
bool formatToSourceTree;
bool useDOM;
+ bool useDOMForRTFs;
int indentAmount;
int outputType;
CharVectorType outFileName;
@@ -300,6 +303,7 @@
noIndent(false),
formatToNull(false),
useDOM(false),
+ useDOMForRTFs(false),
formatToSourceTree(false),
indentAmount(-1),
outputType(-1),
@@ -520,6 +524,10 @@
p.formatToSourceTree = true;
}
+ else if(!stricmp("-DRTF", argv[i]))
+ {
+ p.useDOMForRTFs = true;
+ }
else if(!stricmp("-NULL", argv[i]))
{
p.formatToNull = true;
@@ -678,7 +686,7 @@
}
else
{
- formatter = new
FormatterToDOM(parserLiaison.getDOMFactory(), 0);
+ formatter = new
FormatterToDOM(parserLiaison.createDOMFactory(), 0);
}
}
@@ -947,6 +955,8 @@
theDOMSupport,
theXObjectFactory);
+ theExecutionContext.setUseDOMResultTreeFactory(params.useDOMForRTFs);
+
#if defined(XALAN_USE_ICU)
ICUBridgeCollationCompareFunctor theICUFunctor;
@@ -1096,7 +1106,6 @@
CmdLineParams theParams;
-
/*
* Get command line arguments
*/