| Properties and methods | Description |
| applyUserTransform Property | Indicates whether XMLListener should automatically apply a user-defined XSLT transform at the conclusion of a report run. Default .F. Remarks: When you set this property to .T., the associated assign method checks to see if you have already filled the xsltProcessorUser property with an appropriate processor object. If not, it runs an internal method, getDefaultUserXslt, to load the xsltProcessorUser property. This internal method provides a hook for subclasses to supply their preferred XSLT document for use without requiring an external load procedure. |
| applyXslt Method | Provides generic facilities for applying XSLT to XML. Syntax: applyXslt (vSource, vProcessor [, vParamCollection]) Return Values: cXmlResult Parameters: vSource can be the name of a file holding the source XML document, a string holding the XML document, or a DOM document object. vProcessor can be the name of a file holding the XSLT processor document, a string holding the XSLT document, or an XSLT processor object. vParamCollection is an optional object of Collection type. If it is available, this method adds the members of the collection to the XSLT processor instance as global parameters before applying the XSLT transformation to the source document. It uses the collection keys as parameter names, and the corresponding collection values as parameter values. XmlListener provides a property, xsltParameters, you can use to hold the collection you build to hold these parameters between calls. Remarks: Both the XML source and XSLT processor object types are defined in REPORTLISTENERS.H. You can edit this header file and recompile the class to choose different processing objects. |
| contAttr Property | Supplies the name of the attribute used to show continuation type for a layout object that can span bands or pages. Default "c" |
| currentDocument Property | Holds information about the XML document for which output is currently being generated during a report run. Default .NULL. |
| heightAttr Property | Supplies the name of the XML attribute used to show height for a layout object. Default "h" |
| idAttribute Property | Supplies the name of the XML attribute used to provide the FRX record number for a layout object or page number of a formatting band (column or page) object. Default "id" |
| idrefAttribute Property | Supplies the name of the XML attribute used to provide the current page for a layout object or FRX record number of a formatting band (column or page) object. Default "idref" |
| includeBandsWithNoObjects Property | Indicates whether band-level information for bands with no contents should be included in the XML. Default .F. |
| includeBreaksInData Property | Determines whether formatting bands (page and columns) should be included in output and, if so, using what structure.
|
Value
|
Meaning
| | 0 | Provide page band nodes positioned along with other bands in the datastream, wherever they happen to occur | | 1 | No pagebreak info, no page header and footer info | | 2 | Provide collection of pages with page headers and footers data |
Default 0 |
| includeDataSourcesInVfpRdl Property | Indicates whether information about the source tables, relations, indexes, etc. should be included in the VFPRDL metadata section of the report XML. Default .F. |
| includeFormattingInLayoutObjects Property | Indicates whether formatting information such as positioning attributes should be included in the report XML. Default .F. |
| leftAttr Property | Supplies the name of the XML attribute used to show leftmost position for a layout object. Default "l" |
| noPageEject Property | Indicates whether the XML Listener should consider the current report run to be continued. Can be used without NOPAGEEJECT on the REPORT FORM command. Default .F. |
| resetDocument Method | Resets the XML document after a report run. Syntax: resetDocument() Return Values: none Parameters: none |
| topAttr Property | Supplies the name of the XML attribute used to show topmost position for a layout object. Default "t" |
| verifyNCName Method | Provides generic method to validate strings as XML-standard NCNames. Syntax: verifyNCName ( cName ) Return Values: lValid Parameters: cName is the string you are checking for validity as an NCName value. Remarks: In XML, an NCName or non-colonized name is a legal value for either the namespace or the non-prefixed (local) name of a node. For example, in the node name xsl:template, both xsl and template are NCNames. |
| widthAttr Property | Supplies the name of the XML attribute used to show width for a layout object. Default "w" |
| xmlMode Property | Determines what parts of the VFP Report XML schema are included in output.
|
Value
|
Meaning
| | 0 | Data only | | 1 | VFP-RDL only | | 2 | Data and VFP-RDL |
Default 2 |
| xsltParameters Property | Holds an optional parameter collection passed to the ApplyXSLT method when XmlListener automatically applies a user XSLT transformation at the conclusion of a report run. Default .NULL. Remarks: The code example in ReportListener HTML Foundation Class uses xsltParameters explicitly, to set numberPrecision, one parameter of its default transformation. The class's code sets several other parameters of the default HTML transformation using xsltParameters. If you create xsltParameters as a collection object yourself, as shown in that example, the HtmlListener class will use this object, adding any required keys and values after checking to see if they already exist. |
| xsltProcessorRdl Property | Holds a Report Definition Language (RDL) -specific processor object. Default .NULL. Remarks: Reserved for future use. You can load an XSLT processor object to this property using the same techniques as described for the xslProcessorUser property. |
| xsltProcessorUser Property | Holds a user-definable processor object which, if filled and available at the end of a run, can be used automatically by XML Listener to transform the raw XML document to requirements. Default .NULL. Remarks: To change this document, you have several options: -
Store a filename to the property, as shown in the example below. -
Store an XSLT document contained in a string variable to the property. -
Store an XSLT processor object, with its stylesheet already loaded, to the property. The appropriate object types are defined in XmlListener's header file, REPORTLISTENERS.H. If you store the document as a string or a filename, XmlListener creates the processor object for you, and loads the stylesheet. |