<HTML><HEAD><TITLE>Xalan-C++ API Documentation</TITLE></HEAD> <BODY> <h2 align="center">Xalan-C++ API Documentation</h2> <h3 align="center">The Xalan C++ XSLT Processor Version 1.4</h3> </BODY> <!-- Generated by Doxygen 1.1.2 on Mon Sep 16 08:31:21 2002 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> <hr><h1>FormatterToDOM Class Reference</h1>This class takes SAX events (in addition to some extra events that SAX doesn't handle yet) and adds the result to a document or document fragment. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="FormatterToDOM.hpp-source.html">FormatterToDOM.hpp</a>></code> <p> <p>Inheritance diagram for FormatterToDOM: <p><center><img src="class_formattertodom.gif" usemap="#FormatterToDOM_map" border="0"></center> <map name="FormatterToDOM_map"><p> <area href="class_formatterlistener.html" alt="FormatterListener" shape="rect" coords="0,56,113,80"> <area href="class_documenthandler.html" alt="DocumentHandler" shape="rect" coords="0,0,113,24"> </map> Collaboration diagram for FormatterToDOM:<p><center><img src="class_formattertodom_coll_graph.gif" border="0" usemap="#FormatterToDOM_impl_map"></center> <map name="FormatterToDOM_impl_map"> <area href="class_formatterlistener.html" shape="rect" coords="123,128,232,107"> <area href="class_documenthandler.html" shape="rect" coords="7,37,119,16"> <area href="class_prefixresolver.html" shape="rect" coords="143,37,236,16"> <area href="class_xalanelement.html" shape="rect" coords="256,128,349,107"> <area href="class_xalannode.html" shape="rect" coords="388,37,460,16"> <area href="class_xalandocument.html" shape="rect" coords="373,128,475,107"> <area href="class_xalandocumentfragment.html" shape="rect" coords="499,128,656,107"> <area href="class_xalandomstring.html" shape="rect" coords="680,128,789,107"> </map><p> <a href="class_formattertodom-members.html">List of all members.</a><h2>Public Methods</h2> <ul> <li><a class="el" href="class_formattertodom.html#a0">FormatterToDOM</a> ( <a class="el" href="class_xalandocument.html">XalanDocument</a>* doc, <a class="el" href="class_xalandocumentfragment.html">XalanDocumentFragment</a>* docFrag, <a class="el" href="class_xalanelement.html">XalanElement</a>* currentElement) <dl class="el"><dd><font size=-1><em>Construct a FormatterToDOM instance.</em> <a href="#a0">More...</a><em></em></font></dl><li><a class="el" href="class_formattertodom.html#a1">FormatterToDOM</a> ( <a class="el" href="class_xalandocument.html">XalanDocument</a>* doc, <a class="el" href="class_xalanelement.html">XalanElement</a>* elem) <dl class="el"><dd><font size=-1><em>Construct a FormatterToDOM instance.</em> <a href="#a1">More...</a><em></em></font></dl><li>virtual <a class="el" href="class_formattertodom.html#a2">~FormatterToDOM</a> () <li>virtual void <a class="el" href="class_formattertodom.html#a3">charactersRaw</a> ( const XMLCh* const chars, const unsigned int length) <li>virtual void <a class="el" href="class_formattertodom.html#a4">comment</a> (const XMLCh* const data) <dl class="el"><dd><font size=-1><em>Called when a Comment is to be constructed.</em> <a href="#a4">More...</a><em></em></font></dl><li>virtual void <a class="el" href="class_formattertodom.html#a5">cdata</a> ( const XMLCh* const ch, const unsigned int length) <li>virtual void <a class="el" href="class_formattertodom.html#a6">entityReference</a> (const XMLCh* const name) <dl class="el"><dd><font size=-1><em>Receive notification of a entityReference.</em> <a href="#a6">More...</a><em></em></font></dl><li>virtual void <a class="el" href="class_formattertodom.html#a7">setDocumentLocator</a> (const <a class="el" href="class_locator.html">Locator</a>* const locator) <li>virtual void <a class="el" href="class_formattertodom.html#a8">startDocument</a> () <li>virtual void <a class="el" href="class_formattertodom.html#a9">endDocument</a> () <li>virtual void <a class="el" href="class_formattertodom.html#a10">startElement</a> ( const XMLCh* const name, <a class="el" href="class_attributelist.html">AttributeList</a>& attrs) <li>virtual void <a class="el" href="class_formattertodom.html#a11">endElement</a> (const XMLCh* const name) <li>virtual void <a class="el" href="class_formattertodom.html#a12">characters</a> ( const XMLCh* const chars, const unsigned int length) <li>virtual void <a class="el" href="class_formattertodom.html#a13">ignorableWhitespace</a> ( const XMLCh* const chars, const unsigned int length) <li>virtual void <a class="el" href="class_formattertodom.html#a14">processingInstruction</a> ( const XMLCh* const target, const XMLCh* const data) <li>virtual void <a class="el" href="class_formattertodom.html#a15">resetDocument</a> () <li><a class="el" href="class_xalandocument.html">XalanDocument</a>* <a class="el" href="class_formattertodom.html#a16">getDocument</a> () const <li>void <a class="el" href="class_formattertodom.html#a17">setDocument</a> (<a class="el" href="class_xalandocument.html">XalanDocument</a>* theDocument) <li><a class="el" href="class_xalandocumentfragment.html">XalanDocumentFragment</a>* <a class="el" href="class_formattertodom.html#a18">getDocumentFragment</a> () const <li>void <a class="el" href="class_formattertodom.html#a19">setDocumentFragment</a> (<a class="el" href="class_xalandocumentfragment.html">XalanDocumentFragment</a>* theDocumentFragment) <li><a class="el" href="class_xalanelement.html">XalanElement</a>* <a class="el" href="class_formattertodom.html#a20">getCurrentElement</a> () const <li>void <a class="el" href="class_formattertodom.html#a21">setCurrentElement</a> (<a class="el" href="class_xalanelement.html">XalanElement</a>* theElement) </ul> <hr><a name="_details"></a><h2>Detailed Description</h2> This class takes SAX events (in addition to some extra events that SAX doesn't handle yet) and adds the result to a document or document fragment. <p> <p> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="FormatterToDOM::FormatterToDOM"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> FormatterToDOM::FormatterToDOM ( </b></td> <td><b> <a class="el" href="class_xalandocument.html">XalanDocument</a> * <em>doc</em>, </b></td></tr> <tr><td></td><td><b> <a class="el" href="class_xalandocumentfragment.html">XalanDocumentFragment</a> * <em>docFrag</em>, </b></td></tr> <tr><td></td><td><b> <a class="el" href="class_xalanelement.html">XalanElement</a> * <em>currentElement</em>)</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> Construct a FormatterToDOM instance. <p> it will add the DOM nodes to the document fragment. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>doc</em> </td><td> document for nodes </td></tr> <tr><td valign=top><em>docFrag</em> </td><td> document fragment for nodes </td></tr> <tr><td valign=top><em>currentElement</em> </td><td> current element for nodes </td></tr> </table> </dl></div> <a name="a1" doxytag="FormatterToDOM::FormatterToDOM"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> FormatterToDOM::FormatterToDOM ( </b></td> <td><b> <a class="el" href="class_xalandocument.html">XalanDocument</a> * <em>doc</em>, </b></td></tr> <tr><td></td><td><b> <a class="el" href="class_xalanelement.html">XalanElement</a> * <em>elem</em>)</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> Construct a FormatterToDOM instance. <p> it will add the DOM nodes to the document. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>doc</em> </td><td> document for nodes </td></tr> <tr><td valign=top><em>elem</em> </td><td> current element for nodes </td></tr> </table> </dl></div> <a name="a2" doxytag="FormatterToDOM::~FormatterToDOM"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> virtual FormatterToDOM::~FormatterToDOM ()<code> [virtual]</code></b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> </div> <hr><h2>Member Function Documentation</h2> <a name="a5" doxytag="FormatterToDOM::cdata"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> virtual void FormatterToDOM::cdata ( </b></td> <td><b> const XMLCh * <em>const ch</em>, </b></td></tr> <tr><td></td><td><b> const unsigned int length)<code> [virtual]</code></b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> </div> <a name="a12" doxytag="FormatterToDOM::characters"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> virtual void FormatterToDOM::characters ( </b></td> <td><b> const XMLCh * <em>const chars</em>, </b></td></tr> <tr><td></td><td><b> const unsigned int length)<code> [virtual]</code></b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> </div> <a name="a3" doxytag="FormatterToDOM::charactersRaw"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> virtual void FormatterToDOM::charactersRaw ( </b></td> <td><b> const XMLCh * <em>const chars</em>, </b></td></tr> <tr><td></td><td><b> const unsigned int length)<code> [virtual]</code></b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> </div> <a name="a4" doxytag="FormatterToDOM::comment"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> virtual void FormatterToDOM::comment ( </b></td> <td><b> const XMLCh * <em>const data</em>)<code> [virtual]</code></b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> Called when a Comment is to be constructed. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>data</em> </td><td> pointer to comment data </td></tr> </table> </dl><dl compact><dt> <b>Exceptions: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>SAXException</em> </td><td> </td></tr> </table> </dl> <p> Reimplemented from <a class="el" href="class_formatterlistener.html#a6">FormatterListener</a>.</div> <a name="a9" doxytag="FormatterToDOM::endDocument"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> virtual void FormatterToDOM::endDocument ()<code> [virtual]</code></b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> <p> Reimplemented from <a class="el" href="class_formatterlistener.html#a10">FormatterListener</a>.</div> <a name="a11" doxytag="FormatterToDOM::endElement"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> virtual void FormatterToDOM::endElement ( </b></td> <td><b> const XMLCh * <em>const name</em>)<code> [virtual]</code></b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> <p> Reimplemented from <a class="el" href="class_formatterlistener.html#a11">FormatterListener</a>.</div> <a name="a6" doxytag="FormatterToDOM::entityReference"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> virtual void FormatterToDOM::entityReference ( </b></td> <td><b> const XMLCh * <em>const name</em>)<code> [virtual]</code></b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> Receive notification of a entityReference. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>data</em> </td><td> pointer to characters from the XML document </td></tr> </table> </dl><dl compact><dt> <b>Exceptions: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>SAXException</em> </td><td> </td></tr> </table> </dl> <p> Reimplemented from <a class="el" href="class_formatterlistener.html#a8">FormatterListener</a>.</div> <a name="a20" doxytag="FormatterToDOM::getCurrentElement"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> <a class="el" href="class_xalanelement.html">XalanElement</a> * FormatterToDOM::getCurrentElement () const</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> </div> <a name="a16" doxytag="FormatterToDOM::getDocument"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> <a class="el" href="class_xalandocument.html">XalanDocument</a> * FormatterToDOM::getDocument () const</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> </div> <a name="a18" doxytag="FormatterToDOM::getDocumentFragment"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> <a class="el" href="class_xalandocumentfragment.html">XalanDocumentFragment</a> * FormatterToDOM::getDocumentFragment () const</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> </div> <a name="a13" doxytag="FormatterToDOM::ignorableWhitespace"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> virtual void FormatterToDOM::ignorableWhitespace ( </b></td> <td><b> const XMLCh * <em>const chars</em>, </b></td></tr> <tr><td></td><td><b> const unsigned int length)<code> [virtual]</code></b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> </div> <a name="a14" doxytag="FormatterToDOM::processingInstruction"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> virtual void FormatterToDOM::processingInstruction ( </b></td> <td><b> const XMLCh * <em>const target</em>, </b></td></tr> <tr><td></td><td><b> const XMLCh * <em>const data</em>)<code> [virtual]</code></b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> <p> Reimplemented from <a class="el" href="class_formatterlistener.html#a13">FormatterListener</a>.</div> <a name="a15" doxytag="FormatterToDOM::resetDocument"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> virtual void FormatterToDOM::resetDocument ()<code> [virtual]</code></b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> <p> Reimplemented from <a class="el" href="class_formatterlistener.html#a14">FormatterListener</a>.</div> <a name="a21" doxytag="FormatterToDOM::setCurrentElement"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> void FormatterToDOM::setCurrentElement ( </b></td> <td><b> <a class="el" href="class_xalanelement.html">XalanElement</a> * <em>theElement</em>)</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> </div> <a name="a17" doxytag="FormatterToDOM::setDocument"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> void FormatterToDOM::setDocument ( </b></td> <td><b> <a class="el" href="class_xalandocument.html">XalanDocument</a> * <em>theDocument</em>)</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> </div> <a name="a19" doxytag="FormatterToDOM::setDocumentFragment"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> void FormatterToDOM::setDocumentFragment ( </b></td> <td><b> <a class="el" href="class_xalandocumentfragment.html">XalanDocumentFragment</a> * <em>theDocumentFragment</em>)</b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> </div> <a name="a7" doxytag="FormatterToDOM::setDocumentLocator"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> virtual void FormatterToDOM::setDocumentLocator ( </b></td> <td><b> const <a class="el" href="class_locator.html">Locator</a> * <em>const locator</em>)<code> [virtual]</code></b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> <p> Reimplemented from <a class="el" href="class_formatterlistener.html#a15">FormatterListener</a>.</div> <a name="a8" doxytag="FormatterToDOM::startDocument"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> virtual void FormatterToDOM::startDocument ()<code> [virtual]</code></b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> <p> Reimplemented from <a class="el" href="class_formatterlistener.html#a16">FormatterListener</a>.</div> <a name="a10" doxytag="FormatterToDOM::startElement"><p> <table width=100% cellpadding=2 cellspacing=0 border=0> <tr> <td class="md"><b> <table cellspadding=0 cellspacing=0 border=0> <tr> <td><b> virtual void FormatterToDOM::startElement ( </b></td> <td><b> const XMLCh * <em>const name</em>, </b></td></tr> <tr><td></td><td><b> <a class="el" href="class_attributelist.html">AttributeList</a> & <em>attrs</em>)<code> [virtual]</code></b></td></tr> </b></td> </tr> </table> </td> </tr> </table> </a> <div class="in"> <p> <p> Reimplemented from <a class="el" href="class_formatterlistener.html#a17">FormatterListener</a>.</div> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="FormatterToDOM.hpp.html">FormatterToDOM.hpp</a></ul> <p align="center"><a href="diagramnotes.html">Interpreting class diagrams</a></p> <p><FONT color="#000000" face="arial,helvetica,sanserif" size="-1"> <i><A href="http://www.stack.nl/~dimitri/doxygen/">Doxygen</A> and <A href="http://www.research.att.com/sw/tools/graphviz/">GraphViz</A> are used to generate this API documentation from the Xalan-C header files.</I></FONT></p> <TABLE border="0" cellpadding="0" cellspacing="0" width="820"><TR><TD bgcolor="#0086b2"><IMG height="1" src="images/dot.gif" width="1"></TD></TR></TABLE> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="80%"> <TR> <TD WIDTH="80%" VALIGN="TOP"> <P ALIGN="CENTER"><B>Xalan-C++ XSLT Processor Version 1.4</B><BR> Copyright © 2000, 2001, 2002 The Apache Software Foundation. All Rights Reserved.</i></p> </TD> </TR> <TR> <TD WIDTH="100%"> <P ALIGN="CENTER"><IMG SRC="ApacheLogo.jpg" WIDTH="387" HEIGHT="100" ALIGN="BOTTOM" BORDER="0"> </TD> </TR> </TABLE>