You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dl...@locus.apache.org on 2000/08/29 19:15:01 UTC

cvs commit: xml-xalan/c/xdocs/sources/xalan commandline.xml extensions.xml samples.xml usagepatterns.xml

dleslie     00/08/29 10:14:59

  Modified:    c/xdocs  DoxyfileXalan
               c/xdocs/sources/xalan commandline.xml extensions.xml
                        samples.xml usagepatterns.xml
  Log:
  Updates for version 1
  
  Revision  Changes    Path
  1.5       +1 -1      xml-xalan/c/xdocs/DoxyfileXalan
  
  Index: DoxyfileXalan
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/xdocs/DoxyfileXalan,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DoxyfileXalan	2000/05/12 17:57:05	1.4
  +++ DoxyfileXalan	2000/08/29 17:14:47	1.5
  @@ -204,7 +204,7 @@
   # directories like "/usr/src/myproject". Separate the files or directories 
   # with spaces.
   
  -INPUT  = ../src/DOMSupport ../src/ICUBridge ../src/Include ../src/PlatformSupport ../src/TestXSLT  ../src/XalanDOM  ../src/XercesInit  ../src/XercesParserLiaison  ../src/XercesPlatformSupport  ../src/XMLSupport  ../src/XPath  ../src/XSLT
  +INPUT  = ../src/DOMSupport ../src/ICUBridge ../src/Include ../src/PlatformSupport ../src/TestXSLT  ../src/XalanDOM  ../src/XercesParserLiaison  ../src/XercesPlatformSupport  ../src/XMLSupport  ../src/XPath  ../src/XSLT
   
   # If the value of the INPUT tag contains directories, you can use the 
   # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp 
  
  
  
  1.6       +8 -1      xml-xalan/c/xdocs/sources/xalan/commandline.xml
  
  Index: commandline.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/xdocs/sources/xalan/commandline.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- commandline.xml	2000/06/29 20:13:18	1.5
  +++ commandline.xml	2000/08/29 17:14:54	1.6
  @@ -82,10 +82,12 @@
   -XSL XSLTransformationURL
   -OUT outputFileName
   -ESCAPE chars(Which characters to escape -- default is <>&"'\r\n)
  +-EER (Expand entity references --default is not to expand)
   -V (Version info)
   -QC (Quiet Pattern Conflicts Warnings)
   -Q  (Quiet Mode)
   -INDENT (Number of spaces to indent each level in output tree --default is 0)
  +-VALIDATE (Validate the XSL and XML input -- default is not to validate)
   -TT (Trace the templates as they are being called)
   -TG (Trace each result tree generation event)
   -TS (Trace each selection event)
  @@ -93,7 +95,12 @@
   -XML (Use XML formatter and add XML header)
   -TEXT (Use simple Text formatter)
   -HTML (Use HTML formatter)
  --NH (Don't write XML header. Only works with -HTML flag set.)
  +The -XML flag must be set:
  +  -NH (Don't write XML header)
  +The -XML or -HTML flag must be set:
  +  -STRIPCDATA (Strip CDATA sections of their brackets, but do not escape)
  +  -ESCAPECDATA (Strip CDATA sections of their brackets, and escape)
  +-DOM (Test for well-formed output --format to DOM then to XML for output)
   -PARAM name expression (Set a stylesheet parameter)</source>
         <p>Use -IN to specify the XML source document.</p> 
         <p>Use -XSL to specify the XSL stylesheet file.</p>
  
  
  
  1.5       +22 -1     xml-xalan/c/xdocs/sources/xalan/extensions.xml
  
  Index: extensions.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/xdocs/sources/xalan/extensions.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- extensions.xml	2000/06/29 20:13:18	1.4
  +++ extensions.xml	2000/08/29 17:14:55	1.5
  @@ -86,9 +86,30 @@
     an assignment or equality operator for this function.</li>
     </ol>
     <p>These features all appear in the following example.</p>
  -<source>#include &lt;cmath&gt;
  +<source>// Base header file.  Must be first.
  +#include &lt;Include/PlatformDefinitions.hpp&gt;
  +
  +#include &lt;cmath&gt;
  +#include &lt;ctime&gt;
  +#include &lt;iostream&gt;
  +#include &lt;fstream&gt;
  +
  +#include &lt;util/PlatformUtils.hpp&gt;
  +#include &lt;PlatformSupport/DOMStringHelper.hpp&gt;
  +#include &lt;DOMSupport/DOMSupportDefault.hpp&gt;
   #include &lt;XPath/XObjectFactoryDefault.hpp&gt;
   #include &lt;XPath/XPath.hpp&gt;
  +#include &lt;XPath/XPathSupportDefault.hpp&gt;
  +#include &lt;XPath/XPathFactoryDefault.hpp&gt;
  +#include &lt;XSLT/StylesheetConstructionContextDefault.hpp&gt;
  +#include &lt;XSLT/StylesheetExecutionContextDefault.hpp&gt;
  +#include &lt;XSLT/XSLTEngineImpl.hpp&gt;
  +#include &lt;XSLT/XSLTInputSource.hpp&gt;
  +#include &lt;XSLT/XSLTProcessorEnvSupportDefault.hpp&gt;
  +#include &lt;XSLT/XSLTResultTarget.hpp&gt;
  +#include &lt;XercesParserLiaison/XercesParserLiaison.hpp&gt;
  +#include &lt;XercesPlatformSupport/TextFileOutputStream.hpp&gt;
  +#include &lt;XercesPlatformSupport/XercesDOMPrintWriter.hpp&gt;
   
   // This class defines a function that will return the square root
   // of its argument.
  
  
  
  1.6       +3 -4      xml-xalan/c/xdocs/sources/xalan/samples.xml
  
  Index: samples.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/xdocs/sources/xalan/samples.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- samples.xml	2000/06/27 16:46:18	1.5
  +++ samples.xml	2000/08/29 17:14:55	1.6
  @@ -126,17 +126,16 @@
   // Set up the TraceListener...
   // traceTemplates, traceTemplateChildren, traceGenerationEvent,
   // and TraceSelectionEvent are booleans set by the command line.
  -auto_ptr&lt;TraceListener&gt; theTraceListener;
  -theTraceListener = auto_ptr&lt;TraceListener&gt;(new TraceListenerDefault(
  +TraceListenerDefault theTraceListener(
           diagnosticsWriter,
           traceTemplates,
           traceTemplateChildren,
           traceGenerationEvent,
  -        traceSelectionEvent));
  +        traceSelectionEvent);
   
   // Add the TraceListener to the XSLT processor...
   theProcessor.setTraceSelects(traceSelectionEvent);
  -theProcessor.addTraceListener(theTraceListener.get());
  +theProcessor.addTraceListener(&amp;theTraceListener);
   
   // Perform the transformation
   ....</source>
  
  
  
  1.5       +13 -16    xml-xalan/c/xdocs/sources/xalan/usagepatterns.xml
  
  Index: usagepatterns.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/xdocs/sources/xalan/usagepatterns.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- usagepatterns.xml	2000/06/27 16:46:18	1.4
  +++ usagepatterns.xml	2000/08/29 17:14:56	1.5
  @@ -93,8 +93,7 @@
   XercesParserLiaison        theParserLiaison(theDOMSupport);
   XPathSupportDefault        theXPathSupport(theDOMSupport);
   XSLTProcessorEnvSupportDefault  theXSLTProcessorEnvSupport;
  -XObjectFactoryDefault      theXObjectFactory(theXSLTProcessorEnvSupport, 
  -                                             theXPathSupport);
  +XObjectFactoryDefault      theXObjectFactory;
   XPathFactoryDefault        theXPathFactory;
   
   // Create the processor.
  @@ -114,7 +113,6 @@
   StylesheetConstructionContextDefault  theConstructionContext(
               theProcessor,
               theXSLTProcessorEnvSupport,
  -            theXObjectFactory,
               theXPathFactory);
   StylesheetExecutionContextDefault      theExecutionContext(
               theProcessor,
  @@ -209,8 +207,7 @@
   XercesParserLiaison        theParserLiaison(theDOMSupport);
   XPathSupportDefault        theXPathSupport(theDOMSupport);
   XSLTProcessorEnvSupportDefault  theXSLTProcessorEnvSupport;
  -XObjectFactoryDefault      theXObjectFactory(theXSLTProcessorEnvSupport, 
  -                                             theXPathSupport);
  +XObjectFactoryDefault      theXObjectFactory;
   XPathFactoryDefault        theXPathFactory;
   
   // Create the processor and connect to the
  @@ -223,20 +220,16 @@
             theXPathFactory);
   theXSLTProcessorEnvSupport.setProcessor(&amp;theProcessor);
   ...
  -// Create factory support objects for the stylesheet, so it will
  -// have its own factory-created XObject and XPath instances 
  -// (separate from the XSLT processor XObject and XPath objects).
  -XObjectFactoryDefault      theStylesheetXObjectFactory(
  -            theXSLTProcessorEnvSupport,
  -            theXPathSupport);
  - XPathFactoryDefault        theStylesheetXPathFactory;
  +// Create an XPath factory support object for the stylesheet,
  +// so it will have its own factory-created XPath instances
  +// (separate from the XSLT processor XPath objects).
  +XPathFactoryDefault        theStylesheetXPathFactory;
   
  - // Use these factory support objects to create a stylesheet 
  - // construction context.
  - StylesheetConstructionContextDefault  theConstructionContext(
  +// Use this XPath factory support object to create a stylesheet 
  +// construction context.
  +StylesheetConstructionContextDefault  theConstructionContext(
               theProcessor,
               theXSLTProcessorEnvSupport,
  -            theStylesheetXObjectFactory,
               theStylesheetXPathFactory);
   
    // The execution context uses the same factory support objects as
  @@ -269,8 +262,12 @@
   
   // Reset the processor and the execution context
   // so we can perform the next transformation.
  +// Reset the parser liaison to clear out the
  +// source document we just transformed.
  +
   theProcessor.reset();
   theExecutionContext.reset();
  +theParserLiaison.reset();
   theExecutionContext.setStylesheetRoot(theStylesheetRoot);
   
   // Perform the next transformation.