This is a simple C++ interface for some common usage patterns. More...
#include <XalanTransformer.hpp>
Collaboration diagram for XalanTransformer:
This is a simple C++ interface for some common usage patterns.
It's the user's responsibility to call initialize and terminate for Xerces and Xalan before creating and after deleting any XalanTransformer instances.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Enums to determine whether or not run-time escaping of URLs has been set.
|
|
Enums to determine whether or not run-time omission of the META tag has been set. Relevant only for HTML output |
|
|
|
|
|
Clean up the ICU, if ICU integration is enabled. This should be called only once per process after calling XalanTransformer::terminate() and XMLPlatformUtils::Terminate. This must only be done if the ICU will no longer be used by the process, since the ICU will no longer be in a usable state. See the ICU documentation for more details. This call is not thread-safe, so you must serialize any calls to it, and you must track the initialization state, so you do not call it more than once. This is handy when using leak-detection software, as all static data allocated by the ICU is freed. |
|
|
|
Add a TraceListener instance. TraceListeners instances are preserved between calls to transform(), so they will be called until they are removed.
|
|
Creates a compiled stylesheet. The input source can be a file name, a stream or a root node. The XalanTransformer instance owns the XalanCompiledStylesheet instance and will delete it when the XalanTransformer instance goes out of scope, or you explicitly call destroyStylesheet(). You must not delete the instance yourself.
|
|
Create a document builder. Using the document builder, you can construct a document using SAX2 interfaces. The XalanTransformer instance owns the document builder and will delete it when the XalanTransformer instance goes out of scope, or you explicitly call destroyDocumentBuilder(). You must not delete the instance yourself.
|
|
Destroy a document builder created by a previous call to createDocumentBuilder(). Passing a pointer that is not created by a call to createDocumentBuilder() can result in undefined behavior.
|
|
Destroy a parsed source created by a previous call to parseSource().
|
|
Destroy a XalanCompiledStylesheet instance created by a previous call to compileStylesheet().
|
|
This method returns the installed entity resolver.
|
|
This method returns the installed error handler.
|
|
Get the value for run-time escaping of URLs. This can override the property specified by the stylesheet. The default behavior is to honor the property in the stylesheet.
|
|
This method returns the location for an external schema document for parsing.
|
|
This method returns the location for an external schema document for parsing.
|
|
Get the current number of spaces to indent.
|
|
Returns the last error that occurred as a result of calling transform.
|
|
|
|
|
|
Get the value for run-time omission of the META tag. This can override the property specified by the stylesheet. The default behavior is to honor the property in the stylesheet.
|
|
Get the current output encoding, if any. Note this is not the output encoding specified in a stylesheet. Rather, it can override that encoding, if the
|
|
This member functions gets the flag to determine of a default parsed source tree will pool the values of all of the text nodes in the XML document.
|
|
This method returns the installed ProblemListener instance.
|
|
Set a flag to indicate whether or not the source file(s) for the transformation will be validated.
|
|
Get the current warning stream ostream instance.
|
|
Initialize Xalan. Should be called only once per process before creating any instances of XalanTransformer. This call is not thread-safe, so you must serialize any calls to it, and you must track the initialization state, so you do not call it more than once. |
|
Install an external function in the local space.
|
|
Install an external function in the global space.
|
|
Parse a source XML document. The input source can be a file name, a stream or a root node. The XalanTransformer instance owns the XalanParsedSource instance and will delete it when the XalanTransformer instance goes out of scope, or you explicitly call destroyParsedSource(). You must not delete the instance yourself.
|
|
Remove a TraceListener instance.
|
|
Remove all TraceListener instances.
|
|
This method installs the user-specified entity resolver. It allows applications to trap and redirect calls to external entities.
|
|
This method installs the user-specified error handler.
|
|
Set the value for run-time escaping of URLs. This can override the property specified by the stylesheet. The default behavior is to honor the property in the stylesheet.
|
|
This method sets the location for an external schema document for parsing.
|
|
This method sets the location for an external schema document for parsing.
|
|
Set the current number of spaces to indent.
|
|
Get the value for run-time omission of the META tag. This can override the property specified by the stylesheet. The default behavior is to honor the property in the stylesheet.
|
|
Set the current output encoding. Note this will override the encoding specified in the stylesheet, if the encoding is available. However, it will not override any encoding specified by an XSLTResultTarget parameter to one of the transform() member functions.
|
|
This member functions sets the flag to determine of a default parsed source tree will pool the values of all of the text nodes in the XML document. This can result in significant memory savings if there are lots of repeated values in text nodes.
|
|
This method installs the user-specified ProblemListener instance.
|
|
Set a top-level stylesheet parameter. This value can be evaluated via xsl:param-variable. These values are cleared after a call to transform().
|
|
Set a top-level stylesheet parameter. This value can be evaluated via xsl:param-variable. These values are cleared after a call to transform().
|
|
Set a flag to indicate whether or not the source file(s) for the transformation will be validated.
|
|
Set the ostream instance for reporting warnings and messages. The default is std::cerr. If set to 0, no warnings or messages will be written. If there is a user-installed ProblemListener instance, this is not used, as all such warnings and messages are handled by the user's ProblemListener.
|
|
Terminate Xalan. Should be called only once per process after deleting all instances of XalanTransformer. This call is not thread-safe, so you must serialize any calls to it, and you must track the initialization state, so you do not call it more than once. This is handy when using leak-detection software, as all static data allocated by Xalan is freed. |
|
Transform will apply the stylesheet provided as a PI in the XML of the input source and write the transformation result to a callback function in pre-allocated blocks. The input source can be a file name, a stream or a root node. Upon termination, Xalan releases any allocated memory. Data passed to the callback is not guaranteed to be null terminated.
|
|
Transform will apply the compiled stylesheet to the source and write the transformation result to a callback function in pre-allocated blocks. The input source can be a file name, a stream or a root node. Upon termination, Xalan releases any allocated memory. Data passed to the callback is not guaranteed to be null terminated.
|
|
Transform will apply the compiled stylesheet to the input source and write the transformation output to the target. The input source and result target can be a file name, a stream or a root node.
|
|
Transform will apply the stylesheet source to the input source and write the transformation result to a callback function in pre-allocated blocks. The input source can be a file name, a stream or a root node. Upon termination, Xalan releases any allocated memory. Data passed to the callback is not guaranteed to be null terminated.
|
|
Transform will apply the stylesheet provided as a PI in the XML of the input source and write the transformation output to the target. The input source and result target can be a file name, a stream or a root node.
|
|
Transform will apply the stylesheet source to the input source and write the transformation output to the target. The input source and result target can be a file name, a stream or a root node.
|
|
Transform will apply the stylesheet provided as a PI in the XML of the parsed xml source and write the transformation output to the target.
|
|
Transform will apply the compiled stylesheet to the parsed xml source and write the transformation output to the target.
|
|
Transform will apply the stylesheet source to the parsed xml source and write the transformation output to the target.
|
|
Uninstall an external local function.
|
|
Uninstall an external global function.
|
|
|
The documentation for this class was generated from the following file:
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.10 |
|