So it would seem there are (at least) two methodologies for transforming an XML document one wants to ensure has been validated.
1. parse and validate foo.xml with Xerces. pass a XercesDOMWrapperParsedSource version of foo.xml to Xalan. 2. parse and validate foo.xml with Xerces. transform with Xalan under the assumption that foo.xml has been parsed. Is the method specified in the usage patterns (i.e., method #1 above) the recommended method? -tfo On Tue, Apr 22, 2003 at 08:35:54AM -0700, [EMAIL PROTECTED] wrote: > Unless you really need to use the Xerces DOM, you should avoid it. Here's > a much simpler version without it: > > XalanTranformer::intialize(); > { > XalanTransformer theTransformer; > int theResult = > theTransformer.transform("foo.xml","foo.xsl","foo.out"); > cout << "theResult is: " << theResult ; > } > > XalanTransformer::terminate(); > > If you really need to use the Xerces DOM, see the ParsedSourceWrappers > sample, or this usage pattern: > > > http://xml.apache.org/xalan-c/usagepatterns.html#xercesdomwrapperparsedsource