dleslie     01/02/21 14:33:00

  Modified:    targets/xalan-c usagepatterns.html
  Log:
  Corected sytnax errors in # 3 and 4.
  
  Revision  Changes    Path
  1.7       +14 -9     xml-site/targets/xalan-c/usagepatterns.html
  
  Index: usagepatterns.html
  ===================================================================
  RCS file: /home/cvs/xml-site/targets/xalan-c/usagepatterns.html,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- usagepatterns.html        2001/02/20 21:27:52     1.6
  +++ usagepatterns.html        2001/02/21 22:32:58     1.7
  @@ -203,17 +203,18 @@
   <TABLE border="0" cellpadding="0" cellspacing="0" width="484"><TR><TD 
bgcolor="666699" colspan="2" width="484"><TABLE border="0" cellpadding="0" 
cellspacing="0" width="484"><TR><TD bgcolor="#039acc" height="1" width="1"><IMG 
border="0" height="1" hspace="0" src="resources/void.gif" vspace="0" 
width="1"></TD><TD bgcolor="#039acc" height="1" width="482"><IMG border="0" 
height="1" hspace="0" src="resources/void.gif" vspace="0" width="482"></TD><TD 
bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD 
bgcolor="#039acc" width="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#0086b2" 
width="482"><FONT color="#ffffff" face="arial,helvetica,sanserif"><IMG 
border="0" height="2" hspace="0" src="resources/void.gif" vspace="0" 
width="2"><B>3. Set up an XSLT processor with its support 
objects</B></FONT></TD><TD bgcolor="#017299" width="1"><IMG border="0" 
height="1" hspace="0" src="resources/void.gif" vspace="0" 
width="1"></TD></TR><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG 
border="0" height="1" hspace="0" src="resources/void.gif" vspace="0" 
width="1"></TD><TD bgcolor="#017299" height="1" width="482"><IMG border="0" 
height="1" hspace="0" src="resources/void.gif" vspace="0" width="482"></TD><TD 
bgcolor="#017299" height="1" width="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" 
width="1"></TD></TR></TABLE></TD></TR><TR><TD width="10">&nbsp;</TD><TD 
width="474"><FONT color="#000000" face="arial,helvetica,sanserif" size="-1">
   <P>The XSLT processor interacts with several support objects that you must 
set up before you can perform transformations.</P>
   <DIV align="right"><TABLE border="0" cellpadding="0" cellspacing="4" 
width="464"><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" 
height="1" hspace="0" src="resources/void.gif" vspace="0" width="1"></TD><TD 
bgcolor="#0086b2" height="1" width="462"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="462"></TD><TD bgcolor="#0086b2" 
height="1" width="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD 
bgcolor="#0086b2" width="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#ffffff" 
width="462"><FONT size="-1"><PRE>// 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(&amp;theParserLiaison);
  +// More support objects...
  +XSLTProcessorEnvSupportDefault theXSLTProcessorEnvSupport;
  +XObjectFactoryDefault          theXObjectFactory;
  +XPathFactoryDefault            theXPathFactory;
   
   // Create the processor.
   XSLTEngineImpl  theProcessor(
             theParserLiaison,
  -          theXPathSupport,
             theXSLTProcessorEnvSupport,
             theDOMSupport,
             theXObjectFactory,
  @@ -232,8 +233,12 @@
   StylesheetExecutionContextDefault      theExecutionContext(
               theProcessor,
               theXSLTProcessorEnvSupport,
  -            theXPathSupport,
  -            theXObjectFactory);</PRE></FONT></TD><TD bgcolor="#0086b2" 
width="1"><IMG border="0" height="1" hspace="0" src="resources/void.gif" 
vspace="0" width="1"></TD></TR><TR><TD bgcolor="#0086b2" height="1" 
width="1"><IMG border="0" height="1" hspace="0" src="resources/void.gif" 
vspace="0" width="1"></TD><TD bgcolor="#0086b2" height="1" width="462"><IMG 
border="0" height="1" hspace="0" src="resources/void.gif" vspace="0" 
width="462"></TD><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" 
height="1" hspace="0" src="resources/void.gif" vspace="0" 
width="1"></TD></TR></TABLE></DIV>
  +            theDOMSupport,
  +            theXObjectFactory);
  +            
  +// Optional: arrange to send parsing errors to the ProblemListener set 
  +// for XSLTEngineImpl.
  
+theParserLiaison.setExecutionContext(theExecutionContext);</PRE></FONT></TD><TD
 bgcolor="#0086b2" width="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD 
bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#0086b2" 
height="1" width="462"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="462"></TD><TD bgcolor="#0086b2" 
height="1" width="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="1"></TD></TR></TABLE></DIV>
   </FONT></TD></TR></TABLE><BR>
   <TABLE border="0" cellpadding="0" cellspacing="0" width="484"><TR><TD 
bgcolor="666699" colspan="2" width="484"><TABLE border="0" cellpadding="0" 
cellspacing="0" width="484"><TR><TD bgcolor="#039acc" height="1" width="1"><IMG 
border="0" height="1" hspace="0" src="resources/void.gif" vspace="0" 
width="1"></TD><TD bgcolor="#039acc" height="1" width="482"><IMG border="0" 
height="1" hspace="0" src="resources/void.gif" vspace="0" width="482"></TD><TD 
bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD 
bgcolor="#039acc" width="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#0086b2" 
width="482"><FONT color="#ffffff" face="arial,helvetica,sanserif"><IMG 
border="0" height="2" hspace="0" src="resources/void.gif" vspace="0" 
width="2"><B>5. Set up input and output objects for a 
transformation</B></FONT></TD><TD bgcolor="#017299" width="1"><IMG border="0" 
height="1" hspace="0" src="resources/void.gif" vspace="0" 
width="1"></TD></TR><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG 
border="0" height="1" hspace="0" src="resources/void.gif" vspace="0" 
width="1"></TD><TD bgcolor="#017299" height="1" width="482"><IMG border="0" 
height="1" hspace="0" src="resources/void.gif" vspace="0" width="482"></TD><TD 
bgcolor="#017299" height="1" width="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" 
width="1"></TD></TR></TABLE></TD></TR><TR><TD width="10">&nbsp;</TD><TD 
width="474"><FONT color="#000000" face="arial,helvetica,sanserif" size="-1">
   <P>You must set up XSLTInputSource objects for the XML document and XSL 
stylesheet, and an XSLTResultTarget object to contain the transformation 
output.</P>
  
  
  

Reply via email to