Main Page | Class Hierarchy | Class List | File List | Class Members

xslt::init Class Reference

The xslt::init class is used to initilize the XSLT engine. More...

#include <init.h>

Inheritance diagram for xslt::init:

Inheritance graph
[legend]
Collaboration diagram for xslt::init:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 init (void)
 Create a new xslt::init object.

virtual ~init (void)
 Clean up the XSLT engine.

void process_xincludes (bool flag)
 This function controls whether or not the XSLT engine will process XInclusions by default while parsing the stylesheet.

void indent_output (bool flag)
 This member function controls whether or not the XML parser should add text nodes for indenting when generating XML text output from a node tree.

void remove_whitespace (bool flag)
 This member function controls whether or not the XML parser should remove ignorable whitespace around XML elements.

void substitute_entities (bool flag)
 This member function controls whether or not the XML parser should substitute entities while parsing.

void load_external_subsets (bool flag)
 This member function controls whether or not the XML parser should load external (DTD) subsets while parsing.

void validate_xml (bool flag)
 This member function controls whether or not the XML parser should validate every XML document that is parses with its DTD.


Detailed Description

The xslt::init class is used to initilize the XSLT engine.

For thread safety it should be instantiated one time in the main thread before any other threads use xsltwrapp. Non-threaded programs should instantiante a xslt::init class before using xsltwrapp as well, at least for consistanticy.

If you want to use any of the xslt::init member functions, do so before you start any threads or use any other part of xsltwrapp. The member functions may alter global and/or static variables. In other words, this class is not thread safe.

Since this class is derived from the xml::init it is not neccessary to use both classes. If you are going to be using xsltwrapp, you should only use this class to initilize both xmlwrapp and xsltwrapp.


Constructor & Destructor Documentation

xslt::init::init void   ) 
 

Create a new xslt::init object.

This constructor will prepare the XSLT engine parser and set some default values for the engine's global variables.

Author:
Peter Jones

Reimplemented from xml::init.

virtual xslt::init::~init void   )  [virtual]
 

Clean up the XSLT engine.

Don't let the xslt::init object go out of scope before you are done using the xsltwrapp or xmlwrapp libraries!

Author:
Peter Jones

Reimplemented from xml::init.


Member Function Documentation

void xml::init::indent_output bool  flag  )  [inherited]
 

This member function controls whether or not the XML parser should add text nodes for indenting when generating XML text output from a node tree.

The default, set in the xml::init constructor, is true.

Parameters:
flag True to turn on indenting, false to turn it off.
Author:
Peter Jones

void xml::init::load_external_subsets bool  flag  )  [inherited]
 

This member function controls whether or not the XML parser should load external (DTD) subsets while parsing.

This will only affect the loading of the subsets, it does not cause files to be validated. The default, set in the xml::init constructor, is true.

Parameters:
flag True to turn on loading, flase to turn it off.
Author:
Peter Jones

void xslt::init::process_xincludes bool  flag  ) 
 

This function controls whether or not the XSLT engine will process XInclusions by default while parsing the stylesheet.

The default, set in the xslt::init constructor, is true.

Parameters:
flag True to enable XInclusing processing; False otherwise.
Author:
Peter Jones

void xml::init::remove_whitespace bool  flag  )  [inherited]
 

This member function controls whether or not the XML parser should remove ignorable whitespace around XML elements.

The default, set in the xml::init constructor, is false.

Parameters:
flag True to remove whitespace, false to leave alone.
Author:
Peter Jones

void xml::init::substitute_entities bool  flag  )  [inherited]
 

This member function controls whether or not the XML parser should substitute entities while parsing.

The default, set in the xml::init constructor, is true.

Parameters:
flag True to turn on substitution, false to turn off.
Author:
Peter Jones

void xml::init::validate_xml bool  flag  )  [inherited]
 

This member function controls whether or not the XML parser should validate every XML document that is parses with its DTD.

The default, set in the xml::init constructor, is false.

Returns:
flag True to turn on validation, false to turn it off.
Author:
Peter Jones


The documentation for this class was generated from the following file:
Generated on Tue Oct 19 12:26:03 2004 for xmlwrapp by doxygen 1.3.6