|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.utils.UnImplNode org.apache.xalan.templates.ElemTemplateElement org.apache.xalan.templates.ElemTemplate
Implement xsl:template.
Field Summary | |
private int[] |
m_argsQNameIDs
List of namespace/local-name pairs, DTM style, that are unique qname identifiers for the arguments. |
int |
m_frameSize
The stack frame size for this template, which is equal to the maximum number of params and variables that can be declared in the template at one time. |
(package private) int |
m_inArgsSize
The size of the portion of the stack frame that can hold parameter arguments. |
private XPath |
m_matchPattern
The match attribute is a Pattern that identifies the source node or nodes to which the rule applies. |
private QName |
m_mode
Modes allow an element to be processed multiple times, each time producing a different result. |
private QName |
m_name
An xsl:template element with a name attribute specifies a named template. |
private double |
m_priority
The priority of a template rule is specified by the priority attribute on the template rule. |
private String |
m_publicId
The public identifier for the current document event. |
private Stylesheet |
m_stylesheet
The owning stylesheet. |
private String |
m_systemId
The system identifier for the current document event. |
Fields inherited from class org.apache.xalan.templates.ElemTemplateElement |
m_docOrderNumber, m_firstChild, m_hasVariableDecl, m_nextSibling, m_parentNode, m_prefixTable |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
ElemTemplate()
|
Method Summary | |
void |
compose(StylesheetRoot sroot)
This function is called after everything else has been recomposed, and allows the template to set remaining values that may be based on some other property that depends on recomposition. |
void |
endCompose(StylesheetRoot sroot)
This after the template's children have been composed. |
void |
execute(TransformerImpl transformer)
Copy the template contents into the result tree. |
XPath |
getMatch()
Get the "match" attribute. |
QName |
getMode()
Get the "mode" attribute. |
QName |
getName()
Get the "name" attribute. |
String |
getNodeName()
Return the node name. |
double |
getPriority()
Get the "priority" attribute. |
String |
getPublicId()
Return the public identifier for the current document event. |
Stylesheet |
getStylesheet()
Get the owning stylesheet. |
StylesheetComposed |
getStylesheetComposed()
Get the stylesheet composed (resolves includes and imports and has methods on it that return "composed" properties. |
StylesheetRoot |
getStylesheetRoot()
Get the root stylesheet. |
String |
getSystemId()
Return the system identifier for the current document event. |
int |
getXSLToken()
Get an int constant identifying the type of element. |
void |
recompose(StylesheetRoot root)
This function is called during recomposition to control how this element is composed. |
void |
setLocaterInfo(javax.xml.transform.SourceLocator locator)
Set the location information for this element. |
void |
setMatch(XPath v)
Set the "match" attribute. |
void |
setMode(QName v)
Set the "mode" attribute. |
void |
setName(QName v)
Set the "name" attribute. |
void |
setPriority(double v)
Set the "priority" attribute. |
void |
setStylesheet(Stylesheet sheet)
Set the owning stylesheet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String m_publicId
private String m_systemId
private Stylesheet m_stylesheet
private XPath m_matchPattern
private QName m_name
private QName m_mode
private double m_priority
public int m_frameSize
int m_inArgsSize
private int[] m_argsQNameIDs
Constructor Detail |
public ElemTemplate()
Method Detail |
public String getPublicId()
This will be the public identifier
getPublicId
in interface javax.xml.transform.SourceLocator
getPublicId
in class ElemTemplateElement
getSystemId()
public String getSystemId()
If the system identifier is a URL, the parser must resolve it fully before passing it to the application.
getSystemId
in interface javax.xml.transform.SourceLocator
getSystemId
in class ElemTemplateElement
getPublicId()
public void setLocaterInfo(javax.xml.transform.SourceLocator locator)
setLocaterInfo
in class ElemTemplateElement
locator
- SourceLocator holding location informationpublic StylesheetComposed getStylesheetComposed()
getStylesheetComposed
in class ElemTemplateElement
public Stylesheet getStylesheet()
getStylesheet
in class ElemTemplateElement
public void setStylesheet(Stylesheet sheet)
sheet
- The owning stylesheet for this elementpublic StylesheetRoot getStylesheetRoot()
getStylesheetRoot
in class ElemTemplateElement
public void setMatch(XPath v)
v
- Value to set for the "match" attributepublic XPath getMatch()
public void setName(QName v)
v
- Value to set the "name" attributepublic QName getName()
public void setMode(QName v)
v
- Value to set the "mode" attributepublic QName getMode()
public void setPriority(double v)
v
- The value to set for the "priority" attributepublic double getPriority()
public int getXSLToken()
getXSLToken
in class ElemTemplateElement
Constants
public String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class ElemTemplateElement
public void compose(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
compose
in class ElemTemplateElement
javax.xml.transform.TransformerException
public void endCompose(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
endCompose
in class ElemTemplateElement
javax.xml.transform.TransformerException
public void execute(TransformerImpl transformer) throws javax.xml.transform.TransformerException
execute
in class ElemTemplateElement
transformer
- non-null reference to the the current transform-time state.
javax.xml.transform.TransformerException
public void recompose(StylesheetRoot root)
recompose
in class ElemTemplateElement
root
- The root stylesheet for this transformation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |