16 #if !defined(STYLESHEETCONSTRUCTIONCONTEXTDEFAULT_HEADER_GUARD_1357924680)
17 #define STYLESHEETCONSTRUCTIONCONTEXTDEFAULT_HEADER_GUARD_1357924680
36 #if defined(XALAN_AUTO_PTR_REQUIRES_DEFINITION) || (XALAN_ALLINONE_BUILD_DLL)
81 XALAN_CPP_NAMESPACE_BEGIN
108 eDefaultXalanDOMCharVectorBlockSize = 1024,
109 eDefaultAVTBlockSize = 128,
110 eDefaultAVTPartSimpleBlockSize = 128,
111 eDefaultAVTPartXPathBlockSize = 128,
112 eDefaultXalanQNameByValueBlockSize = 32,
113 eDefaultPointerVectorBlockSize = 512,
114 eDefaultElemApplyTemplatesBlockSize = 10,
115 eDefaultElemAttributeBlockSize = 10,
116 eDefaultElemAttributeSetBlockSize = 10,
117 eDefaultElemCallTemplateBlockSize = 10,
118 eDefaultElemElementBlockSize = 10,
119 eDefaultElemLiteralResultBlockSize = 20,
120 eDefaultElemTemplateBlockSize = 10,
121 eDefaultElemTextLiteralBlockSize = 20,
122 eDefaultElemValueOfBlockSize = 10,
123 eDefaultElemVariableBlockSize = 10,
124 eDefaultMatchPatternDataBlockSize = 10 };
146 VectorAllocatorSizeType theXalanDOMCharVectorAllocatorBlockSize = eDefaultXalanDOMCharVectorBlockSize,
151 VectorAllocatorSizeType thePointerVectorAllocatorBlockSize = eDefaultPointerVectorBlockSize);
212 virtual URLAutoPtrType
219 virtual URLAutoPtrType
238 bool allowVariableReferences =
true,
239 bool allowKeyFunction =
true);
244 const XalanDOMChar* str,
246 bool allowVariableReferences =
true,
247 bool allowKeyFunction =
true);
254 bool allowVariableReferences =
true,
255 bool allowKeyFunction =
true);
260 const XalanDOMChar* str,
262 bool allowVariableReferences =
true,
263 bool allowKeyFunction =
true);
268 const XalanDOMChar* str,
271 bool allowVariableReferences =
true,
272 bool allowKeyFunction =
true);
294 const XalanDOMChar* theAttributeName,
300 const XalanDOMChar* theAttributeName,
306 const XalanDOMChar* theName,
310 virtual eElementToken
321 const XalanDOMChar* theString,
330 virtual XalanDOMChar*
333 virtual XalanDOMChar*
335 const XalanDOMChar* theString,
337 bool fTerminate =
true);
342 const XalanDOMChar* name,
343 const XalanDOMChar* stringedValue,
348 const XalanDOMChar* theString,
354 const XalanDOMChar* str,
367 const NamespacesStackType& namespaces,
369 bool fUseDefault =
false);
373 const XalanDOMChar* qname,
374 const NamespacesStackType& namespaces,
376 bool fUseDefault =
false);
381 const XalanDOMChar* qnameTokens,
382 const NamespacesStackType& namespaces,
384 bool fUseDefault =
false);
397 const XalanDOMChar* name,
404 const XalanDOMChar* chars,
407 bool disableOutputEscaping,
413 const XalanDOMChar* name,
423 const XPath& theMatchPattern,
436 doAllocateAVTPointerVector(
size_type theSize)
440 #if defined(XALAN_OLD_STYLE_CASTS)
441 return (
const AVT**)m_pointerVectorAllocator.allocate(theSize);
443 return reinterpret_cast<const AVT**
>(m_pointerVectorAllocator.allocate(theSize));
448 doAllocateAVTPartPointerVector(
size_type theSize)
450 assert(
sizeof(
AVTPart**) ==
sizeof(PointerVectorAllocatorType::value_type));
452 #if defined(XALAN_OLD_STYLE_CASTS)
453 return (
const AVTPart**)m_pointerVectorAllocator.allocate(theSize);
455 return reinterpret_cast<const AVTPart**
>(m_pointerVectorAllocator.allocate(theSize));
460 doAllocateXalanQNamePointerVector(
size_type theSize)
462 assert(
sizeof(
XalanQName**) ==
sizeof(PointerVectorAllocatorType::value_type));
464 #if defined(XALAN_OLD_STYLE_CASTS)
465 return (
const XalanQName**)m_pointerVectorAllocator.allocate(theSize);
467 return reinterpret_cast<const XalanQName**
>(m_pointerVectorAllocator.allocate(theSize));
478 XPathProcessAutoPtr m_xpathProcessor;
480 StylesheetVectorType m_stylesheets;
484 XalanDOMCharVectorAllocatorType m_xalanDOMCharVectorAllocator;
502 PointerVectorAllocatorType m_pointerVectorAllocator;
504 ElemTemplateElementVectorType m_allocatedElements;
533 static const XalanDOMChar s_if[];
536 static const XalanDOMChar s_key[];
539 static const XalanDOMChar s_copy[];
542 static const XalanDOMChar s_sort[];
545 static const XalanDOMChar s_text[];
548 static const XalanDOMChar s_when[];
551 static const XalanDOMChar s_empty[];
554 static const XalanDOMChar s_param[];
557 static const XalanDOMChar s_choose[];
560 static const XalanDOMChar s_import[];
563 static const XalanDOMChar s_number[];
566 static const XalanDOMChar s_output[];
569 static const XalanDOMChar s_comment[];
572 static const XalanDOMChar s_copyOf[];
575 static const XalanDOMChar s_element[];
578 static const XalanDOMChar s_include[];
581 static const XalanDOMChar s_message[];
584 static const XalanDOMChar s_fallback[];
587 static const XalanDOMChar s_forEach[];
590 static const XalanDOMChar s_template[];
593 static const XalanDOMChar s_valueOf[];
596 static const XalanDOMChar s_variable[];
599 static const XalanDOMChar s_attribute[];
602 static const XalanDOMChar s_otherwise[];
605 static const XalanDOMChar s_transform[];
608 static const XalanDOMChar s_stylesheet[];
611 static const XalanDOMChar s_withParam[];
614 static const XalanDOMChar s_stripSpace[];
617 static const XalanDOMChar s_applyImports[];
620 static const XalanDOMChar s_attributeSet[];
623 static const XalanDOMChar s_callTemplate[];
626 static const XalanDOMChar s_decimalFormat[];
629 static const XalanDOMChar s_preserveSpace[];
632 static const XalanDOMChar s_applyTemplates[];
635 static const XalanDOMChar s_namespaceAlias[];
638 static const XalanDOMChar s_processingInstruction[];
642 struct ElementTokenTableEntry
644 const XalanDOMChar* m_name;
646 eElementToken m_token;
649 static const ElementTokenTableEntry s_elementTokenTable[];
651 static const unsigned int s_elementTokenTableSize;
653 static const ElementTokenTableEntry& s_elementTokenTableLast;
655 static const ElementTokenTableEntry& s_elementTokenTableDummy;
660 XALAN_CPP_NAMESPACE_END
664 #endif // STYLESHEETCONSTRUCTIONCONTEXTDEFAULT_HEADER_GUARD_1357924680