RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomXSLPageProducer Class

TCustomXSLPageProducer generates web page content by transforming data described with XML (Extensible Markup Language) using an XSL (Extensible Stylesheet Language) template.

Pascal
C++
class TCustomXSLPageProducer : public TXMLDocument, public IProduceContent, public IProduceContentFrom, public ISetAppDispatcher, public IGetAppDispatcher, public IProducerEditorViewSupport, public IGetProducerTemplate;

TCustomXSLPageProducer is the base class for components that transform the data in an XML document using an XSL template. This class introduces all the properties and methods necessary for specifying the XML document to transform, the XSL template that describes the transformation, and for performing the transformation. 

The XMLData property identifies the XML data that this component transforms. XMLData must be set to a component that supports either the IXMLDocument interface (for example, TXMLDocument or one of its descendants) or the IGetXMLStream interface (for example, TXMLBroker). 

To obtain the results of the transformation, you can use any of the following methods: 

The Content method performs the transformation using the XSL template that is specified by the FileName or XML property. When using the Content method, you can also read an XSL document by calling the LoadFromFile, LoadFromStream, or LoadFromXML method first. 

The ContentFromString and ContentFromWideString methods perform the transformation using an XSL template that is supplied as a parameter. 

The ContentFromStream method performs the transformation using an XSL template that it reads from a specified stream. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!