Xalan-C++ API Documentation
Go to the documentation of this file.
18 #if !defined(XALAN_ELEMTEMPLATEELEMENT_HEADER_GUARD)
19 #define XALAN_ELEMTEMPLATEELEMENT_HEADER_GUARD
47 #include "LocalMsgIndex.hpp"
51 XALAN_DECLARE_XERCES_CLASS(AttributeList)
52 XALAN_DECLARE_XERCES_CLASS(Locator)
56 XALAN_CPP_NAMESPACE_BEGIN
94 XalanFileLoc lineNumber,
95 XalanFileLoc columnNumber,
126 virtual const Locator*
141 const XalanDOMChar* attrName,
158 const XalanDOMChar* elementName,
159 const XalanDOMChar* aname,
174 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
274 childrenToResultAttribute(
372 const Locator* locator = 0);
390 return m_namespacesHandler;
412 setFlag(eFinishedConstruction, fValue);
421 return getFlag(eFinishedConstruction);
442 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
516 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
638 XalanFileLoc theLineNumber,
639 XalanFileLoc theColumnNumber,
675 const XalanFileLoc m_lineNumber;
677 const XalanFileLoc m_columnNumber;
686 return m_locatorProxy.getLineNumber();
692 return m_locatorProxy.getColumnNumber();
698 return getFlag(eHasParams);
704 return getFlag(eHasVariables);
710 return getFlag(eHasSingleTextChild);
716 return m_firstChild != 0 ? true :
false;
722 return getFlag(eHasDirectTemplate);
728 return getFlag(eCanGenerateAttributes);
734 return getFlag(eDefaultTemplate);
742 setFlag(eCanGenerateAttributes, value);
748 setFlag(eHasPrefix, value);
754 return getFlag(eHasPrefix);
760 setFlag(eSpacePreserve, value);
766 return getFlag(eSpacePreserve);
772 setFlag(eDisableOutputEscaping, value);
778 return getFlag(eDisableOutputEscaping);
795 const XalanDOMChar* attrValue);
807 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
909 return m_namespacesHandler;
923 XalanMessages::Codes theCode)
const;
937 XalanMessages::Codes theCode,
952 XalanMessages::Codes theCode,
953 const Locator* theLocator)
const;
966 XalanMessages::Codes theCode)
const;
980 XalanMessages::Codes theCode,
995 XalanMessages::Codes theCode,
996 const Locator* theLocator)
const;
1009 XalanMessages::Codes theCode);
1024 XalanMessages::Codes theCode,
1040 XalanMessages::Codes theCode,
1042 const Locator* theLocator);
1057 XalanMessages::Codes theCode,
1074 XalanMessages::Codes theCode,
1075 const XalanDOMChar* theToken1,
1076 const XalanDOMChar* theToken2);
1092 XalanMessages::Codes theCode,
1093 const XalanDOMChar* theToken1,
1094 const XalanDOMChar* theToken2,
1095 const XalanDOMChar* theToken3);
1111 XalanMessages::Codes theCode,
1112 const XalanDOMChar* theToken1,
1113 const XalanDOMChar* theToken2,
1114 const XalanDOMChar* theToken3);
1125 eHasSingleTextChild = 2,
1127 eHasDirectTemplate = 8,
1128 eCanGenerateAttributes = 16,
1129 eDefaultTemplate = 32,
1130 eSpacePreserve = 64,
1131 eFinishedConstruction = 128,
1133 eDisableOutputEscaping = 512
1137 getFlag(eFlags theFlag)
const
1139 return m_flags & theFlag ? true :
false;
1147 if (theValue ==
true)
1153 m_flags &= ~theFlag;
1158 #if defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
1180 const int m_xslToken;
1193 LocatorProxy m_locatorProxy;
1195 unsigned short m_flags;
1211 XALAN_CPP_NAMESPACE_END
1215 #endif // XALAN_ELEMTEMPLATEELEMENT_HEADER_GUARD
XalanFileLoc getLineNumber() const
void error(StylesheetConstructionContext &theContext, XalanMessages::Codes theCode, const XalanDOMString &theToken)
A convenience function for loading a message and reporting an error through the provided StylesheetCo...
virtual ElemTemplateElement * appendChildElem(ElemTemplateElement *newChild)
Append a child.
virtual void namespacesPostConstruction(StylesheetConstructionContext &constructionContext, const NamespacesHandler &theParentHandler, NamespacesHandler &theHandler)
Called after construction is completed.
bool hasDirectTemplate() const
virtual const XalanQName & getNameAttribute() const
Get the QName associated with any name attribute of this element.
This class defines an interface for classes that resolve namespace prefixes to their URIs.
void setFinishedConstruction(bool fValue)
Set the flag indicating construction of the element is completed.
const Stylesheet & getStylesheet() const
Retrieve the stylesheet from which this element comes.
virtual void setFirstChildElem(ElemTemplateElement *theChild)
Set the first child.
const XalanDOMString * getNamespaceForPrefixInternal(const XalanDOMString &prefix) const
Get the namespace for a given prefix.
virtual void endExecuteChildren(StylesheetExecutionContext &executionContext) const
Method to indicate the execution of the element's children is complete.
bool canGenerateAttributes() const
virtual const XalanDOMString * getNamespaceForPrefix(const XalanDOMString &prefix) const
Retrieve a namespace corresponding to a prefix.
bool operator==(const ElemAttributeSet &theLHS, const ElemAttributeSet &theRHS)
virtual XalanFileLoc getLineNumber() const
This class defines a base class for Locator derivations in Xalan.
void error(StylesheetConstructionContext &theContext, XalanMessages::Codes theCode)
A convenience function for loading a message and reporting an error through the provided StylesheetCo...
bool getFinishedConstruction() const
Get the flag indicating construction of the element is completed.
virtual const ElemTemplateElement * getNextChildElemToExecute(StylesheetExecutionContext &executionContext, const ElemTemplateElement *currentElem) const
Returns the next sub-element (i.e.
static bool isValidNCName(const XalanDOMString &s)
Validate that the string is an NCName.
void hasPrefix(bool value)
void error(StylesheetExecutionContext &theContext, XalanMessages::Codes theCode, const Locator *theLocator) const
A convenience function for loading a message and reporting an error through the provided StylesheetEx...
virtual const ElemTemplateElement * getInvoker(StylesheetExecutionContext &executionContext) const
Returns the element that invoked this element.
virtual void executeChildren(StylesheetExecutionContext &executionContext) const
Execute the children of this element.
#define XALAN_XSLT_EXPORT
const ElemTemplate * m_directTemplate
void error(StylesheetExecutionContext &theContext, XalanMessages::Codes theCode, const XalanDOMString &theToken) const
A convenience function for loading a message and reporting an error through the provided StylesheetEx...
virtual void setDefaultTemplate(bool value)
Sets a flag indicating this is the default template.
bool preserveSpace() const
LocatorProxy(XalanFileLoc theLineNumber, XalanFileLoc theColumnNumber, const XalanDOMString &theURI)
virtual ElemTemplateElement * getLastChildElem() const
Get the last child.
void canGenerateAttributes(bool value)
ElemTemplateElement * m_firstChild
virtual bool childTypeAllowed(int xslToken) const
Given an xsl token type, determine whether or not a child of that type is allowed.
virtual void setPreviousSiblingElem(ElemTemplateElement *theSibling)
Set the previous sibling.
void error(StylesheetConstructionContext &theContext, XalanMessages::Codes theCode, const XalanDOMString &theToken, const Locator *theLocator)
A convenience function for loading a message and reporting an error through the provided StylesheetCo...
bool isDefaultTemplate() const
const ElemTemplateElement * beginChildrenToString(StylesheetExecutionContext &executionContext, XalanDOMString &result) const
Method to initiate output from the children to a string.
ElemTemplateElement(StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, int xslToken, const XalanDOMString &baseURI=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), XalanFileLoc lineNumber=XalanLocator::getUnknownValue(), XalanFileLoc columnNumber=XalanLocator::getUnknownValue())
Special constructor used by dummy elements which do not exist in the final stylesheet.
This class represents the base stylesheet or an "import" stylesheet.
virtual const ElemTemplateElement * startElement(StylesheetExecutionContext &executionContext) const
Completes "pre-processing" before any sub-elements are invoked (i.e.
virtual void setParentNodeElem(ElemTemplateElement *theParent)
Set the parent node.
virtual void execute(StylesheetExecutionContext &executionContext) const
Execute the element.
virtual void endElement(StylesheetExecutionContext &executionContext) const
Completes "post-processing" afer any sub-elements are invoked (i.e.
virtual XalanFileLoc getColumnNumber() const
const NamespacesHandler & getNamespaces() const
void warn(StylesheetConstructionContext &theContext, XalanMessages::Codes theCode, const XalanDOMChar *theToken1, const XalanDOMChar *theToken2, const XalanDOMChar *theToken3)
A convenience function for loading a message and reporting a warning through the provided StylesheetC...
virtual ElemTemplateElement * getParentNodeElem() const
Get the parent node.
virtual bool isWhitespace() const
Tell if the element will generate text which is XML whitespace.
static XalanFileLoc getUnknownValue()
virtual const ElemTemplateElement * findTemplateToTransformChild(StylesheetExecutionContext &executionContext, const ElemTemplateElement &xslInstruction, const ElemTemplateElement *theTemplate, XalanNode *child) const
Given an element, find the corresponding template.
XalanFileLoc getColumnNumber() const
virtual const XMLCh * getSystemId() const
void warn(StylesheetExecutionContext &theContext, XalanMessages::Codes theCode, const XalanDOMString &theToken) const
A convenience function for loading a message and reporting a warning through the provided StylesheetE...
bool processPrefixControl(StylesheetConstructionContext &constructionContext, const Stylesheet &stylesheetTree, const XalanDOMString &localName, const XalanDOMChar *attrValue)
Process the exclude-result-prefixes or the extension-element-prefixes attributes, for the purpose of ...
bool hasSingleTextChild() const
virtual const Locator * getLocator() const
Get the Locator for the node.
XALAN_CPP_NAMESPACE_BEGIN XALAN_USING_XERCES(Locator)
void warn(StylesheetExecutionContext &theContext, XalanMessages::Codes theCode) const
A convenience function for loading a message and reporting a warning through the provided StylesheetE...
virtual const XMLCh * getPublicId() const
virtual const XalanDOMString & getElementName() const =0
Get a string for the name of the element.
virtual const ElemTemplateElement * getFirstChildElemToExecute(StylesheetExecutionContext &executionContext) const
Returns the first sub-element (i.e.
static MemoryManager & getDummyMemMgr()
virtual void postConstruction(StylesheetConstructionContext &constructionContext, const NamespacesHandler &theParentHandler)
Called after construction is completed.
bool disableOutputEscaping() const
virtual void setNextSiblingElem(ElemTemplateElement *theSibling)
Set the next sibling.
virtual const ElemTemplateElement * findTemplateToTransformChild(StylesheetExecutionContext &executionContext, const ElemTemplateElement &xslInstruction, const ElemTemplateElement *theTemplate, XalanNode *child, XalanNode::NodeType nodeType) const
Given an element, find the corresponding template.
virtual ElemTemplateElement * getNextSiblingElem() const
Get the next sibling.
bool hasVariables() const
void preserveSpace(bool value)
virtual bool executeChildElement(StylesheetExecutionContext &executionContext, const ElemTemplateElement *element) const
Filters sub-elements that should be executed.
virtual const XalanDOMString & getURI() const
Retrieve the base URI for the resolver.
Class to represent a qualified name.
virtual bool isAttrOK(const XalanDOMChar *attrName, const AttributeListType &atts, XalanSize_t which, StylesheetConstructionContext &constructionContext) const
See if this is a xmlns attribute or in a non-XSLT.
virtual void addToStylesheet(StylesheetConstructionContext &constructionContext, Stylesheet &theStylesheet)
Called during compilation when an instance is not parented by another element, and thus,...
virtual ~ElemTemplateElement()
ElemTemplateElement(StylesheetConstructionContext &constructionContext, Stylesheet &stylesheetTree, XalanFileLoc lineNumber, XalanFileLoc columnNumber, int xslToken)
Construct a template element instance.
bool processSpaceAttr(const XalanDOMChar *elementName, const XalanDOMChar *aname, const AttributeListType &atts, XalanSize_t which, StylesheetConstructionContext &constructionContext)
Tell whether or not this is a xml:space attribute and, if so, process it.
virtual ElemTemplateElement * getPreviousSiblingElem() const
Get the previous sibling.
virtual void processSortElement(StylesheetConstructionContext &constructionContext, Stylesheet &theStylesheet, const AttributeListType &atts, const Locator *locator=0)
Called during compilation to process xsl:sort elements in the stylesheet.
virtual const XPath * getXPath(XalanSize_t index) const
Get XPath pattern/expression of one of the element atribute.
XERCES_CPP_NAMESPACE_QUALIFIER AttributeList AttributeListType
virtual ElemTemplateElement * getFirstChildElem() const
Get the first child.
void error(StylesheetConstructionContext &theContext, XalanMessages::Codes theCode, const XalanDOMString &theToken1, const XalanDOMString &theToken2)
A convenience function for loading a message and reporting an error through the provided StylesheetCo...
void disableOutputEscaping(bool value)
virtual const ElemTemplateElement * beginExecuteChildren(StylesheetExecutionContext &executionContext) const
Method to initiate the execution of the element's children.
void error(StylesheetConstructionContext &theContext, XalanMessages::Codes theCode, const XalanDOMChar *theToken1, const XalanDOMChar *theToken2, const XalanDOMChar *theToken3)
A convenience function for loading a message and reporting an error through the provided StylesheetCo...
const XalanDOMString & getURI() const
const ElemTextLiteral * m_textLiteralChild
const NamespacesHandler & getNamespacesHandler() const
Get the namespaces handler for this element.
XERCES_CPP_NAMESPACE_QUALIFIER Locator LocatorType
void error(StylesheetConstructionContext &theContext, XalanMessages::Codes theCode, const XalanDOMChar *theToken1, const XalanDOMChar *theToken2)
A convenience function for loading a message and reporting an error through the provided StylesheetCo...
void endChildrenToString(StylesheetExecutionContext &executionContext) const
Method to indicate string output from the children is complete.
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER AttributeList AttributeListType
static const XalanDOMString s_emptyString
void warn(StylesheetExecutionContext &theContext, XalanMessages::Codes theCode, const Locator *theLocator) const
A convenience function for loading a message and reporting a warning through the provided StylesheetE...
void error(StylesheetExecutionContext &theContext, XalanMessages::Codes theCode) const
A convenience function for loading a message and reporting an error through the provided StylesheetEx...
Interpreting class diagrams
Doxygen and
GraphViz are
used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.
|
|