Character-based C++ Transformations
A character-based transformation allows you to modify the incoming or outgoing stream of characters that make up an XML document. The transformation stream buffers the entire document, and then hands that buffer to a transformation object as an istream.
A character-based transformation stream offers the greatest flexibility since a document is treated as merely a sequence of characters; however, this type of transformation stream also requires that the transformation object itself provide any parsing logic.
A character-based transformation stream can be used to implement an XSLT transformation stream as shown in Chapter 6.
This chapter includes code examples from the file transform.cpp. For the complete example, see: buildspace\examples\xmlstreams\transform\transform.cpp