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

StylesheetRoot Class Reference

#include <StylesheetRoot.hpp>

Inheritance diagram for StylesheetRoot:

Stylesheet PrefixResolver

List of all members.


Detailed Description

This acts as the stylesheet root of the stylesheet tree, and holds values that are shared by all stylesheets in the tree.

Definition at line 61 of file StylesheetRoot.hpp.


Public Types

typedef XalanMap< const
XalanQName
*, AttributeSetVectorType > 
AttributeSetMapType
typedef AttributeSetVectorTypeDecl AttributeSetVectorType
typedef XalanVector
< ElemDecimalFormat * > 
ElemDecimalFormatVectorType
typedef XalanMap
< XalanQNameByReference, const
ElemTemplate * > 
ElemTemplateMapType
typedef XalanVector
< ElemVariable * > 
ElemVariableVectorType
typedef XalanMap
< XalanDOMString,
ExtensionNSHandler * > 
ExtensionNamespacesMapType
typedef
StylesheetConstructionContext::GetAndReleaseCachedString 
GetAndReleaseCachedString
typedef XalanVector
< KeyDeclaration
KeyDeclarationVectorType
typedef XalanMap< const
XalanNode *, KeyTable * > 
KeyTablesTableType
typedef
XalanQName::NamespacesStackType 
NamespacesStackType
typedef
XalanQName::NamespaceVectorType 
NamespaceVectorType
typedef
StylesheetExecutionContext::ParamVectorType 
ParamVectorType
typedef XalanMap
< XalanDOMString,
PatternTableVectorType > 
PatternTableMapType
typedef PatternTableVectorTypeDecl PatternTableVectorType
typedef
StylesheetConstructionContext::size_type 
size_type
typedef XalanVector< Stylesheet * > StylesheetVectorType
typedef XalanVector
< XalanDOMString > 
URLStackType
typedef XalanVector
< XalanSpaceNodeTester > 
WhitespaceElementsVectorType
typedef XalanVector< const
XalanQName * > 
XalanQNameVectorType

Public Member Functions

void addAttributeSet (ElemAttributeSet &theAttributeSet)
void addImport (Stylesheet *theStylesheet)
void addTemplate (ElemTemplate *theTemplate, StylesheetConstructionContext &constructionContext)
void addWhitespaceElement (const XalanSpaceNodeTester &theTester)
const ElemTemplate * findNamedTemplate (const XalanQName &qname) const
const ElemTemplate * findTemplate (StylesheetExecutionContext &executionContext, XalanNode *targetNode, XalanNode::NodeType targetNodeType, const XalanQName &mode, bool onlyUseImports) const
const ElemTemplate * findTemplate (StylesheetExecutionContext &executionContext, XalanNode *targetNode) const
const ElemAttributeSet * getAttributeSet (StylesheetExecutionContext &theExecutionContext, const XalanQName &theQName, size_type matchingIndex, const LocatorType *theLocator) const
const XalanDOMString & getBaseIdentifier () const
const XalanDOMString & getCurrentIncludeBaseIdentifier () const
const XalanDecimalFormatSymbols * getDecimalFormatSymbols (const XalanQName &theQName) const
ElemTemplateElement * getDefaultRootRule () const
ElemTemplateElement * getDefaultRule () const
ElemTemplateElement * getDefaultTextRule () const
unsigned long getElemNumberCount () const
const ElemTemplate * getFirstTemplate () const
bool getHTMLOutputIndent () const
const URLStackType & getImportStack () const
URLStackType & getImportStack ()
URLStackType & getIncludeStack ()
MemoryManagerType & getMemoryManager ()
NamespaceVectorTypegetNamespaceDecls ()
const NamespaceVectorTypegetNamespaceDecls () const
virtual const XalanDOMString * getNamespaceForPrefix (const XalanDOMString &prefix) const
const XalanDOMString * getNamespaceForPrefix (const XalanDOMChar *prefix, StylesheetConstructionContext &constructionContext) const
const XalanDOMString * getNamespaceForPrefix (const XalanDOMString &prefix, StylesheetConstructionContext &constructionContext) const
const XalanDOMString * getNamespaceForPrefixFromStack (const XalanDOMChar *prefix) const
const XalanDOMString * getNamespaceForPrefixFromStack (const XalanDOMString &prefix) const
const XalanDOMString * getNamespaceFromStack (const XalanDOMChar *nodeName, XalanDOMString &theBuffer) const
const XalanDOMString * getNamespaceFromStack (const XalanDOMString &nodeName, XalanDOMString &theBuffer) const
NamespacesStackTypegetNamespaces ()
const NamespacesStackTypegetNamespaces () const
NamespacesHandler & getNamespacesHandler ()
const NamespacesHandler & getNamespacesHandler () const
unsigned long getNextElemNumberID ()
void getNodeSetByKey (XalanDocument *doc, const XalanQName &qname, const XalanDOMString &ref, const PrefixResolver &resolver, MutableNodeRefList &nodelist, StylesheetExecutionContext &executionContext, KeyTablesTableType &theKeysTable) const
bool getOmitOutputXMLDecl () const
XalanDOMString & getOutputDoctypePublic (XalanDOMString &theResult) const
XalanDOMString & getOutputDoctypeSystem (XalanDOMString &theResult) const
XalanDOMString & getOutputEncoding (XalanDOMString &theResult) const
bool getOutputIndent () const
XalanDOMString & getOutputMediaType (XalanDOMString &theResult) const
FormatterListener::eFormat getOutputMethod () const
XalanDOMString & getOutputStandalone (XalanDOMString &theResult) const
XalanDOMString & getOutputVersion (XalanDOMString &theResult) const
StylesheetRootgetStylesheetRoot ()
const StylesheetRootgetStylesheetRoot () const
virtual const XalanDOMString & getURI () const
const XalanDOMString & getXSLTNamespaceURI () const
double getXSLTVerDeclared () const
bool getYesOrNo (const XalanDOMChar *aname, const XalanDOMChar *val, StylesheetConstructionContext &constructionContext) const
bool hasCDATASectionElements () const
bool hasPreserveOrStripSpaceElements () const
ElemTemplateElement * initWrapperless (StylesheetConstructionContext &constructionContext, const LocatorType *locator)
bool isAttrOK (const XalanDOMChar *attrName, const AttributeListType &atts, int which, StylesheetConstructionContext &constructionContext) const
bool isCDATASectionElementName (const XalanQName &theQName) const
bool isOutputMethodSet () const
bool isWrapperless () const
const PatternTableVectorType * locateAttributeMatchPatternDataList (const XalanDOMString &theName) const
const PatternTableVectorType * locateElementMatchPatternDataList (const XalanDOMString &theName) const
const PatternTableVectorType * locateMatchPatternDataList (const XalanNode &theNode, XalanNode::NodeType targetNodeType) const
ExtensionNSHandler * lookupExtensionNSHandler (const XalanDOMString &uri) const
void popNamespaces ()
virtual void postConstruction (StylesheetConstructionContext &constructionContext)
void process (XalanNode *sourceTree, XSLTResultTarget &outputTarget, StylesheetExecutionContext &executionContext) const
void processDecimalFormatElement (StylesheetConstructionContext &constructionContext, const AttributeListType &atts, const LocatorType *locator=0)
void processExcludeResultPrefixes (StylesheetConstructionContext &theConstructionContext, const XalanDOMChar *theValue)
void processExtensionNamespace (StylesheetConstructionContext &theConstructionContext, const XalanDOMString &uri)
void processKeyElement (const PrefixResolver &nsContext, const AttributeListType &atts, const LocatorType *locator, StylesheetConstructionContext &constructionContext)
void processNSAliasElement (const XalanDOMChar *name, const AttributeListType &atts, StylesheetConstructionContext &constructionContext)
void processOutputSpec (const XalanDOMChar *name, const AttributeListType &atts, StylesheetConstructionContext &constructionContext)
void pushNamespaces (const AttributeListType &atts)
void pushTopLevelVariables (StylesheetExecutionContext &executionContext, const ParamVectorType &topLevelParams) const
void setIndentResult (bool bIndent)
void setNamespaceDecls (const NamespaceVectorType &ns)
void setOutputMethod (FormatterListener::eFormat meth)
void setTopLevelVariable (ElemVariable *var)
FormatterListenersetupFormatterListener (XSLTResultTarget &outputTarget, StylesheetExecutionContext &executionContext) const
void setXSLTNamespaceURI (const XalanDOMString &theURI)
void setXSLTVerDeclared (double ver)
bool shouldStripSourceNode (const XalanText &textNode) const
 StylesheetRoot (const XalanDOMString &baseIdentifier, StylesheetConstructionContext &constructionContext)

Static Public Member Functions

static void addObjectIfNotFound (const XalanMatchPatternData *thePattern, const XalanMatchPatternData *theArray[], unsigned int &theArraySize)
static void addObjectIfNotFound (const XalanMatchPatternData *thePattern, PatternTableVectorType &theVector)
static Stylesheetcreate (MemoryManagerType &theManager, StylesheetRoot &root, const XalanDOMString &baseIdentifier, StylesheetConstructionContext &constructionContext)
static StylesheetRootcreate (MemoryManagerType &theManager, const XalanDOMString &baseIdentifier, StylesheetConstructionContext &constructionContext)

Protected Attributes

XalanDOMString m_baseIdent
KeyDeclarationVectorType m_keyDeclarations
StylesheetRootm_stylesheetRoot
WhitespaceElementsVectorType m_whitespaceElements

Static Protected Attributes

static const XalanQNameByReference s_emptyQName

Private Types

enum  eIndentType { eIndentNoImplicit, eIndentNoExplicit, eIndentYesImplicit, eIndentYesExplicit }

Private Member Functions

const XalanDOMString & getEncoding (const XSLTResultTarget &outputTarget) const
void initDefaultRule (StylesheetConstructionContext &constructionContext)
StylesheetRootoperator= (const StylesheetRoot &)
bool operator== (const StylesheetRoot &) const
 StylesheetRoot (const StylesheetRoot &)

Private Attributes

AttributeSetMapType m_attributeSetsMap
XalanQNameVectorType m_cdataSectionElems
ElemTemplateElement * m_defaultRootRule
ElemTemplateElement * m_defaultRule
ElemTemplateElement * m_defaultTextRule
XalanDOMString m_doctypePublic
XalanDOMString m_doctypeSystem
unsigned long m_elemNumberNextID
XalanDOMString m_encoding
bool m_hasCDATASectionElems
URLStackType m_importStack
int m_indentAmount
eIndentType m_indentResult
XalanDOMString m_mediatype
bool m_needToBuildKeysTable
bool m_omitMETATag
bool m_omitxmlDecl
bool m_outputEscapeURLs
FormatterListener::eFormat m_outputMethod
XalanDOMString m_resultNameSpaceURL
XalanDOMString m_standalone
XalanDOMString m_version

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

Generated by  Doxygen 1.6.0   Back to index