dleslie 01/02/13 10:48:29
Modified: c/xdocs/sources/xalan usagepatterns.xml
Log:
Added info on using XalanTransformer to process XML documents
that contain a stylesheet PI.
Revision Changes Path
1.19 +10 -4 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.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- usagepatterns.xml 2001/02/13 18:33:53 1.18
+++ usagepatterns.xml 2001/02/13 18:48:28 1.19
@@ -113,11 +113,10 @@
an integer code, 0 for success. If an error occurs, you can use the
getLastError() method to return a pointer to the error message.
For the details, see XalanTransormer/XalanTransformer.hpp in the source
tree. For an example, see the
<link idref="samples" anchor="xalantransform">XalanTransform</link>
sample.</p>
-<p>Transform an XML file to an output file. The XML file contains a
stylesheeet processing instruction.</p>
+<p>Transform an XML file with a stylesheet processing instruction to an
output file.</p>
<source>int
-transform(
-const char* xmlInFile,
-const char* xmlOutFile);</source>
+transform(const char* xmlInFile,
+ const char* xmlOutFile);</source>
<p>Transform from files to an output stream:</p>
<source>int
transform(const char* xmlInFile,
@@ -128,6 +127,11 @@
transform(istream& xmlInStream,
istream& xslInStram,
ostream& resultOutStream);</source>
+<p>Transform an input stream that contains the XML input with a stylesheet
processing instruction to an output stream.</p>
+<source>int
+transform(istream& xmlInStream,
+ ostream& resultOutStream);</source>
+
<p>Transform from files to an output handler that receives the output in
blocks. </p>
<source>int
transform(const char* xmlInFile
@@ -165,6 +169,7 @@
<li>Shut down Xalan and Xerces<br/>
<code>XalanTerminate();</code></li>
</ol>
+<p>If the XML input file contains a stylesheet processing instruction that
you want to use, include an empty string ("") for the xslfilename argument.</p>
</s3><anchor name="cvar"/>
<s3 title="Variations with the XalanTransformer C API">
<p>The C API supports basically the same options as the C++ API.</p>
@@ -174,6 +179,7 @@
const char* xslFile,
const char** transformOutput,
XalanHandle xalan);</source>
+<p>If the XML input contains a stylesheet processing instruction that you
want to use, include an empty string ("") for the xslFile argument.</p>
<p>After calling XalanTransformToData(), call XalanFreeData() with the
address of the pointer to the character array:</p>
<p><code>XalanFreeData(transformOutput);</code></p>
<p>Transform to a callback function that receives the output in blocks (see
the <link idref="samples"