Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
FormatterToHTML Class Reference

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

Inheritance diagram for FormatterToHTML:
FormatterToXML FormatterListener

List of all members.

Classes

Public Types

Public Member Functions

Static Public Member Functions

Protected Member Functions


Detailed Description

FormatterToHTML formats SAX-style events into HTML.


Member Typedef Documentation


Member Enumeration Documentation

anonymous enum
Enumerator:
eDefaultIndentAmount 

Constructor & Destructor Documentation

FormatterToHTML::FormatterToHTML ( Writer writer,
const XalanDOMString encoding = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const XalanDOMString mediaType = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const XalanDOMString doctypeSystem = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const XalanDOMString doctypePublic = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
bool  doIndent = true,
int  indent = eDefaultIndentAmount,
bool  escapeURLs = true,
bool  omitMetaTag = false,
MemoryManagerType &theManager  XALAN_DEFAULT_MEMMGR 
)

Constructor for customized encoding and doctype.

Parameters:
writerThe character output stream to use.
encodingThe character encoding in use by writer.
doctypeSystemThe system ID for the DOCTYPE.
doctypePublicThe public ID for the DOCTYPE.
doIndenttrue if indenting should be enabled
indentNumber of spaces to indent at each nesting level.
escapeURLsWhether or not to escape URLs according to the recommendation. The default is true.
omitMetaTagWhether or not to output a META TAG according to the recommendation. The default is false.
virtual FormatterToHTML::~FormatterToHTML ( ) [virtual]

Member Function Documentation

virtual void FormatterToHTML::accumCommentData ( const XalanDOMChar *  data) [protected, virtual]

Write the data for a comment.

Parameters:
dataThe comment's data.

Reimplemented from FormatterToXML.

virtual bool FormatterToHTML::accumDefaultEntity ( XalanDOMChar  ch,
bool  escLF 
) [virtual]

Handle one of the default entities, return false if it is not a default entity.

Reimplemented from FormatterToXML.

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:
chpointer to characters from the XML document
lengthnumber 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.

static FormatterToHTML* FormatterToHTML::create ( MemoryManagerType theManager,
Writer writer,
const XalanDOMString encoding,
const XalanDOMString mediaType,
const XalanDOMString doctypeSystem,
const XalanDOMString doctypePublic,
bool  doIndent,
int  indent,
bool  escapeURLs,
bool  omitMetaTag 
) [static]
virtual void FormatterToHTML::endDocument ( ) [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:
datapointer to characters from the XML document
Exceptions:
SAXException

Reimplemented from FormatterToXML.

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

Reimplemented from FormatterToXML.

void FormatterToHTML::setEscapeURLs ( bool  flag)
virtual void FormatterToHTML::startDocument ( ) [virtual]

Reimplemented from FormatterToXML.

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

Reimplemented from FormatterToXML.

virtual void FormatterToHTML::writeAttrString ( const XalanDOMChar *  theString,
XalanDOMString::size_type  theStringLength 
) [protected, virtual]

Write an attribute string.

Parameters:
theStringThe string to write.
theStringLengthThe length of the string.

Reimplemented from FormatterToXML.

void FormatterToHTML::writeCharacters ( const XalanDOMChar *  theString,
XalanDOMString::size_type  theLength 
) [protected]
void FormatterToHTML::writeCharacters ( const XalanDOMString theString) [protected]

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.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo