Xalan-C++ API Documentation

The Xalan-C++ XSL Transformer Version 1.0

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

FormatterToHTML Class Reference

FormatterToHTML formats SAX-style events into HTML. More...

#include <FormatterToHTML.hpp>

Inheritance diagram for FormatterToHTML:

FormatterToXML FormatterListener DocumentHandler Collaboration diagram for FormatterToHTML:

List of all members.

Public Types

Public Methods

Static Public Methods

Protected Methods


Detailed Description

FormatterToHTML formats SAX-style events into HTML.


Member Typedef Documentation

typedef std::map<XalanDOMString, ElemDesc> FormatterToHTML::ElementFlagsMapType


Member Enumeration Documentation

enum FormatterToHTML::eDummy

Enumeration values:
eDefaultIndentAmount  

Reimplemented from FormatterToXML.


Constructor & Destructor Documentation

FormatterToHTML::FormatterToHTML ( Writer & writer,
const XalanDOMString & encoding = XalanDOMString(),
const XalanDOMString & mediaType = XalanDOMString(),
const XalanDOMString & doctypeSystem = XalanDOMString(),
const XalanDOMString & doctypePublic = XalanDOMString(),
bool doIndent = true,
int indent = eDefaultIndentAmount,
const XalanDOMString & version = XalanDOMString(),
const XalanDOMString & standalone = XalanDOMString(),
bool xmlDecl = false)

Constructor for customized encoding and doctype.

Parameters:
writer   The character output stream to use.
encoding   Java character encoding in use by writer.
doctype   String to be printed at the top of the document.
indent   Number of spaces to indent at each nesting level.

virtual FormatterToHTML::~FormatterToHTML () [virtual]


Member Function Documentation

virtual void FormatterToHTML::cdata ( const XMLCh * const ch,
const unsigned int length) [virtual]

Receive notification of cdata.

The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity, so that the Locator provides useful information.

The application must not attempt to read from the array outside of the specified range.

Note that some parsers will report whitespace using the ignorableWhitespace() method rather than this one (validating parsers must do so).

Parameters:
ch   pointer to characters from the XML document
length   number of characters to read from the array
Exceptions:
SAXException  

Reimplemented from FormatterToXML.

virtual void FormatterToHTML::characters ( const XMLCh * const chars,
const unsigned int length) [virtual]

Reimplemented from FormatterToXML.

virtual void FormatterToHTML::endElement ( const XMLCh * const name) [virtual]

Reimplemented from FormatterToXML.

virtual void FormatterToHTML::entityReference ( const XMLCh * const name) [virtual]

Receive notification of a entityReference.

Parameters:
data   pointer to characters from the XML document
Exceptions:
SAXException  

Reimplemented from FormatterToXML.

void FormatterToHTML::initialize () [static]

Perform static initialization.

See class XMLSupportInit.

Reimplemented from FormatterToXML.

virtual void FormatterToHTML::processingInstruction ( const XMLCh * const target,
const XMLCh * const data) [virtual]

Reimplemented from FormatterToXML.

virtual void FormatterToHTML::startDocument () [virtual]

Reimplemented from FormatterToXML.

virtual void FormatterToHTML::startElement ( const XMLCh * const name,
AttributeList & attrs) [virtual]

Reimplemented from FormatterToXML.

void FormatterToHTML::terminate () [static]

Perform static shut down.

See class XMLSupportInit.

Reimplemented from FormatterToXML.

void FormatterToHTML::writeAttrString ( const XalanDOMChar * string,
const XalanDOMString & encoding) [protected, virtual]

Write an attribute string.

Parameters:
string   The string to write.
encoding   The current encoding.

Reimplemented from FormatterToXML.


The documentation for this class was generated from the following file:

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSL Transformer Version 1.0
Copyright © 2000 The Apache Software Foundation. All Rights Reserved.