16 #if !defined(XALANTRANSFORMER_HEADER_GUARD)
17 #define XALANTRANSFORMER_HEADER_GUARD
27 #if defined(XALAN_CLASSIC_IOSTREAMS)
49 XALAN_DECLARE_XERCES_CLASS(EntityResolver)
50 XALAN_DECLARE_XERCES_CLASS(ErrorHandler)
54 XALAN_CPP_NAMESPACE_BEGIN
86 #if defined(XALAN_NO_STD_NAMESPACE)
100 return m_memoryManager;
106 return m_memoryManager;
171 const XalanParsedSource& theParsedXML,
175 return doTransform(theParsedXML, 0, &theStylesheetSource, theResultTarget);
189 const XalanParsedSource& theParsedXML,
190 const XalanCompiledStylesheet* theCompiledStylesheet,
193 assert(theCompiledStylesheet != 0);
195 return doTransform(theParsedXML, theCompiledStylesheet, 0, theResultTarget);
209 const XalanParsedSource& theParsedXML,
212 assert(s_emptyInputSource != 0);
214 return transform(theParsedXML, *s_emptyInputSource, theResultTarget);
249 assert(s_emptyInputSource != 0);
279 void* theOutputHandle,
297 const XalanCompiledStylesheet* theCompiledStylesheet,
320 const XalanParsedSource& theParsedSource,
321 const XalanCompiledStylesheet* theCompiledStylesheet,
322 void* theOutputHandle,
346 void* theOutputHandle,
365 const XalanCompiledStylesheet*& theCompiledStylesheet);
375 destroyStylesheet(
const XalanCompiledStylesheet* theStylesheet);
393 const XalanParsedSource*& theParsedSource,
394 bool useXercesDOM =
false);
403 destroyParsedSource(
const XalanParsedSource* theParsedSource);
415 XalanDocumentBuilder*
426 destroyDocumentBuilder(XalanDocumentBuilder* theDocumentBuilder);
436 installExternalFunction(
439 const Function&
function);
449 installExternalFunctionGlobal(
452 const Function&
function);
461 uninstallExternalFunction(
472 uninstallExternalFunctionGlobal(
498 const char* expression);
510 m_traceListeners.push_back(theTraceListener);
520 removeTraceListener(TraceListener* theTraceListener);
528 m_traceListeners.clear();
540 return m_useValidation;
552 m_useValidation = fValue;
563 return m_entityResolver;
578 m_entityResolver = theResolver;
589 return m_errorHandler;
600 m_errorHandler = theErrorHandler;
612 return m_externalSchemaLocation.empty() ==
true ? 0 : m_externalSchemaLocation.c_str();
624 assert(location != 0);
626 m_externalSchemaLocation = location;
638 return m_externalNoNamespaceSchemaLocation.empty() ==
true ? 0 : m_externalNoNamespaceSchemaLocation.c_str();
650 assert(location != 0);
652 m_externalNoNamespaceSchemaLocation = location;
664 return m_poolAllTextNodes;
678 m_poolAllTextNodes = fPool;
689 return m_problemListener;
700 m_problemListener = theProblemListener;
712 assert(m_errorMessage.empty() ==
false);
714 return &m_errorMessage[0];
726 return m_outputEncoding;
740 m_outputEncoding = theEncoding;
757 setIndent(
int indentAmount);
777 getEscapeURLs()
const;
787 setEscapeURLs(eEscapeURLs value);
808 getOmitMETATag()
const;
818 setOmitMETATag(eOmitMETATag value);
831 m_warningStream = theStream;
842 return m_warningStream;
847 typedef XALAN_STD_QUALIFIER pair<XalanDOMString*, XalanDOMString*>
ParamPairType;
858 m_memoryManagement(theManager),
885 XalanTransformer& theTransformer,
886 const XalanParsedSource* theParsedSource) :
887 m_transformer(theTransformer),
888 m_parsedSource(theParsedSource)
894 m_transformer.destroyParsedSource(m_parsedSource);
899 XalanTransformer& m_transformer;
901 const XalanParsedSource*
const m_parsedSource;
907 XalanTransformer& theTransformer,
908 const XalanCompiledStylesheet* theCompiledStylesheet) :
909 m_transformer(theTransformer),
910 m_compiledStylesheet(theCompiledStylesheet)
916 m_transformer.destroyStylesheet(m_compiledStylesheet);
921 XalanTransformer& m_transformer;
923 const XalanCompiledStylesheet*
const m_compiledStylesheet;
929 XalanTransformer& theTransformer,
930 XalanDocumentBuilder* theDocumentBuilder) :
931 m_transformer(theTransformer),
932 m_documentBuilder(theDocumentBuilder)
938 m_transformer.destroyDocumentBuilder(m_documentBuilder);
943 XalanTransformer& m_transformer;
945 XalanDocumentBuilder*
const m_documentBuilder;
948 #if defined(XALAN_NO_STD_NAMESPACE)
949 struct DeleteParamPairFunctor :
public unary_function<T&, void>
954 #if defined(XALAN_NO_STD_NAMESPACE)
964 m_memoryManager(theManager)
983 T& tmpPair =
const_cast<T&
>(thePair);
985 if (tmpPair.first != 0)
987 deletePtr(tmpPair.first);
989 m_memoryManager.deallocate((
void*)tmpPair.first);
992 if (tmpPair.second != 0)
994 deletePtr(tmpPair.second);
996 m_memoryManager.deallocate((
void*)tmpPair.second);
1018 EnsureReset(XalanTransformer& theTransformer) :
1019 m_transformer(theTransformer)
1027 XalanTransformer& m_transformer;
1030 friend class EnsureReset;
1034 const XalanParsedSource& theParsedXML,
1035 const XalanCompiledStylesheet* theCompiledStylesheet,
1043 CompiledStylesheetPtrVectorType m_compiledStylesheets;
1045 ParsedSourcePtrVectorType m_parsedSources;
1047 ParamPairVectorType m_paramPairs;
1049 FunctionParamPairVectorType m_functionPairs;
1051 TraceListenerVectorType m_traceListeners;
1055 bool m_useValidation;
1057 EntityResolverType* m_entityResolver;
1059 ErrorHandlerType* m_errorHandler;
1065 ProblemListener* m_problemListener;
1067 StreamType* m_warningStream;
1071 bool m_poolAllTextNodes;
1074 StylesheetExecutionContextDefault* m_stylesheetExecutionContext;
1078 static const XSLTInit* s_xsltInit;
1083 XALAN_CPP_NAMESPACE_END
1087 #endif // XALANTRANSFORMER_HEADER_GUARD
Definition: Function.hpp:52
static MemoryManager & getDefaultXercesMemMgr()
Definition: XSLTInit.hpp:51
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
This is the abstract class that the XSL processor uses when it has a problem of some kind...
Definition: ProblemListener.hpp:49
This is abstract base class designed to allow a XalanTranfomer object to use a document that is build...
Definition: XalanDocumentBuilder.hpp:58
static MemoryManager & getDummyMemMgr()
XERCES_CPP_NAMESPACE_QUALIFIER ErrorHandler ErrorHandlerType
Definition: XalanCompiledStylesheetDefault.hpp:53
This is abstract base class designed to allow a XalanTranfomer object to reuse a parsed document...
Definition: XalanParsedSource.hpp:75
Definition: XSLTResultTarget.hpp:47
Definition: TraceListener.hpp:34
This is an abstraction of the StylesheetRoot class.
Definition: XalanCompiledStylesheet.hpp:38
Definition: StylesheetExecutionContextDefault.hpp:86
Definition: XalanDOMString.hpp:42
XERCES_CPP_NAMESPACE_QUALIFIER EntityResolver EntityResolverType
Definition: XMLParserLiaison.hpp:42