Inheritance diagram for ElemTemplateElement:
ElemTemplateElement::ElemTemplateElement | ( | StylesheetConstructionContext & | constructionContext, | |
Stylesheet & | stylesheetTree, | |||
int | lineNumber, | |||
int | columnNumber, | |||
int | xslToken | |||
) |
Construct a template element instance.
constructionContext | context when object constructed | |
stylesheetTree | owning stylesheet | |
lineNumber | line in the XSLT file where the element occurs | |
columnNumber | column index in the XSLT file where the element occurs | |
xslToken | an integer representing the type of instance. |
ElemTemplateElement::ElemTemplateElement | ( | StylesheetConstructionContext & | constructionContext, | |
Stylesheet & | stylesheetTree, | |||
int | xslToken, | |||
const XalanDOMString & | baseURI = XalanDOMString(XalanMemMgrs::getDummyMemMgr()) , |
|||
int | lineNumber = XalanLocator::getUnknownValue() , |
|||
int | columnNumber = XalanLocator::getUnknownValue() | |||
) |
Special constructor used by dummy elements which do not exist in the final stylesheet.
constructionContext | context when object constructed | |
stylesheetTree | owning stylesheet | |
baseURI | The base URI of the XSLT file where the element occurs. | |
lineNumber | line in the XSLT file where the element occurs | |
columnNumber | column index in the XSLT file where the element occurs | |
xslToken | an integer representing the type of instance. |
virtual ElemTemplateElement::~ElemTemplateElement | ( | ) | [virtual] |
virtual const LocatorType* ElemTemplateElement::getLocator | ( | ) | const [virtual] |
Get the Locator for the node.
This may return 0.
virtual bool ElemTemplateElement::isAttrOK | ( | const XalanDOMChar * | attrName, | |
const AttributeListType & | atts, | |||
int | which, | |||
StylesheetConstructionContext & | constructionContext | |||
) | const [virtual] |
See if this is a xmlns attribute or in a non-XSLT.
attrName | qualified name of attribute | |
atts | attribute list where the element comes from (not used at this time) | |
which | index into the attribute list (not used at this time) | |
constructionContext | The current construction context |
Reimplemented in ElemLiteralResult.
bool ElemTemplateElement::processSpaceAttr | ( | const XalanDOMChar * | elementName, | |
const XalanDOMChar * | aname, | |||
const AttributeListType & | atts, | |||
int | which, | |||
StylesheetConstructionContext & | constructionContext | |||
) |
Tell whether or not this is a xml:space attribute and, if so, process it.
elementName | name of the element with the attribute | |
aname | name of the attribute in question | |
atts | attribute list that owns the attribute | |
which | index of the attribute into the attribute list | |
constructionContext | The current construction context |
static bool ElemTemplateElement::isValidNCName | ( | const XalanDOMString & | s | ) | [static] |
Validate that the string is an NCName.
s | name in question |
virtual const ElemTemplateElement* ElemTemplateElement::startElement | ( | StylesheetExecutionContext & | executionContext | ) | const [virtual] |
Completes "pre-processing" before any sub-elements are invoked (i.e.
children, attribute sets and templates). If there are no sub-elements it executes the primary function of the element.
executionContext | context to execute this element |
Reimplemented in ElemApplyImport, ElemApplyTemplates, ElemAttribute, ElemAttributeSet, ElemCallTemplate, ElemChoose, ElemComment, ElemCopy, ElemCopyOf, ElemElement, ElemEmpty, ElemExtensionCall, ElemFallback, ElemForEach, ElemForwardCompatible, ElemIf, ElemLiteralResult, ElemMessage, ElemNumber, ElemOtherwise, ElemParam, ElemPI, ElemTemplate, ElemTextLiteral, ElemUse, ElemValueOf, ElemVariable, ElemWhen, and ElemWithParam.
virtual void ElemTemplateElement::endElement | ( | StylesheetExecutionContext & | executionContext | ) | const [virtual] |
Completes "post-processing" afer any sub-elements are invoked (i.e.
children, attribute sets and templates). If there are no sub-elements it does nothing
executionContext | context to execute this element |
Reimplemented in ElemApplyImport, ElemApplyTemplates, ElemAttribute, ElemAttributeSet, ElemCallTemplate, ElemComment, ElemCopy, ElemElement, ElemExtensionCall, ElemForEach, ElemIf, ElemLiteralResult, ElemMessage, ElemOtherwise, ElemParam, ElemPI, ElemTemplate, ElemUse, ElemVariable, ElemWhen, and ElemWithParam.
virtual void ElemTemplateElement::execute | ( | StylesheetExecutionContext & | executionContext | ) | const [virtual] |
Execute the element.
execute | context to execute this element |
virtual void ElemTemplateElement::executeChildren | ( | StylesheetExecutionContext & | executionContext | ) | const [virtual] |
Execute the children of this element.
execute | context to execute this element |
virtual const ElemTemplateElement* ElemTemplateElement::getInvoker | ( | StylesheetExecutionContext & | executionContext | ) | const [virtual] |
Returns the element that invoked this element.
Reimplemented in ElemAttributeSet, and ElemTemplate.
int ElemTemplateElement::getXSLToken | ( | ) | const |
virtual bool ElemTemplateElement::isWhitespace | ( | ) | const [virtual] |
Tell if the element will generate text which is XML whitespace.
Reimplemented in ElemTextLiteral.
virtual const XalanDOMString& ElemTemplateElement::getElementName | ( | ) | const [pure virtual] |
Get a string for the name of the element.
Useful for debugging purposes, and error reporting.
Implemented in ElemApplyImport, ElemApplyTemplates, ElemAttribute, ElemAttributeSet, ElemCallTemplate, ElemChoose, ElemComment, ElemCopy, ElemCopyOf, ElemDecimalFormat, ElemElement, ElemEmpty, ElemFallback, ElemForEach, ElemForwardCompatible, ElemIf, ElemLiteralResult, ElemMessage, ElemNumber, ElemOtherwise, ElemParam, ElemPI, ElemSort, ElemTemplate, ElemText, ElemTextLiteral, ElemUse, ElemValueOf, ElemVariable, ElemWhen, and ElemWithParam.
virtual const XalanQName& ElemTemplateElement::getNameAttribute | ( | ) | const [virtual] |
Get the QName associated with any name attribute of this element.
If the element has no name attribute, this will be an empty QName.
Reimplemented in ElemTemplate, and ElemVariable.
virtual void ElemTemplateElement::addToStylesheet | ( | StylesheetConstructionContext & | constructionContext, | |
Stylesheet & | theStylesheet | |||
) | [virtual] |
Called during compilation when an instance is not parented by another element, and thus, is a child of the stylesheet.
constructionContext | The current construction context | |
theStylesheet | The owning stylesheet |
Reimplemented in ElemAttributeSet, ElemTemplate, and ElemVariable.
virtual void ElemTemplateElement::processSortElement | ( | StylesheetConstructionContext & | constructionContext, | |
Stylesheet & | theStylesheet, | |||
const AttributeListType & | atts, | |||
const LocatorType * | locator = 0 | |||
) | [virtual] |
Called during compilation to process xsl:sort elements in the stylesheet.
constructionContext | The current construction context | |
theStylesheet | The owning stylesheet | |
atts | The list of attributes for the sort element | |
locator | A Locator instance for error reporting, if available. |
Reimplemented in ElemForEach.
virtual void ElemTemplateElement::setDefaultTemplate | ( | bool | value | ) | [virtual] |
Sets a flag indicating this is the default template.
value | The value of flag. |
const NamespacesHandler& ElemTemplateElement::getNamespacesHandler | ( | ) | const |
const Stylesheet& ElemTemplateElement::getStylesheet | ( | ) | const |
Retrieve the stylesheet from which this element comes.
void ElemTemplateElement::setFinishedConstruction | ( | bool | fValue | ) |
Set the flag indicating construction of the element is completed.
fValue | The value to set |
bool ElemTemplateElement::getFinishedConstruction | ( | ) | const |
Get the flag indicating construction of the element is completed.
virtual void ElemTemplateElement::postConstruction | ( | StylesheetConstructionContext & | constructionContext, | |
const NamespacesHandler & | theParentHandler | |||
) | [virtual] |
Called after construction is completed.
Reimplemented in ElemCallTemplate, ElemForEach, ElemLiteralResult, and ElemUse.
virtual ElemTemplateElement* ElemTemplateElement::getFirstChildElem | ( | ) | const [virtual] |
Get the first child.
virtual const ElemTemplateElement* ElemTemplateElement::beginExecuteChildren | ( | StylesheetExecutionContext & | executionContext | ) | const [virtual] |
Method to initiate the execution of the element's children.
executionContext | context to execute this element |
virtual void ElemTemplateElement::endExecuteChildren | ( | StylesheetExecutionContext & | executionContext | ) | const [virtual] |
Method to indicate the execution of the element's children is complete.
executionContext | context to execute this element |
const ElemTemplateElement* ElemTemplateElement::beginChildrenToString | ( | StylesheetExecutionContext & | executionContext, | |
XalanDOMString & | result | |||
) | const |
Method to initiate output from the children to a string.
executionContext | context to execute this element | |
result | string to contain the final result |
void ElemTemplateElement::endChildrenToString | ( | StylesheetExecutionContext & | executionContext | ) | const |
Method to indicate string output from the children is complete.
executionContext | context to execute this element |
virtual void ElemTemplateElement::setFirstChildElem | ( | ElemTemplateElement * | theChild | ) | [virtual] |
Set the first child.
theChild - the new value for the first child.
virtual ElemTemplateElement* ElemTemplateElement::getLastChildElem | ( | ) | const [virtual] |
Get the last child.
virtual ElemTemplateElement* ElemTemplateElement::getNextSiblingElem | ( | ) | const [virtual] |
Get the next sibling.
virtual const ElemTemplateElement* ElemTemplateElement::getNextChildElemToExecute | ( | StylesheetExecutionContext & | executionContext, | |
const ElemTemplateElement * | currentElem | |||
) | const [virtual] |
Returns the next sub-element (i.e.
children, attribute-sets, templates) to execute.
executionContext | context to execute element | |
currentElem | the last sub-element to be executed |
Reimplemented in ElemApplyImport, ElemApplyTemplates, ElemCallTemplate, ElemChoose, ElemFallback, ElemForEach, and ElemUse.
virtual const ElemTemplateElement* ElemTemplateElement::getFirstChildElemToExecute | ( | StylesheetExecutionContext & | executionContext | ) | const [virtual] |
Returns the first sub-element (i.e.
children, attribute-sets, templates) to execute.
executionContext | context to execute element |
Reimplemented in ElemApplyTemplates, ElemCallTemplate, and ElemUse.
virtual bool ElemTemplateElement::executeChildElement | ( | StylesheetExecutionContext & | executionContext, | |
const ElemTemplateElement * | element | |||
) | const [virtual] |
Filters sub-elements that should be executed.
executionContext | context to execute element | |
element | the element to be executed |
Reimplemented in ElemElement, ElemExtensionCall, and ElemForwardCompatible.
virtual void ElemTemplateElement::setNextSiblingElem | ( | ElemTemplateElement * | theSibling | ) | [virtual] |
Set the next sibling.
theSibling - the new value for the next sibling.
virtual ElemTemplateElement* ElemTemplateElement::getPreviousSiblingElem | ( | ) | const [virtual] |
Get the previous sibling.
virtual void ElemTemplateElement::setPreviousSiblingElem | ( | ElemTemplateElement * | theSibling | ) | [virtual] |
Set the previous sibling.
theSibling - the new value for the previous sibling.
virtual ElemTemplateElement* ElemTemplateElement::getParentNodeElem | ( | ) | const [virtual] |
Get the parent node.
virtual void ElemTemplateElement::setParentNodeElem | ( | ElemTemplateElement * | theParent | ) | [virtual] |
Set the parent node.
theParent - the new value for the parent.
Reimplemented in ElemVariable.
virtual ElemTemplateElement* ElemTemplateElement::appendChildElem | ( | ElemTemplateElement * | newChild | ) | [virtual] |
Append a child.
theParent - the new value for the parent.
Reimplemented in ElemApplyImport.
virtual const XPath* ElemTemplateElement::getXPath | ( | unsigned int | index = 0 |
) | const [virtual] |
Get XPath pattern/expression of one of the element atribute.
number of the attribute. If an attribute has more then one attribute with pattern/expression,the order of the returned expressions are undefined
Reimplemented in ElemCopyOf, ElemDecimalFormat, ElemForEach, ElemIf, ElemNumber, ElemSort, ElemTemplate, ElemValueOf, ElemVariable, ElemWhen, and ElemWithParam.
virtual const XalanDOMString* ElemTemplateElement::getNamespaceForPrefix | ( | const XalanDOMString & | prefix | ) | const [virtual] |
Retrieve a namespace corresponding to a prefix.
This assumes that the PrevixResolver holds its own namespace context, or is a namespace context itself.
prefix | Prefix to resolve |
Implements PrefixResolver.
virtual const XalanDOMString& ElemTemplateElement::getURI | ( | ) | const [virtual] |
LocatorProxy::size_type ElemTemplateElement::getLineNumber | ( | ) | const |
LocatorProxy::size_type ElemTemplateElement::getColumnNumber | ( | ) | const |
bool ElemTemplateElement::hasParams | ( | ) | const |
bool ElemTemplateElement::hasVariables | ( | ) | const |
bool ElemTemplateElement::hasSingleTextChild | ( | ) | const |
bool ElemTemplateElement::hasChildren | ( | ) | const |
bool ElemTemplateElement::hasDirectTemplate | ( | ) | const |
bool ElemTemplateElement::canGenerateAttributes | ( | ) | const |
bool ElemTemplateElement::isDefaultTemplate | ( | ) | const |
void ElemTemplateElement::canGenerateAttributes | ( | bool | value | ) | [protected] |
void ElemTemplateElement::hasPrefix | ( | bool | value | ) | [protected] |
bool ElemTemplateElement::hasPrefix | ( | ) | const [protected] |
void ElemTemplateElement::preserveSpace | ( | bool | value | ) | [protected] |
bool ElemTemplateElement::preserveSpace | ( | ) | const [protected] |
void ElemTemplateElement::disableOutputEscaping | ( | bool | value | ) | [protected] |
bool ElemTemplateElement::disableOutputEscaping | ( | ) | const [protected] |
bool ElemTemplateElement::processPrefixControl | ( | StylesheetConstructionContext & | constructionContext, | |
const Stylesheet & | stylesheetTree, | |||
const XalanDOMString & | localName, | |||
const XalanDOMChar * | attrValue | |||
) | [protected] |
Process the exclude-result-prefixes or the extension-element-prefixes attributes, for the purpose of prefix exclusion.
constructionContext | context when object consructed | |
stylesheetTree | The current Stylesheet object. | |
localName | The local name of the attribute. | |
attrValue | The value of the attribute. |
const XalanDOMString* ElemTemplateElement::getNamespaceForPrefixInternal | ( | const XalanDOMString & | prefix | ) | const [protected] |
Get the namespace for a given prefix.
prefix | The prefix to search for | |
fExists | If not null, set to true if the namespace was defined. |
virtual const ElemTemplateElement* ElemTemplateElement::findTemplateToTransformChild | ( | StylesheetExecutionContext & | executionContext, | |
const ElemTemplateElement & | xslInstruction, | |||
const ElemTemplateElement * | theTemplate, | |||
XalanNode * | child | |||
) | const [protected, virtual] |
Given an element, find the corresponding template.
executionContext | The current execution context | |
xslInstruction | The calling element | |
template | The template to use if xsl:for-each, or null. | |
child | The source context node. |
virtual const ElemTemplateElement* ElemTemplateElement::findTemplateToTransformChild | ( | StylesheetExecutionContext & | executionContext, | |
const ElemTemplateElement & | xslInstruction, | |||
const ElemTemplateElement * | theTemplate, | |||
XalanNode * | child, | |||
XalanNode::NodeType | nodeType | |||
) | const [protected, virtual] |
Given an element, find the corresponding template.
executionContext | The current execution context | |
xslInstruction | The calling element | |
template | The template to use if xsl:for-each, or null. | |
child | The source context node. | |
nodeType | The type of child. |
virtual bool ElemTemplateElement::childTypeAllowed | ( | int | xslToken | ) | const [protected, virtual] |
Given an xsl token type, determine whether or not a child of that type is allowed.
This is so derived types can determine whether a particular type of child is allowed for the instance. It is called from appendChildElem().
The default is to allow no types (no children)
xslToken | The xsl token value of the child. |
Reimplemented in ElemApplyTemplates, ElemAttribute, ElemAttributeSet, ElemCallTemplate, ElemChoose, ElemComment, ElemEmpty, ElemPI, ElemTemplate, and ElemText.
virtual void ElemTemplateElement::namespacesPostConstruction | ( | StylesheetConstructionContext & | constructionContext, | |
const NamespacesHandler & | theParentHandler, | |||
NamespacesHandler & | theHandler | |||
) | [protected, virtual] |
Called after construction is completed.
This is a hook for deriving classes to handle post-construction with the instances HamespaceHandler instance, which is otherwise only available through a const accessor.
Reimplemented in ElemElement, and ElemLiteralResult.
const NamespacesHandler& ElemTemplateElement::getNamespaces | ( | ) | const [protected] |
void ElemTemplateElement::error | ( | StylesheetExecutionContext & | theContext, | |
XalanMessages::Codes | theCode | |||
) | const [protected] |
A convenience function for loading a message and reporting an error through the provided StylesheetExecutionContext instance.
theContext | The StylesheetExecutionContext to use | |
theCode | The code of the message |
void ElemTemplateElement::error | ( | StylesheetExecutionContext & | theContext, | |
XalanMessages::Codes | theCode, | |||
const XalanDOMString & | theToken | |||
) | const [protected] |
A convenience function for loading a message and reporting an error through the provided StylesheetExecutionContext instance.
theContext | The StylesheetExecutionContext to use | |
theCode | The code of the message | |
theToken | The substitution token for the message |
void ElemTemplateElement::error | ( | StylesheetExecutionContext & | theContext, | |
XalanMessages::Codes | theCode, | |||
const Locator * | theLocator | |||
) | const [protected] |
A convenience function for loading a message and reporting an error through the provided StylesheetExecutionContext instance.
theContext | The StylesheetExecutionContext to use | |
theCode | The code of the message | |
theLocator | The Locator instance to use, if any |
void ElemTemplateElement::warn | ( | StylesheetExecutionContext & | theContext, | |
XalanMessages::Codes | theCode | |||
) | const [protected] |
A convenience function for loading a message and reporting a warning through the provided StylesheetExecutionContext instance.
theContext | The StylesheetExecutionContext to use | |
theCode | The code of the message |
void ElemTemplateElement::warn | ( | StylesheetExecutionContext & | theContext, | |
XalanMessages::Codes | theCode, | |||
const XalanDOMString & | theToken | |||
) | const [protected] |
A convenience function for loading a message and reporting a warning through the provided StylesheetExecutionContext instance.
theContext | The StylesheetExecutionContext to use | |
theCode | The code of the message | |
theToken | The substitution token for the message |
void ElemTemplateElement::warn | ( | StylesheetExecutionContext & | theContext, | |
XalanMessages::Codes | theCode, | |||
const Locator * | theLocator | |||
) | const [protected] |
A convenience function for loading a message and reporting a warning through the provided StylesheetExecutionContext instance.
theContext | The StylesheetExecutionContext to use | |
theCode | The code of the message | |
theLocator | The Locator instance to use, if any |
void ElemTemplateElement::error | ( | StylesheetConstructionContext & | theContext, | |
XalanMessages::Codes | theCode | |||
) | [protected] |
A convenience function for loading a message and reporting an error through the provided StylesheetConstructionContext instance.
theContext | The StylesheetConstructionContext to use | |
theCode | The code of the message |
void ElemTemplateElement::error | ( | StylesheetConstructionContext & | theContext, | |
XalanMessages::Codes | theCode, | |||
const XalanDOMString & | theToken | |||
) | [protected] |
A convenience function for loading a message and reporting an error through the provided StylesheetConstructionContext instance.
theContext | The StylesheetConstructionContext to use | |
theCode | The code of the message | |
theToken | The substitution token for the message | |
theLocator | The Locator instance to use, if any |
void ElemTemplateElement::error | ( | StylesheetConstructionContext & | theContext, | |
XalanMessages::Codes | theCode, | |||
const XalanDOMString & | theToken, | |||
const Locator * | theLocator | |||
) | [protected] |
A convenience function for loading a message and reporting an error through the provided StylesheetConstructionContext instance.
theContext | The StylesheetConstructionContext to use | |
theCode | The code of the message | |
theToken | The substitution token for the message | |
theLocator | The Locator instance to use, if any |
void ElemTemplateElement::error | ( | StylesheetConstructionContext & | theContext, | |
XalanMessages::Codes | theCode, | |||
const XalanDOMString & | theToken1, | |||
const XalanDOMString & | theToken2 | |||
) | [protected] |
A convenience function for loading a message and reporting an error through the provided StylesheetConstructionContext instance.
theContext | The StylesheetConstructionContext to use | |
theCode | The code of the message | |
theToken1 | The first substitution token for the message | |
theToken2 | The second substitution token for the message |
void ElemTemplateElement::error | ( | StylesheetConstructionContext & | theContext, | |
XalanMessages::Codes | theCode, | |||
const XalanDOMChar * | theToken1, | |||
const XalanDOMChar * | theToken2 | |||
) | [protected] |
A convenience function for loading a message and reporting an error through the provided StylesheetConstructionContext instance.
theContext | The StylesheetConstructionContext to use | |
theCode | The code of the message | |
theToken1 | The first substitution token for the message | |
theToken2 | The second substitution token for the message |
void ElemTemplateElement::error | ( | StylesheetConstructionContext & | theContext, | |
XalanMessages::Codes | theCode, | |||
const XalanDOMChar * | theToken1, | |||
const XalanDOMChar * | theToken2, | |||
const XalanDOMChar * | theToken3 | |||
) | [protected] |
A convenience function for loading a message and reporting an error through the provided StylesheetConstructionContext instance.
theContext | The StylesheetConstructionContext to use | |
theCode | The code of the message | |
theToken1 | The first substitution token for the message | |
theToken2 | The second substitution token for the message | |
theToken3 | The third substitution token for the message |
void ElemTemplateElement::warn | ( | StylesheetConstructionContext & | theContext, | |
XalanMessages::Codes | theCode, | |||
const XalanDOMChar * | theToken1, | |||
const XalanDOMChar * | theToken2, | |||
const XalanDOMChar * | theToken3 | |||
) | [protected] |
A convenience function for loading a message and reporting a warning through the provided StylesheetConstructionContext instance.
theContext | The StylesheetConstructionContext to use | |
theCode | The code of the message | |
theToken1 | The first substitution token for the message | |
theToken2 | The second substitution token for the message | |
theToken3 | The third substitution token for the message |
const XalanDOMString ElemTemplateElement::s_emptyString [static, protected] |
The documentation for this class was generated from the following file:
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
![]() |
Xalan-C++ XSLT Processor Version 1.10 |
|