|
||||||||||
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.ElemUse org.apache.xalan.templates.ElemElement
Implement xsl:element
Field Summary | |
protected AVT |
m_name_avt
The name attribute is interpreted as an attribute value template. |
protected AVT |
m_namespace_avt
If the namespace attribute is present, then it also is interpreted as an attribute value template. |
Fields inherited from class org.apache.xalan.templates.ElemUse |
|
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 | |
ElemElement()
|
Method Summary | |
protected void |
callChildVisitors(XSLTVisitor visitor,
boolean callAttrs)
Call the children visitors. |
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. |
(package private) void |
constructNode(String nodeName,
String prefix,
String nodeNamespace,
TransformerImpl transformer)
Construct a node in the result tree. |
void |
execute(TransformerImpl transformer)
Create an element in the result tree. |
AVT |
getName()
Get the "name" attribute. |
AVT |
getNamespace()
Get the "namespace" attribute. |
String |
getNodeName()
Return the node name. |
int |
getXSLToken()
Get an int constant identifying the type of element. |
protected String |
resolvePrefix(ResultTreeHandler rhandler,
String prefix,
String nodeNamespace)
Resolve the namespace into a prefix. |
void |
setName(AVT v)
Set the "name" attribute. |
void |
setNamespace(AVT v)
Set the "namespace" attribute. |
protected boolean |
validateNodeName(String nodeName)
Validate that the node name is good. |
Methods inherited from class org.apache.xalan.templates.ElemUse |
applyAttrSets, getUseAttributeSets, setUseAttributeSets, setUseAttributeSets |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected AVT m_name_avt
protected AVT m_namespace_avt
Constructor Detail |
public ElemElement()
Method Detail |
public void setName(AVT v)
v
- Name attribute to set for this elementpublic AVT getName()
public void setNamespace(AVT v)
v
- NameSpace attribute to set for this elementpublic AVT getNamespace()
public void compose(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
compose
in class ElemTemplateElement
javax.xml.transform.TransformerException
public int getXSLToken()
getXSLToken
in class ElemTemplateElement
Constants
public String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class ElemTemplateElement
protected boolean validateNodeName(String nodeName)
nodeName
- Name of the node being constructed, which may be null.
protected String resolvePrefix(ResultTreeHandler rhandler, String prefix, String nodeNamespace) throws javax.xml.transform.TransformerException
rhandler
- The current result tree handler.prefix
- The probable prefix if already known.nodeNamespace
- The namespace.
javax.xml.transform.TransformerException
public void execute(TransformerImpl transformer) throws javax.xml.transform.TransformerException
execute
in class ElemUse
transformer
- non-null reference to the the current transform-time state.
javax.xml.transform.TransformerException
void constructNode(String nodeName, String prefix, String nodeNamespace, TransformerImpl transformer) throws javax.xml.transform.TransformerException
nodeName
- The name of the node, which may be null
. If null
,
only the non-attribute children of this node will be processed.prefix
- The prefix for the namespace, which may be null
.
If not null
, this prefix will be mapped and unmapped.nodeNamespace
- The namespace of the node, which may be not be null
.transformer
- non-null reference to the the current transform-time state.
javax.xml.transform.TransformerException
protected void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)
callChildVisitors
in class ElemTemplateElement
visitor
- The visitor whose appropriate method will be called.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |