|
||||||||||
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 org.apache.xalan.templates.ElemAttribute
Implement xsl:attribute.
&!ELEMENT xsl:attribute %char-template;> &!ATTLIST xsl:attribute name %avt; #REQUIRED namespace %avt; #IMPLIED %space-att; &
Field Summary |
Fields inherited from class org.apache.xalan.templates.ElemElement |
m_name_avt, m_namespace_avt |
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 | |
ElemAttribute()
|
Method Summary | |
ElemTemplateElement |
appendChild(ElemTemplateElement newChild)
Add a child to the child list |
(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 attribute in the result tree. |
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. |
protected boolean |
validateNodeName(String nodeName)
Validate that the node name is good. |
Methods inherited from class org.apache.xalan.templates.ElemElement |
callChildVisitors, compose, getName, getNamespace, setNamespace |
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 |
Constructor Detail |
public ElemAttribute()
Method Detail |
public int getXSLToken()
getXSLToken
in class ElemElement
Constants
public String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class ElemElement
public void execute(TransformerImpl transformer) throws javax.xml.transform.TransformerException
execute
in class ElemElement
transformer
- non-null reference to the the current transform-time state.
javax.xml.transform.TransformerException
protected String resolvePrefix(ResultTreeHandler rhandler, String prefix, String nodeNamespace) throws javax.xml.transform.TransformerException
resolvePrefix
in class ElemElement
rhandler
- The current result tree handler.prefix
- The probable prefix if already known.nodeNamespace
- The namespace, which should not be null.
javax.xml.transform.TransformerException
protected boolean validateNodeName(String nodeName)
validateNodeName
in class ElemElement
nodeName
- Name of the node being constructed, which may be null.
void constructNode(String nodeName, String prefix, String nodeNamespace, TransformerImpl transformer) throws javax.xml.transform.TransformerException
constructNode
in class ElemElement
nodeName
- The name of the node, which may be null.prefix
- The prefix for the namespace, which may be null.nodeNamespace
- The namespace of the node, which may be null.transformer
- non-null reference to the the current transform-time state.
javax.xml.transform.TransformerException
public ElemTemplateElement appendChild(ElemTemplateElement newChild)
appendChild
in class ElemTemplateElement
newChild
- Child to append to the list of this node's children
DOMException
public void setName(AVT v)
ElemElement
setName
in class ElemElement
v
- Name attribute to set for this elementElemElement.setName(AVT)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |