Package | Description |
---|---|
org.apache.xalan.extensions |
Implementation of Xalan Extension Mechanism.
|
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.trace |
Implementation of Xalan Trace events, for use by a debugger.
|
org.apache.xalan.transformer |
In charge of run-time transformations and the production of result trees.
|
Modifier and Type | Method and Description |
---|---|
void |
ExtensionHandlerJavaPackage.processElement(String localPart,
ElemTemplateElement element,
TransformerImpl transformer,
Stylesheet stylesheetTree,
Object methodKey)
Process a call to this extension namespace via an element.
|
void |
ExtensionHandlerJavaClass.processElement(String localPart,
ElemTemplateElement element,
TransformerImpl transformer,
Stylesheet stylesheetTree,
Object methodKey)
Process a call to this extension namespace via an element.
|
void |
ExtensionHandlerGeneral.processElement(String localPart,
ElemTemplateElement element,
TransformerImpl transformer,
Stylesheet stylesheetTree,
Object methodKey)
Process a call to this extension namespace via an element.
|
void |
ExtensionHandlerExsltFunction.processElement(String localPart,
ElemTemplateElement element,
TransformerImpl transformer,
Stylesheet stylesheetTree,
Object methodKey)
Required by ExtensionHandler (an abstract method).
|
abstract void |
ExtensionHandler.processElement(String localPart,
ElemTemplateElement element,
TransformerImpl transformer,
Stylesheet stylesheetTree,
Object methodKey)
Process a call to this extension namespace via an element.
|
Modifier and Type | Class and Description |
---|---|
class |
ProcessorCharacters
This class processes character events for a XSLT template element.
|
class |
ProcessorExsltFuncResult
This class processes parse events for an exslt func:result element.
|
class |
ProcessorExsltFunction
This class processes parse events for an exslt func:function element.
|
class |
ProcessorImport
This class processes parse events for an xsl:import element.
|
class |
ProcessorInclude
TransformerFactory class for xsl:include markup.
|
class |
ProcessorLRE
Processes an XSLT literal-result-element, or something that looks
like one.
|
class |
ProcessorStylesheetDoc
This class processes the xsl:stylesheet element.
|
class |
ProcessorStylesheetElement
TransformerFactory for xsl:stylesheet or xsl:transform markup.
|
class |
ProcessorTemplateElem
This class processes parse events for an XSLT template element.
|
class |
ProcessorText
Process xsl:text.
|
class |
ProcessorUnknown
This class processes an unknown template element.
|
class |
WhitespaceInfoPaths |
class |
XSLTElementProcessor
This class acts as the superclass for all stylesheet element
processors, and deals with things that are common to all elements.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ProcessorText.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 void |
ProcessorTemplateElem.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 void |
ProcessorExsltFunction.appendAndPush(StylesheetHandler handler,
ElemTemplateElement elem)
Must include; super doesn't suffice!
|
XPath |
StylesheetHandler.createXPath(String str,
ElemTemplateElement owningTemplate)
Process an expression string into an XPath.
|
void |
ProcessorExsltFunction.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.
|
Modifier and Type | Class and Description |
---|---|
class |
DecimalFormatProperties
Implement xsl:decimal-format.
|
class |
ElemApplyImport
Implement xsl:apply-imports.
|
class |
ElemApplyTemplates
Implement xsl:apply-templates.
|
class |
ElemAttribute
Implement xsl:attribute.
|
class |
ElemAttributeSet
Implement xsl:attribute-set.
|
class |
ElemCallTemplate
Implement xsl:call-template.
|
class |
ElemChoose
Implement xsl:choose.
|
class |
ElemComment
Implement xsl:comment.
|
class |
ElemCopy
Implement xsl:copy.
|
class |
ElemCopyOf
Implement xsl:copy-of.
|
class |
ElemElement
Implement xsl:element
|
class |
ElemEmpty
Simple empty elem to push on the stack when nothing
else got pushed, so that pop() works correctly.
|
class |
ElemExsltFuncResult
Handles the EXSLT result element within an EXSLT function element.
|
class |
ElemExsltFunction
Implement func:function.
|
class |
ElemExtensionCall
Implement an extension element.
|
class |
ElemExtensionDecl
Implement the declaration of an extension element
|
class |
ElemExtensionScript
Implement Script extension element
|
class |
ElemFallback
Implement xsl:fallback.
|
class |
ElemForEach
Implement xsl:for-each.
|
class |
ElemIf
Implement xsl:if.
|
class |
ElemLiteralResult
Implement a Literal Result Element.
|
class |
ElemMessage
Implement xsl:message.
|
class |
ElemNumber
Implement xsl:number.
|
class |
ElemOtherwise
Implement xsl:otherwise.
|
class |
ElemParam
Implement xsl:param.
|
class |
ElemPI
Implement xsl:processing-instruction.
|
class |
ElemSort
Implement xsl:sort.
|
class |
ElemTemplate
Implement xsl:template.
|
class |
ElemText
Implement xsl:template.
|
class |
ElemTextLiteral
Implement a text literal.
|
class |
ElemUnknown
Implement an unknown element
|
class |
ElemUse
Implement xsl:use.
|
class |
ElemValueOf
Implement xsl:value-of.
|
class |
ElemVariable
Implement xsl:variable.
|
class |
ElemVariablePsuedo |
class |
ElemWhen
Implement xsl:when.
|
class |
ElemWithParam
Implement xsl:with-param.
|
class |
KeyDeclaration
Holds the attribute declarations for the xsl:keys element.
|
class |
NamespaceAlias
Object to hold an xsl:namespace element.
|
class |
OutputProperties
This class provides information from xsl:output elements.
|
class |
Stylesheet
Represents a stylesheet element.
|
class |
StylesheetComposed
Represents a stylesheet that has methods that resolve includes and
imports.
|
class |
StylesheetRoot
This class represents the root object of the stylesheet tree.
|
class |
WhiteSpaceInfo
This is used as a special "fake" template that can be
handled by the TemplateList to do pattern matching
on nodes.
|
Modifier and Type | Field and Description |
---|---|
protected ElemTemplateElement |
ElemTemplateElement.m_parentNode
Parent node.
|
Modifier and Type | Method and Description |
---|---|
ElemTemplateElement |
ElemWithParam.appendChild(ElemTemplateElement elem)
Add a child to the child list.
|
ElemTemplateElement |
ElemVariable.appendChild(ElemTemplateElement elem)
Add a child to the child list.
|
ElemTemplateElement |
ElemValueOf.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemText.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemTemplateElement.appendChild(ElemTemplateElement elem)
Add a child to the child list.
|
ElemTemplateElement |
ElemPI.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemNumber.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemForEach.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemCopyOf.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemComment.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemChoose.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemCallTemplate.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemAttribute.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemApplyImport.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemAttributeSet.appendChildElem(ElemTemplateElement newChild)
Add a child to the child list.
|
protected ElemTemplateElement |
RedundentExprEliminator.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 ElemTemplateElement |
RedundentExprEliminator.getElemFromExpression(Expression expr)
From an XPath expression component, get the ElemTemplateElement
owner.
|
ElemTemplateElement |
ElemTemplateElement.getFirstChildElem()
Get the first child as a ElemTemplateElement.
|
ElemTemplateElement |
ElemTemplateElement.getLastChildElem()
Get the last child.
|
ElemTemplateElement |
ElemTemplateElement.getNextSiblingElem()
Get the next sibling (as a ElemTemplateElement) or return null.
|
ElemTemplateElement |
ElemTemplateElement.getParentElem()
Get the parent as an ElemTemplateElement.
|
ElemTemplateElement |
ElemTemplateElement.getParentNodeElem()
Get the parent element.
|
protected ElemTemplateElement |
RedundentExprEliminator.getPrevElementWithinContext(ElemTemplateElement elem)
Get the previous sibling or parent of the given template, stopping at
xsl:for-each, xsl:template, or xsl:stylesheet.
|
ElemTemplateElement |
ElemTemplateElement.getPreviousSiblingElem()
Get the previous sibling (as a Node) or return null.
|
protected ElemTemplateElement |
ElemForEach.getTemplateMatch()
Get template element associated with this
|
ElemTemplateElement |
ElemTemplateElement.removeChild(ElemTemplateElement childETE)
Remove a child.
|
ElemTemplateElement |
ElemTemplateElement.replaceChild(ElemTemplateElement newChildElem,
ElemTemplateElement oldChildElem)
Replace the old child with a new child.
|
Modifier and Type | Method and Description |
---|---|
protected ElemVariable |
RedundentExprEliminator.addVarDeclToElem(ElemTemplateElement psuedoVarRecipient,
LocPathIterator lpi,
ElemVariable psuedoVar)
Add the given variable to the psuedoVarRecipient.
|
ElemTemplateElement |
ElemWithParam.appendChild(ElemTemplateElement elem)
Add a child to the child list.
|
ElemTemplateElement |
ElemVariable.appendChild(ElemTemplateElement elem)
Add a child to the child list.
|
ElemTemplateElement |
ElemValueOf.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemText.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemTemplateElement.appendChild(ElemTemplateElement elem)
Add a child to the child list.
|
ElemTemplateElement |
ElemPI.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemNumber.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemForEach.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemCopyOf.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemComment.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemChoose.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemCallTemplate.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemAttribute.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemApplyImport.appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
ElemTemplateElement |
ElemAttributeSet.appendChildElem(ElemTemplateElement newChild)
Add a child to the child list.
|
protected void |
RedundentExprEliminator.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 int |
RedundentExprEliminator.countAncestors(ElemTemplateElement elem)
Count the number of ancestors that a ElemTemplateElement has.
|
protected ElemVariable |
RedundentExprEliminator.createLocalPseudoVarDecl(QName uniquePseudoVarName,
ElemTemplateElement psuedoVarRecipient,
LocPathIterator lpi)
Create a psuedo variable reference that will represent the
shared redundent XPath, for a local reduction.
|
protected ElemVariable |
RedundentExprEliminator.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 void |
RedundentExprEliminator.eleminateRedundent(ElemTemplateElement psuedoVarRecipient,
Vector paths)
Method to be called after the all expressions within an
node context have been visited.
|
void |
RedundentExprEliminator.eleminateRedundentLocals(ElemTemplateElement psuedoVarRecipient)
Method to be called after the all expressions within an
node context have been visited.
|
protected void |
RedundentExprEliminator.eleminateSharedPartialPaths(ElemTemplateElement psuedoVarRecipient,
Vector paths)
Eliminate the shared partial paths in the expression list.
|
protected int |
RedundentExprEliminator.findAndEliminateRedundant(int start,
int firstOccuranceIndex,
ExpressionOwner firstOccuranceOwner,
ElemTemplateElement psuedoVarRecipient,
Vector paths)
Look through the vector from start point, looking for redundant occurances.
|
protected ElemTemplateElement |
RedundentExprEliminator.getPrevElementWithinContext(ElemTemplateElement elem)
Get the previous sibling or parent of the given template, stopping at
xsl:for-each, xsl:template, or xsl:stylesheet.
|
protected ElemVariable |
RedundentExprEliminator.getPrevVariableElem(ElemTemplateElement elem)
Find the previous occurance of a xsl:variable.
|
protected boolean |
RedundentExprEliminator.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.MultistepExprHolder |
RedundentExprEliminator.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 int |
RedundentExprEliminator.oldFindAndEliminateRedundant(int start,
int firstOccuranceIndex,
ExpressionOwner firstOccuranceOwner,
ElemTemplateElement psuedoVarRecipient,
Vector paths)
To be removed.
|
ElemTemplateElement |
ElemTemplateElement.removeChild(ElemTemplateElement childETE)
Remove a child.
|
ElemTemplateElement |
ElemTemplateElement.replaceChild(ElemTemplateElement newChildElem,
ElemTemplateElement oldChildElem)
Replace the old child with a new child.
|
void |
ElemWithParam.setParentElem(ElemTemplateElement p)
Set the parent as an ElemTemplateElement.
|
void |
ElemVariable.setParentElem(ElemTemplateElement p)
Set the parent as an ElemTemplateElement.
|
void |
ElemTemplateElement.setParentElem(ElemTemplateElement p)
Set the parent as an ElemTemplateElement.
|
boolean |
XSLTVisitor.visitInstruction(ElemTemplateElement elem)
Visit an XSLT instruction.
|
boolean |
RedundentExprEliminator.visitInstruction(ElemTemplateElement elem)
Visit an XSLT instruction.
|
boolean |
XSLTVisitor.visitStylesheet(ElemTemplateElement elem)
Visit an XSLT stylesheet instruction.
|
boolean |
XSLTVisitor.visitTopLevelInstruction(ElemTemplateElement elem)
Visit an XSLT top-level instruction.
|
boolean |
RedundentExprEliminator.visitTopLevelInstruction(ElemTemplateElement elem)
Visit an XSLT top-level instruction.
|
boolean |
XSLTVisitor.visitTopLevelVariableOrParamDecl(ElemTemplateElement elem)
Visit an XSLT top-level instruction.
|
Constructor and 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.
|
Modifier and Type | Field and Description |
---|---|
ElemTemplateElement |
TracerEvent.m_styleNode
The node in the style tree where the event occurs.
|
ElemTemplateElement |
SelectionEvent.m_styleNode
The node in the style tree where the event occurs.
|
Modifier and Type | Method and Description |
---|---|
void |
TraceManager.fireSelectedEndEvent(int sourceNode,
ElemTemplateElement styleNode,
String attributeName,
XPath xpath,
XObject selection)
Fire a selection event.
|
void |
TraceManager.fireSelectedEvent(int sourceNode,
ElemTemplateElement styleNode,
String attributeName,
XPath xpath,
XObject selection)
Fire a selection event.
|
void |
TraceManager.fireTraceEndEvent(ElemTemplateElement styleNode)
Fire a end trace event, after all children of an element have been
executed.
|
void |
TraceManager.fireTraceEvent(ElemTemplateElement styleNode)
Fire a trace event.
|
Constructor and Description |
---|
EndSelectionEvent(TransformerImpl processor,
Node sourceNode,
ElemTemplateElement styleNode,
String attributeName,
XPath xpath,
XObject selection)
Create an EndSelectionEvent.
|
SelectionEvent(TransformerImpl processor,
Node sourceNode,
ElemTemplateElement styleNode,
String attributeName,
XPath xpath,
XObject selection)
Create an event originating at the given node of the style tree.
|
TracerEvent(TransformerImpl processor,
Node sourceNode,
QName mode,
ElemTemplateElement styleNode)
Create an event originating at the given node of the style tree.
|
Modifier and Type | Method and Description |
---|---|
ElemTemplateElement |
XalanTransformState.getCurrentElement() |
ElemTemplateElement |
TransformerImpl.getCurrentElement()
Retrieves the current ElemTemplateElement that is
being executed.
|
ElemTemplateElement |
TransformState.getCurrentElement()
Retrieves the stylesheet element that produced
the SAX event.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TransformerImpl.applyTemplateToNode(ElemTemplateElement xslInstruction,
ElemTemplate template,
int child)
Given an element and mode, find the corresponding
template and process the contents.
|
void |
TransformerImpl.executeChildTemplates(ElemTemplateElement elem,
boolean shouldAddAttrs)
Execute each of the children of a template element.
|
void |
TransformerImpl.executeChildTemplates(ElemTemplateElement elem,
ContentHandler handler)
Execute each of the children of a template element.
|
void |
TransformerImpl.executeChildTemplates(ElemTemplateElement elem,
Node context,
QName mode,
ContentHandler handler)
Execute each of the children of a template element.
|
void |
TransformerImpl.pushElemTemplateElement(ElemTemplateElement elem)
Push the current template element.
|
void |
TransformerImpl.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.
|
void |
TransformerImpl.setCurrentElement(ElemTemplateElement e)
Set the top of the current template elements
stack.
|
int |
TransformerImpl.transformToGlobalRTF(ElemTemplateElement templateParent)
Given a stylesheet element, create a result tree fragment from it's
contents.
|
int |
TransformerImpl.transformToRTF(ElemTemplateElement templateParent)
Given a stylesheet element, create a result tree fragment from it's
contents.
|
String |
TransformerImpl.transformToString(ElemTemplateElement elem)
Take the contents of a template element, process it, and
convert it to a string.
|
Copyright © 2017 JBoss by Red Hat. All rights reserved.