|
||||||||||
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.ElemLiteralResult
Implement a Literal Result Element.
Field Summary | |
private boolean |
isLiteralResultAsStylesheet
Tells if this element represents a root element that is also the stylesheet element. |
private Vector |
m_avts
The created element node will have the attribute nodes that were present on the element node in the stylesheet tree, other than attributes with names in the XSLT namespace. |
private StringVector |
m_excludeResultPrefixes
The "exclude-result-prefixes" property. |
private StringVector |
m_ExtensionElementURIs
The "extension-element-prefixes" property, actually contains URIs. |
private String |
m_localName
The local name of the element to be created. |
private String |
m_namespace
The namespace of the element to be created. |
private String |
m_rawName
The raw name of the element to be created. |
private String |
m_version
The XSLT version as specified by this element. |
private Vector |
m_xslAttr
List of attributes with the XSLT namespace. |
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 | |
ElemLiteralResult()
|
Method Summary | |
protected boolean |
accept(XSLTVisitor visitor)
Accept a visitor and call the appropriate method for this class. |
void |
addLiteralResultAttribute(AVT avt)
Set a literal result attribute (AVTs only). |
void |
addLiteralResultAttribute(String att)
Set a literal result attribute (used for xsl attributes). |
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. |
boolean |
containsExcludeResultPrefix(String prefix,
String uri)
Get whether or not the passed URL is flagged by the "extension-element-prefixes" or "exclude-result-prefixes" properties. |
boolean |
containsExtensionElementURI(String uri)
Find out if the given "extension-element-prefix" property is defined. |
Enumeration |
enumerateLiteralResultAttributes()
Compiling templates requires that we be able to list the AVTs ADDED 9/5/2000 to support compilation experiment |
private boolean |
excludeResultNSDecl(String prefix,
String uri)
Tell if the result namespace decl should be excluded. |
void |
execute(TransformerImpl transformer)
Copy a Literal Result Element into the Result tree, copy the non-excluded namespace attributes, copy the attributes not of the XSLT namespace, and execute the children of the LRE. |
String |
getExtensionElementPrefix(int i)
Get an "extension-element-prefix" property. |
int |
getExtensionElementPrefixCount()
Get the number of "extension-element-prefixes" Strings. |
boolean |
getIsLiteralResultAsStylesheet()
Return whether this element represents a root element that is also the stylesheet element. |
AVT |
getLiteralResultAttribute(String name)
Get a literal result attribute by name. |
String |
getLocalName()
Get the local name of the Literal Result Element. |
String |
getNamespace()
Get the original namespace of the Literal Result Element. |
String |
getNodeName()
Return the node name. |
String |
getPrefix()
Get the prefix part of the raw name of the Literal Result Element. |
String |
getRawName()
Get the raw name of the Literal Result Element. |
String |
getVersion()
Get the "version" property. |
int |
getXSLToken()
Get an int constant identifying the type of element. |
(package private) boolean |
needToCheckExclude()
Return whether we need to check namespace prefixes against the exclude result prefixes or extensions lists. |
void |
resolvePrefixTables()
Augment resolvePrefixTables, resolving the namespace aliases once the superclass has resolved the tables. |
void |
setExcludeResultPrefixes(StringVector v)
Set the "exclude-result-prefixes" property. |
void |
setExtensionElementPrefixes(StringVector v)
Set the "extension-element-prefixes" property. |
void |
setIsLiteralResultAsStylesheet(boolean b)
Set whether this element represents a root element that is also the stylesheet element. |
void |
setLocalName(String localName)
Set the local name of the LRE. |
void |
setNamespace(String ns)
Set the namespace URI of the result element to be created. |
void |
setRawName(String rawName)
Set the raw name of the LRE. |
void |
setVersion(String v)
Set the "version" property. |
void |
setXmlSpace(AVT avt)
Set the "xml:space" attribute. |
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 |
private boolean isLiteralResultAsStylesheet
private Vector m_avts
private Vector m_xslAttr
private String m_namespace
private String m_localName
private String m_rawName
private StringVector m_ExtensionElementURIs
private String m_version
private StringVector m_excludeResultPrefixes
Constructor Detail |
public ElemLiteralResult()
Method Detail |
public void setIsLiteralResultAsStylesheet(boolean b)
b
- boolean flag indicating whether this element
represents a root element that is also the stylesheet element.public boolean getIsLiteralResultAsStylesheet()
public void compose(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
compose
in class ElemTemplateElement
javax.xml.transform.TransformerException
public void addLiteralResultAttribute(AVT avt)
avt
- literal result attribute to add (AVT only)public void addLiteralResultAttribute(String att)
att
- literal result attribute to addpublic void setXmlSpace(AVT avt)
public AVT getLiteralResultAttribute(String name)
name
- Name of literal result attribute to get
public boolean containsExcludeResultPrefix(String prefix, String uri)
containsExcludeResultPrefix
in class ElemTemplateElement
prefix
- non-null reference to prefix that might be excluded.(not currently used)uri
- reference to namespace that prefix maps to
public void resolvePrefixTables() throws javax.xml.transform.TransformerException
resolvePrefixTables
in class ElemTemplateElement
javax.xml.transform.TransformerException
boolean needToCheckExclude()
needToCheckExclude
in class ElemTemplateElement
public void setNamespace(String ns)
ns
- The Namespace URI, or the empty string if the
element has no Namespace URI.public String getNamespace()
public void setLocalName(String localName)
localName
- The local name (without prefix) of the result element
to be created.public String getLocalName()
getLocalName
in interface org.w3c.dom.Node
getLocalName
in class ElemTemplateElement
public void setRawName(String rawName)
rawName
- The qualified name (with prefix), or the
empty string if qualified names are not available.public String getRawName()
public String getPrefix()
getPrefix
in interface org.w3c.dom.Node
getPrefix
in class UnImplNode
public void setExtensionElementPrefixes(StringVector v)
v
- Vector of URIs (not prefixes) to set as the "extension-element-prefixes" propertypublic String getExtensionElementPrefix(int i) throws ArrayIndexOutOfBoundsException
i
- Index of URI ("extension-element-prefix" property) to get
ArrayIndexOutOfBoundsException
public int getExtensionElementPrefixCount()
public boolean containsExtensionElementURI(String uri)
uri
- The URI to find
public int getXSLToken()
getXSLToken
in class ElemTemplateElement
Constants
public String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class ElemTemplateElement
public void setVersion(String v)
setVersion
in class UnImplNode
v
- Version property value to setpublic String getVersion()
getVersion
in class UnImplNode
public void setExcludeResultPrefixes(StringVector v)
v
- vector of prefixes that are resolvable to strings.private boolean excludeResultNSDecl(String prefix, String uri) throws javax.xml.transform.TransformerException
prefix
- Prefix of namespace to checkuri
- URI of namespace to check
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
public Enumeration enumerateLiteralResultAttributes()
protected boolean accept(XSLTVisitor visitor)
accept
in class ElemTemplateElement
visitor
- The visitor whose appropriate method will be called.
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 |