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(
323 isWhitespace()
const;
332 getElementName()
const = 0;
341 getNameAttribute()
const;
372 const Locator* locator = 0);
380 setDefaultTemplate(
bool value);
390 return m_namespacesHandler;
412 setFlag(eFinishedConstruction, fValue);
421 return getFlag(eFinishedConstruction);
440 getFirstChildElem()
const;
442 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION) 450 beginExecuteChildren(
473 beginChildrenToString(
506 getLastChildElem()
const;
514 getNextSiblingElem()
const;
516 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION) 527 getNextChildElemToExecute(
539 getFirstChildElemToExecute(
549 virtual bool executeChildElement(
570 getPreviousSiblingElem()
const;
588 getParentNodeElem()
const;
620 getXPath(XalanSize_t index)
const;
638 XalanFileLoc theLineNumber,
639 XalanFileLoc theColumnNumber,
652 getLineNumber()
const;
655 getColumnNumber()
const;
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);
791 processPrefixControl(
795 const XalanDOMChar* attrValue);
805 getNamespaceForPrefixInternal(
const XalanDOMString& prefix)
const;
807 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION) 819 findTemplateToTransformChild(
837 findTemplateToTransformChild(
892 childTypeAllowed(
int xslToken)
const;
901 namespacesPostConstruction(
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;
1195 unsigned short m_flags;
1211 XALAN_CPP_NAMESPACE_END
1215 #endif // XALAN_ELEMTEMPLATEELEMENT_HEADER_GUARD bool canGenerateAttributes() const
bool preserveSpace() const
void hasPrefix(bool value)
This class defines a base class for Locator derivations in Xalan.
const ElemTextLiteral * m_textLiteralChild
static XalanFileLoc getUnknownValue()
ElemTemplateElement * m_firstChild
XalanFileLoc getLineNumber() const
static const XalanDOMString s_emptyString
const Stylesheet & getStylesheet() const
Retrieve the stylesheet from which this element comes.
void setFinishedConstruction(bool fValue)
Set the flag indicating construction of the element is completed.
virtual const XalanDOMString & getURI() const =0
Retrieve the base URI for the resolver.
bool hasVariables() const
static MemoryManager & getDummyMemMgr()
XERCES_CPP_NAMESPACE_QUALIFIER Locator LocatorType
const NamespacesHandler & getNamespaces() const
This class defines an interface for classes that resolve namespace prefixes to their URIs...
bool hasDirectTemplate() const
XalanFileLoc getColumnNumber() const
#define XALAN_XSLT_EXPORT
bool hasSingleTextChild() const
bool disableOutputEscaping() const
bool isDefaultTemplate() const
void canGenerateAttributes(bool value)
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER AttributeList AttributeListType
const NamespacesHandler & getNamespacesHandler() const
Get the namespaces handler for this element.
bool operator==(const ElemAttributeSet &theLHS, const ElemAttributeSet &theRHS)
XERCES_CPP_NAMESPACE_QUALIFIER AttributeList AttributeListType
const XalanDOMString & getURI() const
This class represents the base stylesheet or an "import" stylesheet.
virtual const XalanDOMString * getNamespaceForPrefix(const XalanDOMString &prefix) const =0
Retrieve a namespace corresponding to a prefix.
bool getFinishedConstruction() const
Get the flag indicating construction of the element is completed.
XALAN_CPP_NAMESPACE_BEGIN XALAN_USING_XERCES(Locator)
void disableOutputEscaping(bool value)
void preserveSpace(bool value)
Class to represent a qualified name.
const ElemTemplate * m_directTemplate