![]() | InDesign SDK 20.5 |
#include <IXMLTransformer.h>

Public Types | |
| enum | { kDefaultIID = IID_IXMLTRANSFORMER } |
Public Member Functions | |
| virtual ErrorCode | TransformStream (const IPMStream *in, IPMStream **out, IPMUnknown *xmlImporter=nil)=0 |
| virtual ErrorCode | TransformDOM (IIDXMLDOMDocument *dom, IPMUnknown *xmlImporter=nil)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This class can be used during two different phases of the XML import.
The first phase is while there is a stream. During this phase you can pass the stream to a transformer using an XSLt script.
The second phase will occur imediately after the DOM has been created. During this phase you can manually manipulate the DOM by inserting, removing, and changing elements.
Place this interface on the same boss as a service provider that supports kXMLImporterTransformerService to ensure that it gets called at the appropriate times.
| pure virtual |
Transform a DOM
| dom | - The DOM to be manipulated |
| xmlImporter | - A pointer to the importer boss (so we can get import data) |
Implemented in XDocBkXMLTransformer, and CXMLTransformer.
| pure virtual |
Transform an XML stream using an XSLT script
| in | - The original stream |
| out | - The new stream. (nil if no transformation occurred) |
| xmlImporter | - A pointer to the importer boss (so we can get import data) |
Implemented in CXMLTransformer.