Xalan-C++ API Documentation
Xalan-C++ API Documentation
The Xalan C++ XSLT Processor Version 1.4
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:
Collaboration diagram for FormatterToHTML:
List of all members.
Public Types
Public Methods
- 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, bool escapeURLs = true, bool omitMetaTag = false)
- Constructor for customized encoding and doctype. More...
- virtual ~FormatterToHTML ()
- virtual void startDocument ()
- virtual void endDocument ()
- virtual void startElement ( const XMLCh* const name, AttributeList& attrs)
- virtual void endElement (const XMLCh* const name)
- virtual void characters ( const XMLCh* const chars, const unsigned int length)
- virtual bool accumDefaultEntity ( XalanDOMChar ch, XalanDOMString::size_type i, const XalanDOMChar chars[], XalanDOMString::size_type len, bool escLF)
- Handle one of the default entities, return false if it is not a default entity.
- virtual void entityReference (const XMLCh* const name)
- Receive notification of a entityReference. More...
- virtual void cdata ( const XMLCh* const ch, const unsigned int length)
- virtual void processingInstruction ( const XMLCh* const target, const XMLCh* const data)
- bool getEscapeURLs () const
- void setEscapeURLs (bool flag)
Protected Methods
Detailed Description
FormatterToHTML formats SAX-style events into HTML.
Member Typedef Documentation
Enumeration Value Documentation
FormatterToHTML::eDefaultIndentAmount = 0 |
|
Constructor & Destructor Documentation
Constructor for customized encoding and doctype.
-
Parameters:
-
writer
|
The character output stream to use.
|
encoding
|
The character encoding in use by writer.
|
doctypeSystem
|
The system ID for the DOCTYPE.
|
doctypePublic
|
The public ID for the DOCTYPE.
|
doIndent
|
true if indenting should be enabled
|
indent
|
Number of spaces to indent at each nesting level.
|
escapeURLs
|
Whether or not to escape URLs according to the recommendation. The default is true.
|
omitMetaTag
|
Whether 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:
-
Reimplemented from FormatterToXML.
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] |
|
virtual void FormatterToHTML::characters (
|
const XMLCh * const chars, |
|
const unsigned int length) [virtual] |
|
virtual void FormatterToHTML::endDocument () [virtual] |
|
virtual void FormatterToHTML::endElement (
|
const XMLCh * const name) [virtual] |
|
virtual void FormatterToHTML::entityReference (
|
const XMLCh * const name) [virtual] |
|
Receive notification of a entityReference.
-
Parameters:
-
data
|
pointer to characters from the XML document
|
-
Exceptions:
-
Reimplemented from FormatterToXML.
bool FormatterToHTML::getEscapeURLs () const |
|
virtual void FormatterToHTML::processingInstruction (
|
const XMLCh * const target, |
|
const XMLCh * const data) [virtual] |
|
void FormatterToHTML::setEscapeURLs (
|
bool flag) |
|
virtual void FormatterToHTML::startDocument () [virtual] |
|
virtual void FormatterToHTML::startElement (
|
const XMLCh * const name, |
|
AttributeList & attrs) [virtual] |
|
virtual void FormatterToHTML::writeAttrString (
|
const XalanDOMChar * theString) [protected, virtual] |
|
Write an attribute string.
-
Parameters:
-
theString
|
The string to write.
|
Reimplemented from FormatterToXML.
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.
Xalan-C++ XSLT Processor Version 1.4
Copyright © 2000, 2001, 2002 The Apache Software Foundation. All Rights Reserved.
|
|