00001 /* 00002 * The Apache Software License, Version 1.1 00003 * 00004 * 00005 * Copyright (c) 1999 The Apache Software Foundation. All rights 00006 * reserved. 00007 * 00008 * Redistribution and use in source and binary forms, with or without 00009 * modification, are permitted provided that the following conditions 00010 * are met: 00011 * 00012 * 1. Redistributions of source code must retain the above copyright 00013 * notice, this list of conditions and the following disclaimer. 00014 * 00015 * 2. Redistributions in binary form must reproduce the above copyright 00016 * notice, this list of conditions and the following disclaimer in 00017 * the documentation and/or other materials provided with the 00018 * distribution. 00019 * 00020 * 3. The end-user documentation included with the redistribution, 00021 * if any, must include the following acknowledgment: 00022 * "This product includes software developed by the 00023 * Apache Software Foundation (http://www.apache.org/)." 00024 * Alternately, this acknowledgment may appear in the software itself, 00025 * if and wherever such third-party acknowledgments normally appear. 00026 * 00027 * 4. The names "Xalan" and "Apache Software Foundation" must 00028 * not be used to endorse or promote products derived from this 00029 * software without prior written permission. For written 00030 * permission, please contact apache@apache.org. 00031 * 00032 * 5. Products derived from this software may not be called "Apache", 00033 * nor may "Apache" appear in their name, without prior written 00034 * permission of the Apache Software Foundation. 00035 * 00036 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 00037 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 00038 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00039 * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR 00040 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00041 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00042 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 00043 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00044 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00045 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 00046 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00047 * SUCH DAMAGE. 00048 * ==================================================================== 00049 * 00050 * This software consists of voluntary contributions made by many 00051 * individuals on behalf of the Apache Software Foundation and was 00052 * originally based on software copyright (c) 1999, International 00053 * Business Machines, Inc., http://www.ibm.com. For more 00054 * information on the Apache Software Foundation, please see 00055 * <http://www.apache.org/>. 00056 * 00057 * $ Id: $ 00058 * 00059 */ 00060 00061 #if !defined(XALAN_XSLTPROCESSOR_HEADER_GUARD) 00062 #define XALAN_XSLTPROCESSOR_HEADER_GUARD 00063 00064 00065 00066 // Base include file. Must be first. 00067 #include "XSLTDefinitions.hpp" 00068 00069 00070 00071 #include <cstddef> 00072 00073 00074 00075 #include <XalanDOM/XalanDOMString.hpp> 00076 00077 00078 00079 class ElemTemplateElement; 00080 class FormatterListener; 00081 class GenerateEvent; 00082 class Locator; 00083 class NodeRefListBase; 00084 class PrefixResolver; 00085 class PrintWriter; 00086 class ResultTreeFragBase; 00087 class SelectionEvent; 00088 class StylesheetConstructionContext; 00089 class StylesheetExecutionContext; 00090 class StylesheetRoot; 00091 class TraceListener; 00092 class TracerEvent; 00093 class XalanDocument; 00094 class XalanElement; 00095 class XalanNode; 00096 class XMLParserLiaison; 00097 class XObject; 00098 class XObjectPtr; 00099 class XPath; 00100 class XPathExecutionContext; 00101 class XSLTInputSource; 00102 class XSLTResultTarget; 00103 00104 00105 00116 class XALAN_XSLT_EXPORT XSLTProcessor 00117 { 00118 public: 00119 00120 typedef size_t size_type; 00121 00122 XSLTProcessor(); 00123 00124 virtual 00125 ~XSLTProcessor(); 00126 00139 virtual void 00140 process( 00141 const XSLTInputSource& inputSource, 00142 const XSLTInputSource& stylesheetSource, 00143 XSLTResultTarget& outputTarget, 00144 StylesheetConstructionContext& constructionContext, 00145 StylesheetExecutionContext& executionContext) = 0; 00146 00158 virtual void 00159 process( 00160 const XSLTInputSource& inputSource, 00161 XSLTResultTarget& outputTarget, 00162 StylesheetExecutionContext& executionContext) = 0; 00163 00173 virtual StylesheetRoot* 00174 processStylesheet( 00175 const XSLTInputSource& stylesheetSource, 00176 StylesheetConstructionContext& constructionContext) = 0; 00177 00187 virtual StylesheetRoot* 00188 processStylesheet( 00189 const XalanDOMString& xsldocURLString, 00190 StylesheetConstructionContext& constructionContext) = 0; 00191 00196 virtual void 00197 reset() = 0; 00198 00204 virtual XalanDocument* 00205 getDOMFactory() const = 0; 00206 00213 virtual XalanNode* 00214 getSourceTreeFromInput(const XSLTInputSource& inputSource) = 0; 00215 00221 virtual const StylesheetRoot* 00222 getStylesheetRoot() const = 0; 00223 00229 virtual void 00230 setStylesheetRoot(const StylesheetRoot* theStylesheet) = 0; 00231 00238 virtual void 00239 setExecutionContext(StylesheetExecutionContext* theExecutionContext) = 0; 00240 00244 virtual void 00245 resolveTopLevelParams(StylesheetExecutionContext& executionContext) = 0; 00246 00252 virtual XMLParserLiaison& 00253 getXMLParserLiaison() const = 0; 00254 00260 virtual const XalanDOMString 00261 getUniqueNamespaceValue() = 0; 00262 00268 virtual void 00269 getUniqueNamespaceValue(XalanDOMString& theValue) = 0; 00270 00278 virtual void 00279 setStylesheetParam( 00280 const XalanDOMString& key, 00281 XObjectPtr value) = 0; 00282 00290 virtual void 00291 setStylesheetParam( 00292 const XalanDOMString& key, 00293 const XalanDOMString& expression) = 0; 00294 00308 virtual bool 00309 shouldStripSourceNode( 00310 XPathExecutionContext& executionContext, 00311 const XalanNode& node) const = 0; 00312 00318 virtual FormatterListener* 00319 getFormatterListener() const = 0; 00320 00326 virtual void 00327 setFormatterListener(FormatterListener* flistener) = 0; 00328 00334 virtual size_type 00335 getTraceListeners() const = 0; 00336 00342 virtual void 00343 addTraceListener(TraceListener* tl) = 0; 00344 00350 virtual void 00351 removeTraceListener(TraceListener* tl) = 0; 00352 00358 virtual void 00359 fireGenerateEvent(const GenerateEvent& ge) = 0; 00360 00366 virtual void 00367 fireTraceEvent(const TracerEvent& te) = 0; 00368 00374 virtual void 00375 fireSelectEvent(const SelectionEvent& se) = 0; 00376 00382 virtual bool 00383 getTraceSelects() const = 0; 00384 00393 virtual void 00394 traceSelect( 00395 StylesheetExecutionContext& executionContext, 00396 const ElemTemplateElement& theStylesheetElement, 00397 const NodeRefListBase& nl, 00398 const XPath* xpath) const = 0; 00399 00408 virtual void 00409 setQuietConflictWarnings(bool b) = 0; 00410 00419 virtual void 00420 setDiagnosticsOutput(PrintWriter* pw) = 0; 00421 00429 virtual void 00430 message( 00431 const XalanDOMString& msg, 00432 const XalanNode* sourceNode = 0, 00433 const XalanNode* styleNode = 0) const = 0; 00434 00442 virtual void 00443 message( 00444 const XalanDOMString& msg, 00445 const XalanNode* sourceNode, 00446 const ElemTemplateElement* styleNode) const = 0; 00447 00455 virtual void 00456 message( 00457 const XalanDOMString& msg, 00458 const Locator& locator, 00459 const XalanNode* sourceNode = 0) const = 0; 00460 00468 virtual void 00469 warn( 00470 const XalanDOMString& msg, 00471 const XalanNode* sourceNode = 0, 00472 const XalanNode* styleNode = 0) const = 0; 00473 00481 virtual void 00482 warn( 00483 const XalanDOMString& msg, 00484 const XalanNode* sourceNode, 00485 const ElemTemplateElement* styleNode) const = 0; 00486 00494 virtual void 00495 warn( 00496 const XalanDOMString& msg, 00497 const Locator& locator, 00498 const XalanNode* sourceNode = 0) const = 0; 00499 00507 virtual void 00508 error( 00509 const XalanDOMString& msg, 00510 const XalanNode* sourceNode = 0, 00511 const XalanNode* styleNode = 0) const = 0; 00512 00520 virtual void 00521 error( 00522 const XalanDOMString& msg, 00523 const XalanNode* sourceNode, 00524 const ElemTemplateElement* styleNode) const = 0; 00525 00533 virtual void 00534 error( 00535 const XalanDOMString& msg, 00536 const Locator& locator, 00537 const XalanNode* sourceNode = 0) const = 0; 00538 }; 00539 00540 00541 00542 #endif // XALAN_XSLTPROCESSOR_HEADER_GUARD
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
![]() |
Xalan-C++ XSLT Processor Version 1.4 |
|