dleslie 01/02/21 14:33:22
Modified: c/xdocs/sources/xalan usagepatterns.xml
Log:
Corected sytnax errors in # 3 and 4.
Revision Changes Path
1.24 +14 -9 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.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- usagepatterns.xml 2001/02/16 21:41:50 1.23
+++ usagepatterns.xml 2001/02/21 22:33:20 1.24
@@ -212,17 +212,18 @@
<s3 title="3. Set up an XSLT processor with its support objects">
<p>The XSLT processor interacts with several support objects that you must
set up before you can perform transformations.</p>
<source>// Create the support objects.
-XercesDOMSupport theDOMSupport;
-XercesParserLiaison theParserLiaison(theDOMSupport);
-XPathSupportDefault theXPathSupport(theDOMSupport);
-XSLTProcessorEnvSupportDefault theXSLTProcessorEnvSupport;
-XObjectFactoryDefault theXObjectFactory;
-XPathFactoryDefault theXPathFactory;
+XalanSourceTreeDOMSupport theDOMSupport;
+XalanSourceTreeParserLiaison theParserLiaison(theDOMSupport);
+// Hook the two together...
+theDOMSupport.setParserLiaison(&theParserLiaison);
+// More support objects...
+XSLTProcessorEnvSupportDefault theXSLTProcessorEnvSupport;
+XObjectFactoryDefault theXObjectFactory;
+XPathFactoryDefault theXPathFactory;
// Create the processor.
XSLTEngineImpl theProcessor(
theParserLiaison,
- theXPathSupport,
theXSLTProcessorEnvSupport,
theDOMSupport,
theXObjectFactory,
@@ -241,8 +242,12 @@
StylesheetExecutionContextDefault theExecutionContext(
theProcessor,
theXSLTProcessorEnvSupport,
- theXPathSupport,
- theXObjectFactory);</source>
+ theDOMSupport,
+ theXObjectFactory);
+
+// Optional: arrange to send parsing errors to the ProblemListener set
+// for XSLTEngineImpl.
+theParserLiaison.setExecutionContext(theExecutionContext);</source>
</s3>
<s3 title="5. Set up input and output objects for a transformation">
<p>You must set up XSLTInputSource objects for the XML document and XSL
stylesheet, and an XSLTResultTarget object to contain the transformation
output.</p>