Uses of Class
org.apache.xalan.templates.ElemTemplateElement
| Package | Description |
|---|---|
| org.apache.xalan.extensions | |
| org.apache.xalan.processor |
Parses an XSLT stylesheet document (which may include and import other stylesheet documents) and produces a StylesheetRoot
(a TRaX Templates object).
|
| org.apache.xalan.templates |
Implements the
Templates interface,
and defines a set of classes that represent an XSLT stylesheet. |
| org.apache.xalan.transformer |
In charge of run-time transformations and the production of result trees.
|
-
Uses of ElemTemplateElement in org.apache.xalan.extensions
Methods in org.apache.xalan.extensions with parameters of type ElemTemplateElement Modifier and Type Method Description abstract voidExtensionHandler. processElement(String localPart, ElemTemplateElement element, TransformerImpl transformer, Stylesheet stylesheetTree, Object methodKey)Process a call to this extension namespace via an element. -
Uses of ElemTemplateElement in org.apache.xalan.processor
Subclasses of ElemTemplateElement in org.apache.xalan.processor Modifier and Type Class Description classProcessorCharactersThis class processes character events for a XSLT template element.classProcessorExsltFuncResultThis class processes parse events for an exslt func:result element.classProcessorExsltFunctionThis class processes parse events for an exslt func:function element.classProcessorImportThis class processes parse events for an xsl:import element.classProcessorIncludeTransformerFactory class for xsl:include markup.classProcessorLREProcesses an XSLT literal-result-element, or something that looks like one.classProcessorStylesheetDocThis class processes the xsl:stylesheet element.classProcessorStylesheetElementTransformerFactory for xsl:stylesheet or xsl:transform markup.classProcessorTemplateElemThis class processes parse events for an XSLT template element.classProcessorTextProcess xsl:text.classProcessorUnknownThis class processes an unknown template element.classWhitespaceInfoPathsclassXSLTElementProcessorThis class acts as the superclass for all stylesheet element processors, and deals with things that are common to all elements.Methods in org.apache.xalan.processor with parameters of type ElemTemplateElement Modifier and Type Method Description protected voidProcessorExsltFunction. appendAndPush(StylesheetHandler handler, ElemTemplateElement elem)Must include; super doesn't suffice!protected voidProcessorTemplateElem. appendAndPush(StylesheetHandler handler, ElemTemplateElement elem)Append the current template element to the current template element, and then push it onto the current template element stack.protected voidProcessorText. appendAndPush(StylesheetHandler handler, ElemTemplateElement elem)Append the current template element to the current template element, and then push it onto the current template element stack.XPathStylesheetHandler. createXPath(String str, ElemTemplateElement owningTemplate)Process an expression string into an XPath.voidProcessorExsltFunction. validate(ElemTemplateElement elem, StylesheetHandler handler)Non-recursive traversal of FunctionElement tree based on TreeWalker to verify that there are no literal result elements except within a func:result element and that the func:result element does not contain any following siblings except xsl:fallback. -
Uses of ElemTemplateElement in org.apache.xalan.templates
Subclasses of ElemTemplateElement in org.apache.xalan.templates Modifier and Type Class Description classDecimalFormatPropertiesImplement xsl:decimal-format.classElemApplyImportImplement xsl:apply-imports.classElemApplyTemplatesImplement xsl:apply-templates.classElemAttributeImplement xsl:attribute.classElemAttributeSetImplement xsl:attribute-set.classElemCallTemplateImplement xsl:call-template.classElemChooseImplement xsl:choose.classElemCommentImplement xsl:comment.classElemCopyImplement xsl:copy.classElemCopyOfImplement xsl:copy-of.classElemElementImplement xsl:elementclassElemEmptySimple empty elem to push on the stack when nothing else got pushed, so that pop() works correctly.classElemExsltFuncResultHandles the EXSLT result element within an EXSLT function element.classElemExsltFunctionImplement func:function.classElemExtensionCallImplement an extension element.classElemExtensionDeclImplement the declaration of an extension elementclassElemExtensionScriptImplement Script extension elementclassElemFallbackImplement xsl:fallback.classElemForEachImplement xsl:for-each.classElemIfImplement xsl:if.classElemLiteralResultImplement a Literal Result Element.classElemMessageImplement xsl:message.classElemNumberImplement xsl:number.classElemOtherwiseImplement xsl:otherwise.classElemParamImplement xsl:param.classElemPIImplement xsl:processing-instruction.classElemSortImplement xsl:sort.classElemTemplateImplement xsl:template.classElemTextImplement xsl:template.classElemTextLiteralImplement a text literal.classElemUnknownImplement an unknown elementclassElemUseImplement xsl:use.classElemValueOfImplement xsl:value-of.classElemVariableImplement xsl:variable.classElemVariablePsuedoclassElemWhenImplement xsl:when.classElemWithParamImplement xsl:with-param.classKeyDeclarationHolds the attribute declarations for the xsl:keys element.classNamespaceAliasObject to hold an xsl:namespace element.classOutputPropertiesThis class provides information from xsl:output elements.classStylesheetRepresents a stylesheet element.classStylesheetComposedRepresents a stylesheet that has methods that resolve includes and imports.classStylesheetRootThis class represents the root object of the stylesheet tree.classWhiteSpaceInfoThis is used as a special "fake" template that can be handled by the TemplateList to do pattern matching on nodes.Fields in org.apache.xalan.templates declared as ElemTemplateElement Modifier and Type Field Description protected ElemTemplateElementElemTemplateElement. m_parentNodeParent node.Methods in org.apache.xalan.templates that return ElemTemplateElement Modifier and Type Method Description ElemTemplateElementElemApplyImport. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemAttribute. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemCallTemplate. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemChoose. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemComment. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemCopyOf. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemForEach. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemNumber. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemPI. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemTemplateElement. appendChild(ElemTemplateElement elem)Add a child to the child list.ElemTemplateElementElemText. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemValueOf. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemVariable. appendChild(ElemTemplateElement elem)Add a child to the child list.ElemTemplateElementElemWithParam. appendChild(ElemTemplateElement elem)Add a child to the child list.ElemTemplateElementElemAttributeSet. appendChildElem(ElemTemplateElement newChild)Add a child to the child list.protected ElemTemplateElementRedundentExprEliminator. findCommonAncestor(org.apache.xalan.templates.RedundentExprEliminator.MultistepExprHolder head)Given a linked list of expressions, find the common ancestor that is suitable for holding a psuedo variable for shared access.protected ElemTemplateElementRedundentExprEliminator. getElemFromExpression(Expression expr)From an XPath expression component, get the ElemTemplateElement owner.ElemTemplateElementElemTemplateElement. getFirstChildElem()Get the first child as a ElemTemplateElement.ElemTemplateElementElemTemplateElement. getLastChildElem()Get the last child.ElemTemplateElementElemTemplateElement. getNextSiblingElem()Get the next sibling (as a ElemTemplateElement) or return null.ElemTemplateElementElemTemplateElement. getParentElem()Get the parent as an ElemTemplateElement.ElemTemplateElementElemTemplateElement. getParentNodeElem()Get the parent element.protected ElemTemplateElementRedundentExprEliminator. getPrevElementWithinContext(ElemTemplateElement elem)Get the previous sibling or parent of the given template, stopping at xsl:for-each, xsl:template, or xsl:stylesheet.ElemTemplateElementElemTemplateElement. getPreviousSiblingElem()Get the previous sibling (as a Node) or return null.protected ElemTemplateElementElemForEach. getTemplateMatch()Get template element associated with thisElemTemplateElementElemTemplateElement. removeChild(ElemTemplateElement childETE)Remove a child.ElemTemplateElementElemTemplateElement. replaceChild(ElemTemplateElement newChildElem, ElemTemplateElement oldChildElem)Replace the old child with a new child.Methods in org.apache.xalan.templates with parameters of type ElemTemplateElement Modifier and Type Method Description protected ElemVariableRedundentExprEliminator. addVarDeclToElem(ElemTemplateElement psuedoVarRecipient, LocPathIterator lpi, ElemVariable psuedoVar)Add the given variable to the psuedoVarRecipient.ElemTemplateElementElemApplyImport. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemAttribute. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemCallTemplate. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemChoose. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemComment. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemCopyOf. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemForEach. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemNumber. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemPI. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemTemplateElement. appendChild(ElemTemplateElement elem)Add a child to the child list.ElemTemplateElementElemText. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemValueOf. appendChild(ElemTemplateElement newChild)Add a child to the child list.ElemTemplateElementElemVariable. appendChild(ElemTemplateElement elem)Add a child to the child list.ElemTemplateElementElemWithParam. appendChild(ElemTemplateElement elem)Add a child to the child list.ElemTemplateElementElemAttributeSet. appendChildElem(ElemTemplateElement newChild)Add a child to the child list.protected voidRedundentExprEliminator. changeToVarRef(QName varName, ExpressionOwner owner, Vector paths, ElemTemplateElement psuedoVarRecipient)Change the expression owned by the owner argument to a variable reference of the given name.protected intRedundentExprEliminator. countAncestors(ElemTemplateElement elem)Count the number of ancestors that a ElemTemplateElement has.protected ElemVariableRedundentExprEliminator. createLocalPseudoVarDecl(QName uniquePseudoVarName, ElemTemplateElement psuedoVarRecipient, LocPathIterator lpi)Create a psuedo variable reference that will represent the shared redundent XPath, for a local reduction.protected ElemVariableRedundentExprEliminator. createPseudoVarDecl(ElemTemplateElement psuedoVarRecipient, LocPathIterator lpi, boolean isGlobal)Create a psuedo variable reference that will represent the shared redundent XPath, and add it to the stylesheet.protected voidRedundentExprEliminator. eleminateRedundent(ElemTemplateElement psuedoVarRecipient, Vector paths)Method to be called after the all expressions within an node context have been visited.voidRedundentExprEliminator. eleminateRedundentLocals(ElemTemplateElement psuedoVarRecipient)Method to be called after the all expressions within an node context have been visited.protected voidRedundentExprEliminator. eleminateSharedPartialPaths(ElemTemplateElement psuedoVarRecipient, Vector paths)Eliminate the shared partial paths in the expression list.protected intRedundentExprEliminator. findAndEliminateRedundant(int start, int firstOccuranceIndex, ExpressionOwner firstOccuranceOwner, ElemTemplateElement psuedoVarRecipient, Vector paths)Look through the vector from start point, looking for redundant occurances.protected ElemTemplateElementRedundentExprEliminator. getPrevElementWithinContext(ElemTemplateElement elem)Get the previous sibling or parent of the given template, stopping at xsl:for-each, xsl:template, or xsl:stylesheet.protected ElemVariableRedundentExprEliminator. getPrevVariableElem(ElemTemplateElement elem)Find the previous occurance of a xsl:variable.protected booleanRedundentExprEliminator. isNotSameAsOwner(org.apache.xalan.templates.RedundentExprEliminator.MultistepExprHolder head, ElemTemplateElement ete)Find out if the given ElemTemplateElement is not the same as one of the ElemTemplateElement owners of the expressions.protected org.apache.xalan.templates.RedundentExprEliminator.MultistepExprHolderRedundentExprEliminator. matchAndEliminatePartialPaths(org.apache.xalan.templates.RedundentExprEliminator.MultistepExprHolder testee, org.apache.xalan.templates.RedundentExprEliminator.MultistepExprHolder head, boolean isGlobal, int lengthToTest, ElemTemplateElement varScope)For a given path, see if there are any partitial matches in the list, and, if there are, replace those partial paths with psuedo variable refs, and create the psuedo variable decl.protected intRedundentExprEliminator. oldFindAndEliminateRedundant(int start, int firstOccuranceIndex, ExpressionOwner firstOccuranceOwner, ElemTemplateElement psuedoVarRecipient, Vector paths)To be removed.ElemTemplateElementElemTemplateElement. removeChild(ElemTemplateElement childETE)Remove a child.ElemTemplateElementElemTemplateElement. replaceChild(ElemTemplateElement newChildElem, ElemTemplateElement oldChildElem)Replace the old child with a new child.voidElemTemplateElement. setParentElem(ElemTemplateElement p)Set the parent as an ElemTemplateElement.voidElemVariable. setParentElem(ElemTemplateElement p)Set the parent as an ElemTemplateElement.voidElemWithParam. setParentElem(ElemTemplateElement p)Set the parent as an ElemTemplateElement.booleanRedundentExprEliminator. visitInstruction(ElemTemplateElement elem)Visit an XSLT instruction.booleanXSLTVisitor. visitInstruction(ElemTemplateElement elem)Visit an XSLT instruction.booleanXSLTVisitor. visitStylesheet(ElemTemplateElement elem)Visit an XSLT stylesheet instruction.booleanRedundentExprEliminator. visitTopLevelInstruction(ElemTemplateElement elem)Visit an XSLT top-level instruction.booleanXSLTVisitor. visitTopLevelInstruction(ElemTemplateElement elem)Visit an XSLT top-level instruction.booleanXSLTVisitor. visitTopLevelVariableOrParamDecl(ElemTemplateElement elem)Visit an XSLT top-level instruction.Constructors in org.apache.xalan.templates with parameters of type ElemTemplateElement Constructor Description AVT(StylesheetHandler handler, String uri, String name, String rawName, String stringedValue, ElemTemplateElement owner)Construct an AVT by parsing the string, and either constructing a vector of AVTParts, or simply hold on to the string if the AVT is simple. -
Uses of ElemTemplateElement in org.apache.xalan.transformer
Methods in org.apache.xalan.transformer that return ElemTemplateElement Modifier and Type Method Description ElemTemplateElementTransformerImpl. getCurrentElement()Retrieves the current ElemTemplateElement that is being executed.ElemTemplateElementTransformState. getCurrentElement()Retrieves the stylesheet element that produced the SAX event.ElemTemplateElementXalanTransformState. getCurrentElement()Methods in org.apache.xalan.transformer with parameters of type ElemTemplateElement Modifier and Type Method Description booleanTransformerImpl. applyTemplateToNode(ElemTemplateElement xslInstruction, ElemTemplate template, int child)Given an element and mode, find the corresponding template and process the contents.voidTransformerImpl. executeChildTemplates(ElemTemplateElement elem, boolean shouldAddAttrs)Execute each of the children of a template element.voidTransformerImpl. executeChildTemplates(ElemTemplateElement elem, Node context, QName mode, ContentHandler handler)Execute each of the children of a template element.voidTransformerImpl. executeChildTemplates(ElemTemplateElement elem, ContentHandler handler)Execute each of the children of a template element.voidTransformerImpl. pushElemTemplateElement(ElemTemplateElement elem)Push the current template element.voidTransformerImpl. pushPairCurrentMatched(ElemTemplateElement template, int child)Push both the current xsl:template or xsl:for-each onto the stack, along with the child node that was matched.voidTransformerImpl. setCurrentElement(ElemTemplateElement e)Set the top of the current template elements stack.intTransformerImpl. transformToGlobalRTF(ElemTemplateElement templateParent)Given a stylesheet element, create a result tree fragment from it's contents.intTransformerImpl. transformToRTF(ElemTemplateElement templateParent)Given a stylesheet element, create a result tree fragment from it's contents.StringTransformerImpl. transformToString(ElemTemplateElement elem)Take the contents of a template element, process it, and convert it to a string.