<HTML><HEAD><TITLE>Xalan-C++ API Documentation</TITLE></HEAD> <BODY> <h2 align="center">Xalan-C++ API Documentation</h2> <h3 align="center">The Xalan C++ XSL Transformer Version 1.1</h3> </BODY> <!-- Generated by Doxygen 1.2.0 on Thu Feb 15 10:44:18 2001 --> <center> <a class="qindex" href="index.html">Main Page</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>XSLTProcessorEnvSupportDefault.hpp</h1><a href="XSLTProcessorEnvSupportDefault.hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/* </font>00002 <font class="comment"> * The Apache Software License, Version 1.1 </font>00003 <font class="comment"> * </font>00004 <font class="comment"> * </font>00005 <font class="comment"> * Copyright (c) 1999 The Apache Software Foundation. All rights </font>00006 <font class="comment"> * reserved. </font>00007 <font class="comment"> * </font>00008 <font class="comment"> * Redistribution and use in source and binary forms, with or without </font>00009 <font class="comment"> * modification, are permitted provided that the following conditions </font>00010 <font class="comment"> * are met: </font>00011 <font class="comment"> * </font>00012 <font class="comment"> * 1. Redistributions of source code must retain the above copyright </font>00013 <font class="comment"> * notice, this list of conditions and the following disclaimer. </font>00014 <font class="comment"> * </font>00015 <font class="comment"> * 2. Redistributions in binary form must reproduce the above copyright </font>00016 <font class="comment"> * notice, this list of conditions and the following disclaimer in </font>00017 <font class="comment"> * the documentation and/or other materials provided with the </font>00018 <font class="comment"> * distribution. </font>00019 <font class="comment"> * </font>00020 <font class="comment"> * 3. The end-user documentation included with the redistribution, </font>00021 <font class="comment"> * if any, must include the following acknowledgment: </font>00022 <font class="comment"> * "This product includes software developed by the </font>00023 <font class="comment"> * Apache Software Foundation (http://www.apache.org/)." </font>00024 <font class="comment"> * Alternately, this acknowledgment may appear in the software itself, </font>00025 <font class="comment"> * if and wherever such third-party acknowledgments normally appear. </font>00026 <font class="comment"> * </font>00027 <font class="comment"> * 4. The names "Xalan" and "Apache Software Foundation" must </font>00028 <font class="comment"> * not be used to endorse or promote products derived from this </font>00029 <font class="comment"> * software without prior written permission. For written </font>00030 <font class="comment"> * permission, please contact apache@apache.org. </font>00031 <font class="comment"> * </font>00032 <font class="comment"> * 5. Products derived from this software may not be called "Apache", </font>00033 <font class="comment"> * nor may "Apache" appear in their name, without prior written </font>00034 <font class="comment"> * permission of the Apache Software Foundation. </font>00035 <font class="comment"> * </font>00036 <font class="comment"> * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED </font>00037 <font class="comment"> * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES </font>00038 <font class="comment"> * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE </font>00039 <font class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR </font>00040 <font class="comment"> * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, </font>00041 <font class="comment"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT </font>00042 <font class="comment"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF </font>00043 <font class="comment"> * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND </font>00044 <font class="comment"> * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, </font>00045 <font class="comment"> * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT </font>00046 <font class="comment"> * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF </font>00047 <font class="comment"> * SUCH DAMAGE. </font>00048 <font class="comment"> * ==================================================================== </font>00049 <font class="comment"> * </font>00050 <font class="comment"> * This software consists of voluntary contributions made by many </font>00051 <font class="comment"> * individuals on behalf of the Apache Software Foundation and was </font>00052 <font class="comment"> * originally based on software copyright (c) 1999, International </font>00053 <font class="comment"> * Business Machines, Inc., http://www.ibm.com. For more </font>00054 <font class="comment"> * information on the Apache Software Foundation, please see </font>00055 <font class="comment"> * <http://www.apache.org/>. </font>00056 <font class="comment"> * </font>00057 <font class="comment"> * @author <a href="mailto:david_n_bertoni@lotus.com">David N. Bertoni</a> </font>00058 <font class="comment"> */</font> 00059 <font class="preprocessor">#if !defined(XSLTPROCESSORENVSUPPORTDEFAULT_HEADER_GUARD_1357924680) </font><a name="l00060"></a><a class="code" href="XSLTProcessorEnvSupportDefault.hpp.html#a0">00060</a> <font class="preprocessor"></font><font class="preprocessor">#define XSLTPROCESSORENVSUPPORTDEFAULT_HEADER_GUARD_1357924680 </font>00061 <font class="preprocessor"></font> 00062 00063 00064 <font class="comment">// Base include file. Must be first.</font> 00065 <font class="preprocessor">#include <<a class="code" href="XSLTDefinitions.hpp.html">XSLT/XSLTDefinitions.hpp</a>></font> 00066 00067 00068 00069 <font class="preprocessor">#include <map></font> 00070 00071 00072 00073 <font class="comment">// Base class header file...</font> 00074 <font class="preprocessor">#include <<a class="code" href="XSLTProcessorEnvSupport.hpp.html">XSLT/XSLTProcessorEnvSupport.hpp</a>></font> 00075 00076 00077 00078 <font class="preprocessor">#include <<a class="code" href="XPathEnvSupportDefault.hpp.html">XPath/XPathEnvSupportDefault.hpp</a>></font> 00079 00080 00081 00082 <font class="keyword">class </font><a class="code" href="class_xsltprocessor.html">XSLTProcessor</a>; 00083 00084 00085 <a name="l00086"></a><a class="code" href="class_xsltprocessorenvsupportdefault.html">00086</a> <font class="keyword">class </font>XALAN_XSLT_EXPORT <a class="code" href="class_xsltprocessorenvsupportdefault.html">XSLTProcessorEnvSupportDefault</a> : <font class="keyword">public</font> <a class="code" href="class_xsltprocessorenvsupport.html">XSLTProcessorEnvSupport</a> 00087 { 00088 <font class="keyword">public</font>: 00089 00090 <a class="code" href="class_xsltprocessorenvsupportdefault.html#a0">XSLTProcessorEnvSupportDefault</a>(<a class="code" href="class_xsltprocessor.html">XSLTProcessor</a>* theProcessor = 0); 00091 00092 <font class="keyword">virtual</font> 00093 <a class="code" href="class_xsltprocessorenvsupportdefault.html#a1">~XSLTProcessorEnvSupportDefault</a>(); 00094 00100 <font class="keywordtype">void</font> <a name="l00101"></a><a class="code" href="class_xsltprocessorenvsupportdefault.html#a2">00101</a> <a class="code" href="class_xsltprocessorenvsupportdefault.html#a2">setProcessor</a>(<a class="code" href="class_xsltprocessor.html">XSLTProcessor</a>* theProcessor)<font class="keyword"> </font>00102 <font class="keyword"> </font>{ 00103 m_processor = theProcessor; 00104 } 00105 00106 00114 <font class="keyword">static</font> <font class="keywordtype">void</font> 00115 <a class="code" href="class_xsltprocessorenvsupportdefault.html#d0">installExternalFunctionGlobal</a>( 00116 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& theNamespace, 00117 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& functionName, 00118 <font class="keyword">const</font> <a class="code" href="class_function.html">Function</a>& function); 00119 00126 <font class="keyword">static</font> <font class="keywordtype">void</font> 00127 <a class="code" href="class_xsltprocessorenvsupportdefault.html#d1">uninstallExternalFunctionGlobal</a>( 00128 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& theNamespace, 00129 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& functionName); 00130 00131 <font class="comment">// Interfaces to install and uninstall external functions in this instance.</font> 00132 00140 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00141 <a class="code" href="class_xsltprocessorenvsupportdefault.html#a3">installExternalFunctionLocal</a>( 00142 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& theNamespace, 00143 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& functionName, 00144 <font class="keyword">const</font> <a class="code" href="class_function.html">Function</a>& function); 00145 00152 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00153 <a class="code" href="class_xsltprocessorenvsupportdefault.html#a4">uninstallExternalFunctionLocal</a>( 00154 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& theNamespace, 00155 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& functionName); 00156 00157 <font class="comment">// These interfaces are inherited from XPathEnvSupport...</font> 00158 00159 <font class="keyword">virtual</font> <a class="code" href="class_xalandocument.html">XalanDocument</a>* 00160 <a class="code" href="class_xsltprocessorenvsupport.html#a2">parseXML</a>( 00161 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& urlString, 00162 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& base); 00163 00164 <font class="keyword">virtual</font> <a class="code" href="class_xalandocument.html">XalanDocument</a>* 00165 <a class="code" href="class_xsltprocessorenvsupport.html#a3">getSourceDocument</a>(<font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& theURI) <font class="keyword">const</font>; 00166 00167 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00168 <a class="code" href="class_xsltprocessorenvsupport.html#a4">setSourceDocument</a>( 00169 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& theURI, 00170 <a class="code" href="class_xalandocument.html">XalanDocument</a>* theDocument); 00171 00172 <font class="keyword">virtual</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a> 00173 <a class="code" href="class_xsltprocessorenvsupport.html#a5">findURIFromDoc</a>(<font class="keyword">const</font> <a class="code" href="class_xalandocument.html">XalanDocument</a>* owner) <font class="keyword">const</font>; 00174 00175 <font class="keyword">virtual</font> <a class="code" href="class_xalandocument.html">XalanDocument</a>* 00176 <a class="code" href="class_xsltprocessorenvsupport.html#a6">getDOMFactory</a>() <font class="keyword">const</font>; 00177 00178 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> 00179 <a class="code" href="class_xsltprocessorenvsupport.html#a7">elementAvailable</a>( 00180 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& theNamespace, 00181 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& elementName) <font class="keyword">const</font>; 00182 00183 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> 00184 <a class="code" href="class_xsltprocessorenvsupport.html#a8">functionAvailable</a>( 00185 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& theNamespace, 00186 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& functionName) <font class="keyword">const</font>; 00187 00188 <font class="keyword">virtual</font> <a class="code" href="class_xobjectptr.html">XObjectPtr</a> 00189 <a class="code" href="class_xsltprocessorenvsupport.html#a9">extFunction</a>( 00190 <a class="code" href="class_xpathexecutioncontext.html">XPathExecutionContext</a>& executionContext, 00191 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& theNamespace, 00192 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& functionName, 00193 <a class="code" href="class_xalannode.html">XalanNode</a>* context, 00194 <font class="keyword">const</font> <a class="code" href="class_xpathexecutioncontext.html">XObjectArgVectorType</a>& argVec) <font class="keyword">const</font>; 00195 00196 <font class="keyword">virtual</font> <a class="code" href="class_xlocator.html">XLocator</a>* 00197 <a class="code" href="class_xsltprocessorenvsupport.html#a10">getXLocatorFromNode</a>(<font class="keyword">const</font> <a class="code" href="class_xalannode.html">XalanNode</a>* node) <font class="keyword">const</font>; 00198 00199 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00200 <a class="code" href="class_xsltprocessorenvsupport.html#a11">associateXLocatorToNode</a>( 00201 <font class="keyword">const</font> <a class="code" href="class_xalannode.html">XalanNode</a>* node, 00202 <a class="code" href="class_xlocator.html">XLocator</a>* xlocator); 00203 00204 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> 00205 <a class="code" href="class_xsltprocessorenvsupport.html#a12">shouldStripSourceNode</a>( 00206 <a class="code" href="class_xpathexecutioncontext.html">XPathExecutionContext</a>& executionContext, 00207 <font class="keyword">const</font> <a class="code" href="class_xalannode.html">XalanNode</a>& node) <font class="keyword">const</font>; 00208 00209 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> 00210 <a class="code" href="class_xsltprocessorenvsupport.html#a13">problem</a>( 00211 eSource where, 00212 eClassification classification, 00213 <font class="keyword">const</font> <a class="code" href="class_xalannode.html">XalanNode</a>* styleNode, 00214 <font class="keyword">const</font> <a class="code" href="class_xalannode.html">XalanNode</a>* sourceNode, 00215 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& msg, 00216 <font class="keywordtype">int</font> lineNo, 00217 <font class="keywordtype">int</font> charOffset) <font class="keyword">const</font>; 00218 00219 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> 00220 <a class="code" href="class_xsltprocessorenvsupport.html#a13">problem</a>( 00221 eSource where, 00222 eClassification classification, 00223 <font class="keyword">const</font> <a class="code" href="class_prefixresolver.html">PrefixResolver</a>* resolver, 00224 <font class="keyword">const</font> <a class="code" href="class_xalannode.html">XalanNode</a>* sourceNode, 00225 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& msg, 00226 <font class="keywordtype">int</font> lineNo, 00227 <font class="keywordtype">int</font> charOffset) <font class="keyword">const</font>; 00228 00229 <font class="comment">// These interfaces are inherited from Resettable...</font> 00230 00231 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00232 <a class="code" href="class_xsltprocessorenvsupport.html#a15">reset</a>(); 00233 00234 <font class="preprocessor">#if defined(XALAN_NO_NAMESPACES) </font>00235 <font class="preprocessor"></font> <font class="keyword">typedef</font> map<<font class="keyword">const</font> <a class="code" href="class_xalannode.html">XalanNode</a>*, 00236 <a class="code" href="class_xlocator.html">XLocator</a>*, 00237 less<<font class="keyword">const</font> <a class="code" href="class_xalannode.html">XalanNode</a>*> > XLocatorTableType; 00238 <font class="preprocessor">#else </font><a name="l00239"></a><a class="code" href="class_xsltprocessorenvsupportdefault.html#s0">00239</a> <font class="preprocessor"></font> <font class="keyword">typedef</font> std::map<<font class="keyword">const</font> <a class="code" href="class_xalannode.html">XalanNode</a>*, <a class="code" href="class_xlocator.html">XLocator</a>*> XLocatorTableType; 00240 <font class="preprocessor">#endif </font>00241 <font class="preprocessor"></font> 00242 <font class="keyword">private</font>: 00243 00244 <font class="comment">// These are not implemented...</font> 00245 <a class="code" href="class_xsltprocessorenvsupportdefault.html#a0">XSLTProcessorEnvSupportDefault</a>(<font class="keyword">const</font> <a class="code" href="class_xsltprocessorenvsupportdefault.html">XSLTProcessorEnvSupportDefault</a>&); 00246 00247 <a class="code" href="class_xsltprocessorenvsupportdefault.html">XSLTProcessorEnvSupportDefault</a>& 00248 operator=(<font class="keyword">const</font> <a class="code" href="class_xsltprocessorenvsupportdefault.html">XSLTProcessorEnvSupportDefault</a>&); 00249 00250 <font class="keywordtype">bool</font> 00251 operator==(<font class="keyword">const</font> <a class="code" href="class_xsltprocessorenvsupportdefault.html">XSLTProcessorEnvSupportDefault</a>&) <font class="keyword">const</font>; 00252 00253 00254 <font class="comment">// Data members...</font> 00255 00256 <a class="code" href="class_xpathenvsupportdefault.html">XPathEnvSupportDefault</a> m_defaultSupport; 00257 00258 <a class="code" href="class_xsltprocessor.html">XSLTProcessor</a>* m_processor; 00259 00260 XLocatorTableType m_xlocatorTable; 00261 }; 00262 00263 00264 00265 <font class="preprocessor">#endif // XSLTPROCESSORENVSUPPORTDEFAULT_HEADER_GUARD_1357924680 </font></div></pre><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++ XSL Transformer Version 1.1</B><BR> Copyright © 2000, 2001 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>