dbertoni    01/01/03 11:28:13

  Modified:    c/src/TestXSLT process.cpp
  Log:
  Make the XalanSourceTree the default for transforms, with an option to use 
the Xerces DOM.
  
  Revision  Changes    Path
  1.51      +9 -19     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.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- process.cpp       2000/12/15 23:25:55     1.50
  +++ process.cpp       2001/01/03 19:28:11     1.51
  @@ -221,7 +221,7 @@
                 << endl
                 << " [-PARAM name expression (Sets a stylesheet parameter.)]"
                 << endl
  -              << " [-XST Use XSLT source tree instead of Xerces DOM]"
  +              << " [-XD Use Xerces DOM instead of Xalan source tree.]"
                 << endl
                 << endl
                 << "The following options are valid only with -HTML or -XML."
  @@ -272,7 +272,7 @@
        bool doValidation;
        bool noIndent;
        bool formatToNull;
  -     bool useXST;
  +     bool useDOM;
        int indentAmount;
        int outputType;
        CharVectorType outFileName;
  @@ -297,7 +297,7 @@
                doValidation(false),
                noIndent(false),
                formatToNull(false),
  -             useXST(false),
  +             useDOM(false),
                indentAmount(-1),
                outputType(-1),
                outFileName(),
  @@ -538,9 +538,9 @@
                {
                        p.traceTemplateChildren = true;
                }
  -             else if (!stricmp("-XST", argv[i]))
  +             else if (!stricmp("-XD", argv[i]))
                {
  -                     p.useXST = true;
  +                     p.useDOM = true;
                }
                else
                {
  @@ -711,7 +711,7 @@
                XercesDOMSupport&                       theXercesDOMSupport,
                const CmdLineParams&            params)
   {
  -     if (params.useXST == true)
  +     if (params.useDOM == false)
        {
                return theXalanSourceTreeDOMSupport;
        }
  @@ -729,7 +729,7 @@
                XercesParserLiaison&                    theXercesParserLiaison,
                const CmdLineParams&                    params)
   {
  -     if (params.useXST == true)
  +     if (params.useDOM == false)
        {
                return theXalanSourceTreeParserLiaison;
        }
  @@ -798,9 +798,9 @@
        XPathSupportDefault                             
theXPathSupport(theDOMSupport);
        XSLTProcessorEnvSupportDefault  theXSLProcessorSupport;
   
  -     XObjectFactoryDefault                   theXObjectFactory;
  +     XObjectFactoryDefault   theXObjectFactory;
   
  -     XPathFactoryDefault theXPathFactory;
  +     XPathFactoryDefault             theXPathFactory;
   
        const XalanAutoPtr<TraceListener>               theTraceListener(
                        createTraceListener(
  @@ -916,7 +916,6 @@
                rTreeTarget.setFormatterListener(formatter.get());
        }
   
  -
        // Do the transformation...
        XSLTInputSource         theInputSource(c_str(params.inFileName));
   
  @@ -1041,15 +1040,6 @@
   #if defined(XALAN_VQ_SPECIAL_TRACE)
        QuantifyStopRecordingData();
   #endif
  -
  -   /**
  -      * Command line interface to transform the XML according to 
  -      * the instructions found in the XSL document.
  -      *              -in inputXMLURL
  -      *              -xsl XSLTransformationURL
  -      *              -out outputFileName
  -      *              -F (Format output pretty-printed)
  -      */
   
        XMLPlatformUtils::Initialize();
   
  
  
  

Reply via email to