public class TemplateList
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
class |
TemplateList.TemplateWalker
An inner class used by a compiler to iterate over all of the ElemTemplates
stored in this TemplateList.
|
Constructor and Description |
---|
TemplateList()
Construct a TemplateList object.
|
Modifier and Type | Method and Description |
---|---|
void |
compose(StylesheetRoot sroot)
After all templates have been added, this function
should be called.
|
org.apache.xalan.templates.TemplateSubPatternAssociation |
getHead(XPathContext xctxt,
int targetNode,
DTM dtm)
Get the head of the most likely list of associations to check, based on
the name and type of the targetNode argument.
|
ElemTemplate |
getTemplate(QName qname)
Locate a named template.
|
ElemTemplate |
getTemplate(XPathContext xctxt,
int targetNode,
QName mode,
boolean quietConflictWarnings,
DTM dtm)
Given a target element, find the template that best
matches in the given XSL document, according
to the rules specified in the xsl draft.
|
ElemTemplate |
getTemplate(XPathContext xctxt,
int targetNode,
QName mode,
int maxImportLevel,
int endImportLevel,
boolean quietConflictWarnings,
DTM dtm)
Given a target element, find the template that best
matches in the given XSL document, according
to the rules specified in the xsl draft.
|
ElemTemplate |
getTemplateFast(XPathContext xctxt,
int targetNode,
int expTypeID,
QName mode,
int maxImportLevel,
boolean quietConflictWarnings,
DTM dtm)
Given a target element, find the template that best
matches in the given XSL document, according
to the rules specified in the xsl draft.
|
TemplateList.TemplateWalker |
getWalker()
Get a TemplateWalker for use by a compiler.
|
void |
setTemplate(ElemTemplate template)
Add a template to the table of named templates and/or the table of templates
with match patterns.
|
public TemplateList()
public void setTemplate(ElemTemplate template)
template
- public void compose(StylesheetRoot sroot)
public ElemTemplate getTemplate(QName qname)
qname
- Qualified name of the template.public org.apache.xalan.templates.TemplateSubPatternAssociation getHead(XPathContext xctxt, int targetNode, DTM dtm)
xctxt
- The XPath runtime context.targetNode
- The target node that will be checked for a match.dtm
- The dtm owner for the target node.public ElemTemplate getTemplateFast(XPathContext xctxt, int targetNode, int expTypeID, QName mode, int maxImportLevel, boolean quietConflictWarnings, DTM dtm) throws javax.xml.transform.TransformerException
xctxt
- targetNode
- mode
- A string indicating the display mode.maxImportLevel
- The maximum importCountComposed that we should consider or -1
if we should consider all import levels. This is used by apply-imports to
access templates that have been overridden.quietConflictWarnings
- XSLProcessorException
- thrown if the active ProblemListener and XPathContext decide
the error condition is severe enough to halt processing.javax.xml.transform.TransformerException
public ElemTemplate getTemplate(XPathContext xctxt, int targetNode, QName mode, boolean quietConflictWarnings, DTM dtm) throws javax.xml.transform.TransformerException
xctxt
- targetNode
- mode
- A string indicating the display mode.quietConflictWarnings
- XSLProcessorException
- thrown if the active ProblemListener and XPathContext decide
the error condition is severe enough to halt processing.javax.xml.transform.TransformerException
public ElemTemplate getTemplate(XPathContext xctxt, int targetNode, QName mode, int maxImportLevel, int endImportLevel, boolean quietConflictWarnings, DTM dtm) throws javax.xml.transform.TransformerException
xctxt
- targetNode
- mode
- A string indicating the display mode.maxImportLevel
- The maximum importCountComposed that we should consider or -1
if we should consider all import levels. This is used by apply-imports to
access templates that have been overridden.endImportLevel
- The count of composed importsquietConflictWarnings
- XSLProcessorException
- thrown if the active ProblemListener and XPathContext decide
the error condition is severe enough to halt processing.javax.xml.transform.TransformerException
public TemplateList.TemplateWalker getWalker()
Copyright ? 2006 Apache XML Project. All Rights Reserved.