Logo Search packages:      
Sourcecode: xalan version File versions  Download package

StylesheetConstructionContextDefault Class Reference

#include <StylesheetConstructionContextDefault.hpp>

Inheritance diagram for StylesheetConstructionContextDefault:

XPathConstructionContext

List of all members.


Detailed Description

An default implementation of an abtract class which provides support for constructing the internal representation of a stylesheet.

Definition at line 98 of file StylesheetConstructionContextDefault.hpp.


Public Types

enum  {
  eDefaultXalanDOMCharVectorBlockSize = 1024, eDefaultAVTBlockSize = 128, eDefaultAVTPartSimpleBlockSize = 128, eDefaultAVTPartXPathBlockSize = 128,
  eDefaultXalanQNameByValueBlockSize = 32, eDefaultPointerVectorBlockSize = 512, eDefaultElemApplyTemplatesBlockSize = 10, eDefaultElemAttributeBlockSize = 10,
  eDefaultElemAttributeSetBlockSize = 10, eDefaultElemCallTemplateBlockSize = 10, eDefaultElemElementBlockSize = 10, eDefaultElemLiteralResultBlockSize = 20,
  eDefaultElemTemplateBlockSize = 10, eDefaultElemTextLiteralBlockSize = 20, eDefaultElemValueOfBlockSize = 10, eDefaultElemVariableBlockSize = 10,
  eDefaultMatchPatternDataBlockSize = 10
}
enum  eElementToken {
  ELEMNAME_UNDEFINED = -2, ELEMNAME_EMPTY = -1, ELEMNAME_WITH_PARAM, ELEMNAME_APPLY_TEMPLATES,
  ELEMNAME_CHOOSE, ELEMNAME_COMMENT, ELEMNAME_COPY, ELEMNAME_COPY_OF,
  ELEMNAME_ATTRIBUTE, ELEMNAME_ATTRIBUTE_SET, ELEMNAME_EXTENSION, ELEMNAME_FOR_EACH,
  ELEMNAME_KEY, ELEMNAME_IF, ELEMNAME_IMPORT, ELEMNAME_INCLUDE,
  ELEMNAME_CALL_TEMPLATE, ELEMNAME_PARAM, ELEMNAME_NUMBER, ELEMNAME_OTHERWISE,
  ELEMNAME_PI, ELEMNAME_PRESERVE_SPACE, ELEMNAME_TEMPLATE, ELEMNAME_SORT,
  ELEMNAME_STRIP_SPACE, ELEMNAME_STYLESHEET, ELEMNAME_TEXT, ELEMNAME_VALUE_OF,
  ELEMNAME_WHEN, ELEMNAME_FALLBACK, ELEMNAME_ELEMENT, ELEMNAME_APPLY_IMPORTS,
  ELEMNAME_VARIABLE, ELEMNAME_MESSAGE, ELEMNAME_OUTPUT, ELEMNAME_DECIMAL_FORMAT,
  ELEMNAME_NAMESPACE_ALIAS, ELEMNAME_LITERAL_RESULT, ELEMNAME_TEXT_LITERAL_RESULT, ELEMNAME_FORWARD_COMPATIBLE,
  ELEMNAME_EXTENSION_CALL, ELEMNAME_EXTENSION_HANDLER
}
typedef XalanVector
< ElemTemplateElement * > 
ElemTemplateElementVectorType
typedef GetAndReleaseCachedString GetCachedString
typedef
XalanQName::NamespacesStackType 
NamespacesStackType
typedef XalanArrayAllocator
< const void * > 
PointerVectorAllocatorType
typedef size_t size_type
typedef XalanVector
< StylesheetRoot * > 
StylesheetVectorType
typedef URISupport::URLAutoPtrType URLAutoPtrType
typedef
XalanDOMCharVectorAllocatorType::size_type 
VectorAllocatorSizeType
typedef XalanArrayAllocator
< XalanDOMChar > 
XalanDOMCharVectorAllocatorType

Public Member Functions

virtual const AVTPart ** allocateAVTPartPointerVector (size_type theLength)=0
virtual const AVTPart ** allocateAVTPartPointerVector (size_type theLength)
virtual const AVT ** allocateAVTPointerVector (size_type theLength)=0
virtual const AVT ** allocateAVTPointerVector (size_type theLength)
virtual XalanDOMChar * allocateXalanDOMCharVector (const XalanDOMChar *theString, XalanDOMString::size_type theLength=XalanDOMString::npos, bool fTerminate=true)
virtual XalanDOMChar * allocateXalanDOMCharVector (XalanDOMString::size_type theLength)
virtual Stylesheetcreate (StylesheetRoot &theStylesheetRoot, const XalanDOMString &theBaseIdentifier)
virtual StylesheetRootcreate (const XSLTInputSource &theInputSource)
virtual StylesheetRootcreate (const XalanDOMString &theBaseIdentifier)
virtual const AVTcreateAVT (const LocatorType *locator, const XalanDOMChar *name, const XalanDOMChar *stringedValue, const PrefixResolver &resolver)
virtual const AVTPartcreateAVTPart (const LocatorType *locator, const XalanDOMChar *str, XalanDOMString::size_type len, const PrefixResolver &resolver)
virtual const AVTPartcreateAVTPart (const XalanDOMChar *theString, XalanDOMString::size_type theLength=XalanDOMString::npos)
virtual ElemTemplateElement * createElement (Stylesheet &stylesheetTree, const XalanDOMChar *name, const AttributeListType &atts, ExtensionNSHandler &handler, const LocatorType *locator=0)
virtual ElemTemplateElement * createElement (Stylesheet &stylesheetTree, const XalanDOMChar *chars, XalanDOMString::size_type length, bool preserveSpace, bool disableOutputEscaping, const LocatorType *locator=0)
virtual ElemTemplateElement * createElement (int token, Stylesheet &stylesheetTree, const XalanDOMChar *name, const AttributeListType &atts, const LocatorType *locator=0)
virtual ElemTemplateElement * createElement (int token, Stylesheet &stylesheetTree, const AttributeListType &atts, const LocatorType *locator=0)
virtual XPath * createMatchPattern (const LocatorType *locator, const XalanDOMChar *str, const PrefixResolver &resolver, bool allowVariableReferences=true, bool allowKeyFunction=true)
virtual XPath * createMatchPattern (const LocatorType *locator, const XalanDOMString &str, const PrefixResolver &resolver, bool allowVariableReferences=true, bool allowKeyFunction=true)
virtual const
XalanMatchPatternData
createXalanMatchPatternData (const ElemTemplate &theTemplate, size_type thePosition, const XalanDOMString &theTargetString, const XPath &theMatchPattern, const XalanDOMString &thePatternString, XPath::eMatchScore thePriority)=0
virtual const
XalanMatchPatternData
createXalanMatchPatternData (const ElemTemplate &theTemplate, size_type thePosition, const XalanDOMString &theTargetString, const XPath &theMatchPattern, const XalanDOMString &thePatternString, XPath::eMatchScore thePriority)
virtual const XalanQNamecreateXalanQName (const XalanDOMChar *qname, const NamespacesStackType &namespaces, const LocatorType *locator=0, bool fUseDefault=false)
virtual const XalanQNamecreateXalanQName (const XalanDOMString &qname, const NamespacesStackType &namespaces, const LocatorType *locator=0, bool fUseDefault=false)
virtual XPath * createXPath (const LocatorType *locator, const XalanDOMChar *str, XalanDOMString::size_type len, const PrefixResolver &resolver, bool allowVariableReferences=true, bool allowKeyFunction=true)
virtual XPath * createXPath (const LocatorType *locator, const XalanDOMChar *str, const PrefixResolver &resolver, bool allowVariableReferences=true, bool allowKeyFunction=true)
virtual XPath * createXPath (const LocatorType *locator, const XalanDOMString &str, const PrefixResolver &resolver, bool allowVariableReferences=true, bool allowKeyFunction=true)
virtual void destroy (StylesheetRoot *theStylesheetRoot)
virtual void error (const XalanDOMString &msg, const XalanNode *sourceNode, const Locator *locator) const =0
virtual void error (const XalanDOMString &msg, const XalanNode *sourceNode, const LocatorType *locator) const
virtual void error (const XalanDOMString &msg, const XalanNode *sourceNode=0, const ElemTemplateElement *styleNode=0) const
virtual XalanDOMString & getCachedString ()
virtual eElementToken getElementToken (const XalanDOMString &name) const
virtual const LocatorType * getLocatorFromStack () const
MemoryManagerType & getMemoryManager ()
virtual const XalanDOMString & getPooledString (const XalanDOMChar *theString, XalanDOMString::size_type theLength=XalanDOMString::npos)
virtual const XalanDOMString & getPooledString (const XalanDOMString &theString)
virtual URLAutoPtrType getURLFromString (const XalanDOMString &urlString, const XalanDOMString &base)
virtual URLAutoPtrType getURLFromString (const XalanDOMString &urlString)
virtual XalanDOMString & getURLStringFromString (const XalanDOMString &urlString, const XalanDOMString &base, XalanDOMString &theResult)
virtual XalanDOMString & getURLStringFromString (const XalanDOMString &urlString, XalanDOMString &theResult)
virtual const XalanDOMString & getXalanXSLNameSpaceURL () const
virtual const XalanDOMString & getXSLTNamespaceURI () const
virtual double getXSLTVersionSupported () const
virtual bool isValidQName (const XalanDOMChar *theName, const Stylesheet &theStylesheet, const LocatorType *theLocator=0)
virtual bool isXMLSpaceAttribute (const XalanDOMChar *theAttributeName, const Stylesheet &theStylesheet, const LocatorType *theLocator=0)
virtual bool isXSLUseAttributeSetsAttribute (const XalanDOMChar *theAttributeName, const Stylesheet &theStylesheet, const LocatorType *theLocator=0)
virtual void message (const XalanDOMString &msg, const XalanNode *sourceNode, const LocatorType *locator) const
virtual void message (const XalanDOMString &msg, const XalanNode *sourceNode=0, const ElemTemplateElement *styleNode=0) const
virtual XalanDocument * parseXML (const XalanDOMString &urlString, DocumentHandlerType *docHandler, XalanDocument *docToRegister)
virtual void popLocatorStack ()
virtual void pushLocatorOnStack (const LocatorType *locator)
virtual bool releaseCachedString (XalanDOMString &theString)
virtual void reset ()
 StylesheetConstructionContextDefault (MemoryManagerType &theManager, XSLTEngineImpl &processor, XPathFactory &xpathFactory, VectorAllocatorSizeType theXalanDOMCharVectorAllocatorBlockSize=eDefaultXalanDOMCharVectorBlockSize, XalanAVTAllocator::size_type theAVTAllocatorBlockSize=eDefaultAVTBlockSize, XalanAVTPartSimpleAllocator::size_type theAVTPartSimpleAllocatorBlockSize=eDefaultAVTPartSimpleBlockSize, XalanAVTPartXPathAllocator::size_type theAVTPartXPathAllocatorBlockSize=eDefaultAVTPartXPathBlockSize, XalanQNameByValueAllocator::size_type theXalanQNameByValueAllocatorBlockSize=eDefaultXalanQNameByValueBlockSize, VectorAllocatorSizeType thePointerVectorAllocatorBlockSize=eDefaultPointerVectorBlockSize)
virtual const XalanQName ** tokenizeQNames (size_type &count, const XalanDOMChar *qnameTokens, const NamespacesStackType &namespaces, const LocatorType *locator=0, bool fUseDefault=false)=0
virtual const XalanQName ** tokenizeQNames (size_type &count, const XalanDOMChar *qnameTokens, const NamespacesStackType &namespaces, const LocatorType *locator=0, bool fUseDefault=false)
virtual void warn (const XalanDOMString &msg, const XalanNode *sourceNode, const Locator *locator) const =0
virtual void warn (const XalanDOMString &msg, const XalanNode *sourceNode, const LocatorType *locator) const
virtual void warn (const XalanDOMString &msg, const XalanNode *sourceNode=0, const ElemTemplateElement *styleNode=0) const

Static Public Member Functions

static eElementToken getElementNameToken (const XalanDOMString &name)

Public Attributes

MemoryManagerType & m_memoryManager

Private Types

typedef XalanMemMgrAutoPtr
< XPathProcessor, true > 
XPathProcessAutoPtr

Private Member Functions

const AVTPart ** doAllocateAVTPartPointerVector (size_type theSize)
const AVT ** doAllocateAVTPointerVector (size_type theSize)
const XalanQName ** doAllocateXalanQNamePointerVector (size_type theSize)

Private Attributes

ElemTemplateElementVectorType m_allocatedElements
XalanAVTAllocator m_avtAllocator
XalanAVTPartSimpleAllocator m_avtPartSimpleAllocator
XalanAVTPartXPathAllocator m_avtPartXPathAllocator
XalanElemApplyTemplatesAllocator m_elemApplyTemplatesAllocator
XalanElemAttributeAllocator m_elemAttributeAllocator
XalanElemAttributeSetAllocator m_elemAttributeSetAllocator
XalanElemCallTemplateAllocator m_elemCallTemplateAllocator
XalanElemElementAllocator m_elemElementAllocator
XalanElemLiteralResultAllocator m_elemLiteralResultAllocator
XalanElemTemplateAllocator m_elemTemplateAllocator
XalanElemTextLiteralAllocator m_elemTextLiteralAllocator
XalanElemValueOfAllocator m_elemValueOfAllocator
XalanElemVariableAllocator m_elemVariableAllocator
XalanMatchPatternDataAllocator m_matchPatternDataAllocator
PointerVectorAllocatorType m_pointerVectorAllocator
XSLTEngineImplm_processor
XalanQNameByValue m_scratchQName
const XalanQNameByReference m_spaceAttrQName
XalanDOMStringCache m_stringCache
XalanDOMStringPool m_stringPool
StylesheetVectorType m_stylesheets
XalanDOMString m_tempBuffer
const XalanQNameByReference m_useAttributeSetsQName
XalanDOMCharVectorAllocatorType m_xalanDOMCharVectorAllocator
XalanQNameByValueAllocator m_xalanQNameByValueAllocator
XPathFactory & m_xpathFactory
XPathProcessAutoPtr m_xpathProcessor

Static Private Attributes

static const XalanDOMChar s_applyImports []
static const XalanDOMChar s_applyTemplates []
static const XalanDOMChar s_attribute []
static const XalanDOMChar s_attributeSet []
static const XalanDOMChar s_callTemplate []
static const XalanDOMChar s_choose []
static const XalanDOMChar s_comment []
static const XalanDOMChar s_copy []
static const XalanDOMChar s_copyOf []
static const XalanDOMChar s_decimalFormat []
static const XalanDOMChar s_element []
static const ElementTokenTableEntry s_elementTokenTable []
static const
ElementTokenTableEntry & 
s_elementTokenTableDummy
static const
ElementTokenTableEntry & 
s_elementTokenTableLast
static const unsigned int s_elementTokenTableSize
static const XalanDOMChar s_empty []
static const XalanDOMChar s_fallback []
static const XalanDOMChar s_forEach []
static const XalanDOMChar s_if []
static const XalanDOMChar s_import []
static const XalanDOMChar s_include []
static const XalanDOMChar s_key []
static const XalanDOMChar s_message []
static const XalanDOMChar s_namespaceAlias []
static const XalanDOMChar s_number []
static const XalanDOMChar s_otherwise []
static const XalanDOMChar s_output []
static const XalanDOMChar s_param []
static const XalanDOMChar s_preserveSpace []
static const XalanDOMChar s_processingInstruction []
static const XalanDOMChar s_sort []
static const XalanDOMChar s_stripSpace []
static const XalanDOMChar s_stylesheet []
static const XalanDOMChar s_template []
static const XalanDOMChar s_text []
static const XalanDOMChar s_transform []
static const XalanDOMChar s_valueOf []
static const XalanDOMChar s_variable []
static const XalanDOMChar s_when []
static const XalanDOMChar s_withParam []

Classes

struct  ElementTokenTableEntry

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index